Can you roll over text and a graphic changes?

admin

Administrator
Staff member
Hello,<br />
<br />
Is it possible to have live text on a page and when you roll over it, a graphic changes?<br />
<br />
Regards,<!--content-->According to the 4.01 Spec ONMOUSEOVER is valid for "[a]ll elements but APPLET, BASE, BASEFONT, BDO, BR, FONT, FRAME, FRAMESET, HEAD, HTML, IFRAME, ISINDEX, META, PARAM, SCRIPT, STYLE [and] TITLE". (<!-- m --><a class="postlink" href="http://www.w3.org/TR/html4/index/attributes.html">http://www.w3.org/TR/html4/index/attributes.html</a><!-- m -->) I don't know about browser support, but as it certainly won't work for the 1 or so in 10 of us that do not use JavaScript give it a try with the SPAN element. But as with all JavaScript, make sure your page makes sense without it.<!--content-->ok thanks<!--content-->Hi,<br />
<br />
You might be interested to see an example of image swapping using CSS (no javascript).<br />
<br />
<!-- m --><a class="postlink" href="http://www.meyerweb.com/eric/css/edge/popups/demo2.html">http://www.meyerweb.com/eric/css/edge/popups/demo2.html</a><!-- m --><br />
<br />
It won't work in all browsers, but it's worth a look.<br />
<br />
Paul<!--content-->
 
Back
Top