title: Float image code on the side of website?
body: <p>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.</p>
  
  <pre><code>&lt;SCRIPT LANGUAGE="JavaScript"&gt;
  &lt;!-- Begin
  loadImage1 = new Image();
  loadImage1.src="http://i.imgur.com/JrrRHqr.jpg";
  staticImage1 = new Image();
  staticImage1.src="http://i.imgur.com/Mu27x47.jpg";
  // End --&gt;
  &lt;/script&gt;
  &lt;a href="URL HERE" onmouseover="image1.src=loadImage1.src;" onmouseout="image1.src=staticImage1.src;" target="_blank"&gt;
  &lt;img name="image1" src="http://my_button_image" border=0&gt;&lt;/a&gt;
  </code></pre>
  
  <p>I would like it to keep it's functionality. Also, if possible, please incorporate my question in your answer.</p>
  
  <p>Thanks!</p>
  
  <p>EDIT: I want it to be like this</p>
  
  <p>IMAGE 1</p>
  
  <p><a href="https://i.stack.imgur.com/BLC93.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BLC93.png" alt="enter image description here"></a></p>
  
  <p>But with my image code that chaged when you hover over it....</p>
  
  <p>EDIT2: Here's the code I'm using (HTML)</p>
  
  <pre><code>&lt;script&gt;
  &lt;!-- Begin
  loadImage1 = new Image();
  loadImage1.src="http://i.imgur.com/JrrRHqr.jpg";
  staticImage1 = new Image();
  staticImage1.src="http://i.imgur.com/Mu27x47.jpg";
  // End --&gt;
  &lt;/script&gt;
  &lt;body&gt;
  &lt;a href="URL HERE" onmouseover="image1.src=loadImage1.src;" onmouseout="image1.src=staticImage1.src;" target="_blank"&gt;
  
    &lt;img name="image1" src="http://i.imgur.com/Mu27x47.jpg" id="image1"&gt;&lt;/a&gt;
    &lt;div class="content"&gt;
    &lt;/div&gt;
    &lt;/body&gt;
  </code></pre>
  
  <p>Then CSS</p>
  
  <pre><code> #image1{ 
   position: fixed; 
   top:50px; 
   left: 0; 
   width: 50px; 
   height:50px
   }
  
   .content { 
    width: 200px;
    margin: auto;
    background-color: white;
    }
  </code></pre>
  
  <p>Here is an image of what it's doing to my site...</p>
  
  <p>IMAGE</p>
  
  <p><a href="https://i.stack.imgur.com/ZTumb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZTumb.png" alt="enter image description here"></a></p>