Frameless Popup
Posted: Fri Dec 24, 2004 7:44 am
Launches a popup window without the windows frame or title bar (Internet Explorer). In other browsers it launches a standard popup window.
<!-- THREE STEPS TO INSTALL FRAMELESS POPUP:
1. Copy the coding into the HEAD of your HTML ****
2. Add the onLoad event handler into the BODY tag of your Popup HTML ****
3. Put the last coding into the BODY of your HTML **** -->
<head>
<script type="text/javascript" language="JavaScript">
<!-- Begin
var windowW=500 // wide
var windowH=600 // high
var windowX = 260 // from left
var windowY = 100 // from top
var urlPop = "http://www.8sky.info"
var title = "Window"
// set this to true if the popup should close
// upon leaving the launching page; else, false
var autoclose = false
// do not edit below this line
s = "width="+windowW+",height="+windowH;
var beIE = ****.all?true:false
function openFrameless() {
if (beIE) {
NFW = window.open("","popFrameless","fullscreen,"+s);
NFW.blur();
window.focus();
NFW.resizeTo(windowW,windowH);
NFW.moveTo(windowX,windowY);
var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+urlPop+"' scrolling=auto>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>";
NFW.****.open();
NFW.****.write(frameString);
NFW.****.close();
}
else {
NFW = window.open(urlPop,"popFrameless","scrollbars,"+s);
NFW.blur();
window.focus();
NFW.resizeTo(windowW,windowH);
NFW.moveTo(windowX,windowY);
}
NFW.focus();
if (autoclose) {
window.onunload = function(){NFW.close();}
}
}
// End -->
</script>
</head>
<body onload="top.window.focus()">
[url=javascript:openFrameless()]**** Here[/url]
</body>
<!-- THREE STEPS TO INSTALL FRAMELESS POPUP:
1. Copy the coding into the HEAD of your HTML ****
2. Add the onLoad event handler into the BODY tag of your Popup HTML ****
3. Put the last coding into the BODY of your HTML **** -->
<head>
<script type="text/javascript" language="JavaScript">
<!-- Begin
var windowW=500 // wide
var windowH=600 // high
var windowX = 260 // from left
var windowY = 100 // from top
var urlPop = "http://www.8sky.info"
var title = "Window"
// set this to true if the popup should close
// upon leaving the launching page; else, false
var autoclose = false
// do not edit below this line
s = "width="+windowW+",height="+windowH;
var beIE = ****.all?true:false
function openFrameless() {
if (beIE) {
NFW = window.open("","popFrameless","fullscreen,"+s);
NFW.blur();
window.focus();
NFW.resizeTo(windowW,windowH);
NFW.moveTo(windowX,windowY);
var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+urlPop+"' scrolling=auto>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>";
NFW.****.open();
NFW.****.write(frameString);
NFW.****.close();
}
else {
NFW = window.open(urlPop,"popFrameless","scrollbars,"+s);
NFW.blur();
window.focus();
NFW.resizeTo(windowW,windowH);
NFW.moveTo(windowX,windowY);
}
NFW.focus();
if (autoclose) {
window.onunload = function(){NFW.close();}
}
}
// End -->
</script>
</head>
<body onload="top.window.focus()">
[url=javascript:openFrameless()]**** Here[/url]
</body>