squibs
Technical User
- Sep 24, 2007
- 10
I'm using a simple javascript routing for button rollovers. The rollover images get preloaded:
And the buttons are implemented like this:
Unfortunately this will not validate for xhtml strict as the name tag is unknown. If I change to
the code breaks in internet explorer. Can anybody tell me how to get around this? It is important that the code validates.
Code:
image1 = new Image();
image1.src = "/images/image1blue.jpg";
Code:
<a href="/index.php" onmouseover="image1.src='/images/image1blue_2x1.jpg';"
onmouseout="image1.src='/images/image1black.jpg';">
<img name="image1" src="/images/image1black.jpg" /></a>
Code:
<img id="image1"....