I was just wondering if a link can perform two onmouseovers at the same time? Like when you put your mouse over the link, it changes to something and it does another thing too. I don't know if that made any sense at all, sorry...
Celeris
02-11-2003, 11:25 PM
Hmm... Do you mean it changes into another image, and then after say a second duration it forms into another image?
Sure, just add a semi-colon and add in the other effect...
Example of a single mouseover.
<a href="" onMouseOver="document.MyImage.src='image2.gif';" onMouseOut="document.MyImage.src='image1.gif';">
text or image here
</a>
<img src="image1.gif" name="MyImage">
Example of a double mouseover.
<a href="" onMouseOver="document.MyImage.src='image2.gif';document.MyImage 2.src='otherimage2.gif';" onMouseOut="document.MyImage.src='image1.gif';document.MyImage 2.src='otherimage1.gif';">
text or image here
</a>
<img src="image1.gif" name="MyImage">
<img src="otherimage1.gif" name="MyImage2">