View Single Post
Old 11-15-2012, 01:29 AM   PM User | #4
melvintcs
New to the CF scene

 
Join Date: Nov 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
melvintcs is an unknown quantity at this point
Quote:
Originally Posted by requestcode View Post
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>
i having problem if using IE browser, u try to resize and drag the window to bottm right of the screen. now you can try mouseOver the link and see what happen...
any solution for this?
melvintcs is offline   Reply With Quote