Hi,
I would like to have a mouseover event change on each mouseover. For example, each time someone mouseovered a link a different image would appear.
Does anyone know if this is possible?
Any pointers would be a great help.
Thanks
Richard
Hi,
I would like to have a mouseover event change on each mouseover. For example, each time someone mouseovered a link a different image would appear.
Does anyone know if this is possible?
Any pointers would be a great help.
Thanks
Richard
Hi:
Well in general, you can define multiple onmouseover events (or any event for that matter) by separating each one with a semi colon, something like:
Code:<a href="#" onMouseover="dothis(); dothat()">Test</a>
If your talking about more of a "random function" on mouseover, you might want to use something like:
Code:<script> function a_test(){ var number = Math.floor(Math.random()*5); if(number == 1){ function1(); }else if(number == 2){ function2(); }else if( number ==3){ function3(); }else{ function4(); } } </script> <a href="#" onmouseover="a_test()">click me</a>
--Jas
function GreatMinds(){ return "Think Like Jas"; }
I would like to see that script for onmouseover that continues from
<a href="#" onMouseover="dothis(); dothat()">Test</a>
I would like to change a button, which I can do and change a .jpg elsewhere in the same page as the mouse travels over each menu button. I understand the basics, but this is confusing me.
You can check a demo page I've posted in the following location - the 2nd reply from the top.
http://www.dynamicdrive.com/forums/s...ad.php?t=37323
Hope this helps.
Bookmarks