[thelist] onMouseOver effect??

Craig Saila crsaila at yahoo.ca
Thu Aug 23 16:11:27 CDT 2001


Nyal Bartch wrote:

> A basic example would be to have <.a href="link.html">a<./a> turn to <.a
> href="link.html">b<./a> when the mouse is hovering.

This works on IE5+ and NN6 (possibly IE4):

<script>
function changeText(i,v){
  var sObj = document.getElementById(i)
  sObj.innerHTML = v
}
</script>

<a href="#" id="test" onmouseover="changeText('test','b')" 
onmouseout="changeText('test','a')">a</a>

i = the ID of the element
v = the text you want it to become

Cheers,

Craig Saila
------------------------------------------
craig at saila.com  :  http://www.saila.com/
------------------------------------------


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





More information about the thelist mailing list