View Full Version : Zero Frame html help
I setup a zero frame to popup a page even on incomplete page loads. I'm using a body frame containing the main page and a zero size 'popup' frame which contains the popup info in the head and body tags ( <body bgcolor="#000000" onUnload="leave()"> . But the popup still doesnt occur if I close the page while the body frame is not loaded completely. If the body frame is loaded completely and then I close the page, the popups happen. What am I doing wrong?
Anyone?
In short, how do I popup an exit console if a surfer closes my page even if it is not completely loaded?
Do you use IE or Netscape?
And which version?
richard
03-20-2001, 09:15 AM
This is the correct method.
show me your 3 pages and i will debug them for you.
Here is the relevant parts of my pages (I'm using similiar code for all my sites). I'm not sure if I should be using the title tag and favicon tag on both the index.html and body.html. The opening popup pops up fine even as the page opens, but the exit popup does not popup on an incompletely loaded page exit. Thanks for looking into this!
index.html -
<html>
<head>
<title>Mysite</title>
<link REL="SHORTCUT ICON" href="http://mysite.com/favicon.ico">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="0,794" cols="*">
<frame src="popup.html" name="popup" marginwidth="0" marginheight="0" frameborder="NO" scrolling="NO" noresize>
<frame src="body.html" name="body" marginwidth="0" marginheight="0" frameborder="NO" noresize>
</frameset>
<noframes><body bgcolor="#FFFFFF">
YOU NEED A FRAMES COMPATIBLE BROWSER TO VIEW THIS SITE
</body></noframes>
</html>
popup.html -
<html>
<head>
<title>Mysite</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript">
function leave() {
window.open('http://www.sponsor.com/','','toolbar=yes,menubar=yes,scrollbars=yes,resiz able=yes,location=yes,top=0,left=0,width=screen.av ailWidth,height=screen.availHeight');
}
// End -->
function popupPage() {
window.open('http://mysponsor2.com', 'name', 'toolbar=0,directories=0,menubar=0,scrollbars=0,re sizable=0,width=300,height=300');
}
// End -->
</script>
</head>
<body bgcolor="#000000" onLoad="setTimeout('popupPage()', 1);" onUnload="leave()">
</body>
</html>
body.html -
<html>
<head>
<title>Mysite</title>
<link REL="SHORTCUT ICON" href="http://mysite.com/favicon.ico">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<STYLE type=text/css>A:hover {
COLOR: #FF0033; TEXT-DECORATION: none
}
</STYLE>
<base TARGET="_blank">
</head>
<BODY text=#ffffff vLink=#ffffff aLink=#ffffff link=#ffffff bgColor=#000000>
blahblahblahlinklinklink
</body>
</html>
I have the same problem with my IE 5.5, the exit doesn't show up untill everything is completely loaded, but everywhere else it does, so I guess its a IE 5.5 problem..
I'll have to test my site with Netscape then.
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.