[thelist] onMouseOver effect??
Craig Saila
crsaila at yahoo.ca
Thu Aug 23 17:06:21 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.
(Didn't see this come through, so here's a resend. Apologies for any
duplication)
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