PDA

View Full Version : Replacing Image With Text Rollover



elasticnovice
03-06-2010, 07:17 PM
Hi,

I'm trying to create an image rollover where the image is replaced by text. I've managed to do this by placing an image over the top of text and having this image hide when rolled over revealing the text using divs, however I need to have clickable links in the text also. Is there a way of doing this with javascript?

EN

icywindow
03-06-2010, 08:13 PM
One hack would be to call a script that responds to the events of mouseOver and mouseOut which rewrite the innerHTML attributes of the code in your div. I don't know if it's a preferable way of doing that, but that's how I'd tackle it.