-1
Upon entering the website, You can see that there will be a div following the mouse, and its content is an iframe. When clicking on this div or the iframe image, they disappear, however, the main objective is to click on the link from within the iframe, but clicking does not enter the link, IE Hide is working, but the link does not work. I don’t know if I expressed myself well, so feel free to correct my words.
The script used to hide the div is here.
The "follow the mouse" script I’m using is the following code:
HTML:
<div id="position">
<iframe style="border:none; width:680px; height:250px;" frameborder="0" scrolling="No" src="http://saudeonline.info/anuncio/index.html"> </iframe>
</div>
CSS:
#position {
position: absolute;
z-index: 999999;
}
Javascript:
if (document.all) {} else document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = mouse;
function mouse(e) {
if (navigator.appName == 'Netscape') {
xcurs = e.pageX;
ycurs = e.pageY;
} else {
xcurs = event.clientX;
ycurs = event.clientY;
}
document.getElementById('position').style.left = (xcurs - 530) + 'px';
document.getElementById('position').style.top = (ycurs - 60) + 'px';
}
Upon entering the website, will appear the logo banner of Argoconstructor and the link of the image in the status bar, but when clicking, does not go to the site, the div closes.
Is there a problem if the click is done via js? Why then you only add a very simple snippet in your code: $("#position"). on("click",Function() { window.open("http://www.microsoft.com"); });
– user41722