souvikghosh
06-23-2009, 09:39 PM
Hi everyone,
Bascially i was working on a script to trigger a pop-up when the mouse hovers over the toolbar of the browser window! But the problem is i am not being able to catch the event of mouseover window.toolbar I have made the following script but tit doesnot work!
[CODE]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<script >
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=300,left = 312,top = 234');");
}
objref=window.toolbar;
objref.onmouseover=popUp('popup.php');
</script>
</head>
<body >
hi
</body>
</html>
[CODE]
Bascially i was working on a script to trigger a pop-up when the mouse hovers over the toolbar of the browser window! But the problem is i am not being able to catch the event of mouseover window.toolbar I have made the following script but tit doesnot work!
[CODE]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<script >
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=300,left = 312,top = 234');");
}
objref=window.toolbar;
objref.onmouseover=popUp('popup.php');
</script>
</head>
<body >
hi
</body>
</html>
[CODE]