SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
-
Apr 25, 2001, 12:08 #1
- Join Date
- Dec 2000
- Location
- Grosseto, Italy
- Posts
- 189
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
hi,
I tried changing the layer visibility like below, but something seems wrong...
in the head tags
***************************
<script language="javascript">
<!--
function showit(layerid)
{
document.all.item(layerid).style.visibility = "visible";
}
function hideit(layerid)
{
document.all.item(layerid).style.visibility = "hidden";
}
-->
</script>
***************************
and then I call the function with a link
****************************
<a href="somepage.htm" onMouseOver="showit(first)" onMouseOut="hideit(first)">show</a>
****************************
and this is the layer
****************************
<div id="first" STYLE="visibility: hidden" >sfsfsafg</div>
****************************
can someone please help me out telling me what's wrong with the above code or telling me how to show and hide layers with onmouseover and onmouseout?
Thanks
-
Apr 26, 2001, 05:02 #2
- Join Date
- Dec 2000
- Location
- Grosseto, Italy
- Posts
- 189
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
ok doesn't matter. I figured it out...
thanks for reading
Bookmarks