|
How about this:
<html>
<head>
<title>Mouse Position</title>
<SCRIPT LANGUAGE=JavaScript1.2>
<!--//
function winopen(e,linkid)
{
if(document.all)
{
leftpos=event.screenX;
toppos=event.screenY;
}
if(document.layers||document.getElementById)
{
leftpos=e.screenX;
toppos=e.screenY;
}
toppos=toppos+10
MessageWin=eval('window.open(linkid,"newwin",config="width=200,height=100,location=no,status=no,dire ctories=no,toolbar=no,scrollbars=no,menubar=no,resizable=no,top='+toppos+',left='+leftpos+'")');
MessageWin.focus()
}
//-->
</SCRIPT>
</head>
<body >
<CENTER>
<BR><BR>
<A HREF="#" onMouseOver="winopen(event,'page1.html')" onMouseOut="MessageWin.close()">Open Window</A>
<BR><BR>
<A HREF="#" onMouseOver="winopen(event,'page2.html')" onMouseOut="MessageWin.close()">Open Window</A>
</CENTER>
</body>
</html>
|