Membie
11-06-2002, 12:51 PM
Hi,
<!-- New on this board. Like it sofar, learned a lot already, but still having problems from time to time (who doesn't?) //-->
The following code should open up two chromeless popups onLoad. The first one however closes (disappears?) when the second one starts opening. Both popups should remain open. How to do so? :confused:
<!-- Ctrl+W closes the popups. Closure buttons etc. aren't there yet //-->
<html>
<head>
<title></title>
<script>
<!--
var windowW_M=129
var windowH_M=195
var windowX_M = ((screen.width - windowW_M) / 2)+205;
var windowY_M = ((screen.height - windowH_M) / 2)-160;
winVars_M = "width="+windowW_M+",height="+windowH_M;
var windowW_T=130
var windowH_T=139
var windowX_T = ((screen.width - windowW_T) / 2)+255;
var windowY_T = ((screen.height - windowH_T) / 2)-20;
winVars_T = "width="+windowW_T+",height="+windowH_T;
var beIE_M = document.all?true:false
var beIE_T = document.all?true:false
function open_Mijke()
{if (beIE_M)
{MijkeWindow = window.open("","popFrameless","fullscreen,"+winVars_M)
MijkeWindow.blur()
window.focus()
MijkeWindow.resizeTo(windowW_M,windowH_M)
MijkeWindow.moveTo(windowX_M,windowY_M)
var frameString_M=""+
"<html>"+
"<head>"+
"<title>Mijke</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='Mijke.html' scrolling=no>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
MijkeWindow.document.open();
MijkeWindow.document.write(frameString_M)
MijkeWindow.document.close()}
else
{MijkeWindow=window.open(Mijke.html,"popFrameless","scrollbars,"+winVars_M)
MijkeWindow.blur()
window.focus()
MijkeWindow.resizeTo(windowW_M,windowH_M)
MijkeWindow.moveTo(windowX_M,windowY_M)}
MijkeWindow.focus()
}
function open_Thijs()
{if (beIE_T)
{ThijsWindow = window.open("","popFrameless","fullscreen,"+winVars_T)
ThijsWindow.blur()
window.focus()
ThijsWindow.resizeTo(windowW_T,windowH_T)
ThijsWindow.moveTo(windowX_T,windowY_T)
var frameString_T=""+
"<html>"+
"<head>"+
"<title>Thijs</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='Thijs.html' scrolling=no>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
ThijsWindow.document.open();
ThijsWindow.document.write(frameString_T)
ThijsWindow.document.close()}
else
{ThijsWindow=window.open(Thijs.html,"popFrameless","scrollbars,"+winVars_T)
ThijsWindow.blur()
window.focus()
ThijsWindow.resizeTo(windowW_T,windowH_T)
ThijsWindow.moveTo(windowX_T,windowY_T)}
ThijsWindow.focus()
}
//-->
</script>
</head>
<body onLoad="setTimeout('javascript:open_Mijke()',8000);setTimeout('javascript:open_Thijs()',9500)">
</html>
Using this for my family site (if / when it works properly ;) )
The script i'sn't very neat, I know so: Tips on that are more than welcome aswell :D
<!-- New on this board. Like it sofar, learned a lot already, but still having problems from time to time (who doesn't?) //-->
The following code should open up two chromeless popups onLoad. The first one however closes (disappears?) when the second one starts opening. Both popups should remain open. How to do so? :confused:
<!-- Ctrl+W closes the popups. Closure buttons etc. aren't there yet //-->
<html>
<head>
<title></title>
<script>
<!--
var windowW_M=129
var windowH_M=195
var windowX_M = ((screen.width - windowW_M) / 2)+205;
var windowY_M = ((screen.height - windowH_M) / 2)-160;
winVars_M = "width="+windowW_M+",height="+windowH_M;
var windowW_T=130
var windowH_T=139
var windowX_T = ((screen.width - windowW_T) / 2)+255;
var windowY_T = ((screen.height - windowH_T) / 2)-20;
winVars_T = "width="+windowW_T+",height="+windowH_T;
var beIE_M = document.all?true:false
var beIE_T = document.all?true:false
function open_Mijke()
{if (beIE_M)
{MijkeWindow = window.open("","popFrameless","fullscreen,"+winVars_M)
MijkeWindow.blur()
window.focus()
MijkeWindow.resizeTo(windowW_M,windowH_M)
MijkeWindow.moveTo(windowX_M,windowY_M)
var frameString_M=""+
"<html>"+
"<head>"+
"<title>Mijke</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='Mijke.html' scrolling=no>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
MijkeWindow.document.open();
MijkeWindow.document.write(frameString_M)
MijkeWindow.document.close()}
else
{MijkeWindow=window.open(Mijke.html,"popFrameless","scrollbars,"+winVars_M)
MijkeWindow.blur()
window.focus()
MijkeWindow.resizeTo(windowW_M,windowH_M)
MijkeWindow.moveTo(windowX_M,windowY_M)}
MijkeWindow.focus()
}
function open_Thijs()
{if (beIE_T)
{ThijsWindow = window.open("","popFrameless","fullscreen,"+winVars_T)
ThijsWindow.blur()
window.focus()
ThijsWindow.resizeTo(windowW_T,windowH_T)
ThijsWindow.moveTo(windowX_T,windowY_T)
var frameString_T=""+
"<html>"+
"<head>"+
"<title>Thijs</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='Thijs.html' scrolling=no>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
ThijsWindow.document.open();
ThijsWindow.document.write(frameString_T)
ThijsWindow.document.close()}
else
{ThijsWindow=window.open(Thijs.html,"popFrameless","scrollbars,"+winVars_T)
ThijsWindow.blur()
window.focus()
ThijsWindow.resizeTo(windowW_T,windowH_T)
ThijsWindow.moveTo(windowX_T,windowY_T)}
ThijsWindow.focus()
}
//-->
</script>
</head>
<body onLoad="setTimeout('javascript:open_Mijke()',8000);setTimeout('javascript:open_Thijs()',9500)">
</html>
Using this for my family site (if / when it works properly ;) )
The script i'sn't very neat, I know so: Tips on that are more than welcome aswell :D