title: How would I use javascript to make an image "jiggle" or "shiver"?
body: <p>So my question is simple, I'm building a webpage in HTML and I want to incorporate a little JavaScript into it so as to make an image "vibrate" or "jiggle" Basically move back and forth in a relatively tight space/pattern. </p>
  
  <p>I did some research and I found this:</p>
  
  <pre><code>Copy the below code and paste it into the &lt;HEAD&gt; section of your page
  Example:&lt;head&gt;Code Here&lt;/head&gt;
  &lt;style&gt;
  .jc{
  position:relative;
  }
  &lt;/style&gt;
  
  &lt;script language="JavaScript1.2"&gt;
  
  var ns6=document.getElementById&amp;&amp;!document.all
  var ie=document.all
  
  var customcollect=new Array()
  var i=0
  
  function jiggleit(num){
  if ((!document.all&amp;&amp;!document.getElementById)) return;
  customcollect[num].style.left=(parseInt(customcollect[num].style.left)==-1)? customcollect[num].style.left=1 : customcollect[num].style.left=-1
  }
  
  function init(){
  if (ie){
  while (eval("document.all.jiggle"+i)!=null){
  customcollect[i]= eval("document.all.jiggle"+i)
  i++
  } 
  }
  else if (ns6){
  while (document.getElementById("jiggle"+i)!=null){
  customcollect[i]= document.getElementById("jiggle"+i)
  i++
  }
  }
  
  if (customcollect.length==1)
  setInterval("jiggleit(0)",80)
  else if (customcollect.length&gt;1)
  for (y=0;y&lt;customcollect.length;y++){
  var tempvariable='setInterval("jiggleit('+y+')",'+'100 )'
  eval(tempvariable)
  }
  }
  
  window.onload=init
  
  &lt;/script&gt;
  
  NOW PASTE THIS ANYWHERE YOU WISH YOUR IMAGE TO APPEAR
  
  &lt;span id="jiggle0" class="jc"&gt;&lt;b&gt;YOUR IMAGE URL HERE&lt;/b&gt;&lt;/span&gt;
  </code></pre>
  
  <p>They called it a "shivering pic" and gave an example... its exactly what I want. I did it exactly as they described it. I added the code where they said it was needed, I copied all the right parts (none of the directions), and I made sure everything is in the right place.</p>
  
  <p>I tested it out an there was no image! There was nothing! I realized that this was because I was using a black background, and if there was any text, it would also be black, so what actually was happening was that it was merely showing the URL of the image I want to add in (I could see it once I highlighted it). Regardless, still no image (just the text), and still no vibrating/jittering/shivering/jiggling. I did note that there were bold tags right where it suggests to add the image URL... so to me that would make it seem like I would be putting in text.</p>
  
  <p>PLEASE HELP! How do I make this code work, or how do I make an image "shiver"?</p>