Hello,
I am trying to insert a small "image rollover" javascript into the masthead in "Header.php". The javascript works on my other webpages, and when I insert it into the header.php document of my wordpress blog, the link that's part of the script works fine (i.e. it takes me to whatever page I designate), however, the images do not show up in the masthead, or anywhere else I try to insert this rollover.
Can anyone think of a reason why the images would not show up. I"m using neoclassical theme. As per the instructions of the javascript creator, I inserted the following code into the "head" part and then put the code below in the "body"
<script language="Javascript">
<!--
//Slide Show script (this notice must stay intact)
//For this and more scripts
//visit java-scripts.net or http://wsabstract.com
if (document.images) {
button1 = new Image
button2 = new Image
button1.src = 'img1.jpg'
button2.src = 'img2.jpg'
}
//-->
</script>
This was put in the body
<div id="imager"><a href="http://wordpress.org" onmouseover="document.rollover.src=button2.src" onmouseout="document.rollover.src=button1.src"><img src="img1.jpg" border=0 name="rollover"></a></div>