HTML mouse-over images possible?

charlesdalycharlesdaly Registered Users Posts: 110 Major grins
edited December 22, 2013 in SmugMug Customization
The mouse-over code I used calls for adding script to the header of the page and since I think we don't have access to the header this code won't work -although it does work in a browser once constructed on a html basics generator. If this isn't working because of the 'no js' constraints of SM is there another way in HTML to make this work?

The code is: (Insert in header)
<!-- Begin
loadImage1 = new Image();
loadImage1.src = "http://www.charlesdalyphotography.com/Photography/Slideshow-images/i-Ff8QG69/0/M/ice2-M.jpg";
staticImage1 = new Image();
staticImage1.src = "http://www.charlesdalyphotography.com/Photography/Slideshow-images/i-2rSMNSn/0/M/ice1-M.jpg";

// End -->
</script>

Then, insert in body:
<!-- STEP TWO: Insert this code into the BODY of your HTML document -->

<span onmouseover="image1.src=loadImage1.src;" onmouseout="image1.src=staticImage1.src;">
<img name="image1" src="http://www.charlesdalyphotography.com/Photography/Slideshow-images/i-2rSMNSn/0/M/ice1-M.jpg&quot; border=0></span>

Thanks!
Thanks!
Charles
Port Credit. Canada
http://charlesdalyphotography.com

Comments

Sign In or Register to comment.