So I have this code here, and I want to float it on the right side of the screen, like next to the scroll bar.
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin loadImage1 = new Image(); loadImage1.src="http://i.imgur.com/JrrRHqr.jpg"; staticImage1 = new Image(); staticImage1.src="http://i.imgur.com/Mu27x47.jpg"; // End --> </script> <a href="URL HERE" onmouseover="image1.src=loadImage1.src;" onmouseout="image1.src=staticImage1.src;" target="_blank"> <img name="image1" src="http://my_button_image" border=0></a> I would like it to keep it's functionality. Also, if possible, please incorporate my question in your answer.
Thanks!
EDIT: I want it to be like this
IMAGE 1
But with my image code that chaged when you hover over it....
EDIT2: Here's the code I'm using (HTML)
<script> <!-- Begin loadImage1 = new Image(); loadImage1.src="http://i.imgur.com/JrrRHqr.jpg"; staticImage1 = new Image(); staticImage1.src="http://i.imgur.com/Mu27x47.jpg"; // End --> </script> <body> <a href="URL HERE" onmouseover="image1.src=loadImage1.src;" onmouseout="image1.src=staticImage1.src;" target="_blank"> <img name="image1" src="http://i.imgur.com/Mu27x47.jpg" id="image1"></a> <div class="content"> </div> </body> Then CSS
#image1{ position: fixed; top:50px; left: 0; width: 50px; height:50px } .content { width: 200px; margin: auto; background-color: white; } Here is an image of what it's doing to my site...
IMAGE

