title: random html link selector from group of links
body: <p>random html link selector from group of links.</p>
  
  <p>so i have this image on my site, when clicked it takes you to a html page. that's good, only thing is i want it to randomly select a link from a group of lets say five links, not just 1 html link.</p>
  
  <pre><code>&lt;a href="url" target="_blank"&gt;&lt;img id="img-hover" src="image"/&gt;&lt;/a&gt;
  </code></pre>
  
  <p>i need the function of the code above still to work. so please incorporate your code with mine. sorry for english. also, this code goes off of some java but i don't think you need it. but here it is.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  var timer;
  
  document.getElementById('img-hover').addEventListener('mouseover', function() {
  clearTimeout(timer);
  var elem = this;
  timer = setTimeout(function() {
      elem.src='image';
  }, 9000);
  });
  
  document.getElementById('img-hover').addEventListener('mouseout', function() {
  clearTimeout(timer);
  var elem = this;
  timer = setTimeout(function() {
      elem.src='image?v=513d43d2';
  }, 9999999999999999);
  });
  &lt;/script&gt;
  </code></pre>