I have this script for greasemonkey (posted just a part of it)
[CODE]
var i;
var hrefs = document.getElementsByTagName(‘a’);
for(i=0;i<=hrefs.length-1;i++)
{
var dev_link = hrefs[i].href;
hrefs[i].parentNode.parentNode.addEventListener(“mouseover” , function() {var img = document.createElement(‘img’);img.src = dev_link;document.body.appendChild(img);} , false);
}
and there are about ten different links on the page but when i hover on each link it show me just the last link saved in the “dev_link” var … how could i set-up to show the image with the link in the “href” attribute ot the currently link that the mouse is hovering?