Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Another mouseover question


Message #1 by John Allsopp <John.Allsopp@u...> on Thu, 5 Sep 2002 17:23:40 +0100
Why not just change the class name of the spanned text?

<a href="somePage.html" onmouseover="more1.className='b';" 
onmouseout="more1.className='a';">More<span class="a"
ID="more1">&gt;</span></a>


Brian
----@

><p class="minorItem">
>   <a href="more.html"
>     onMouseOver = "document.getElementById('more1').visibility='hidden';
>     document.getElementById('more2').visibility='visible';">
>     more<span id="more1" class="a">></span><span id="more2"
>class="b">></span>
>   </a>
></p>
>
>
>span.a  {}
>span.b  {visibility: hidden;}
>
>Cheers
>J



  Return to Index