webwoman
10-19-2003, 02:00 PM
Need help with frameless popup:
The code is "correct"....but on my browser IE 6.0 it opens the whole page NOT a popup.
in IE 5.5 it opens the popup.....
so my question is:
1) What´s wrong with my code?
2) Is it the browsers or have I missed some thing?
3) Does anybody have similair problems?
4) I want to open a frameless poup window not a whole window, what should I do?
Code:
<!--start sfere1-->
<script>
// Amazing Frameless Popup Window - Version I
// (C) 2000 www.CodeLifter.com
var windowW=290 // wide
var windowH=300 // high
var windowX = 20 // from left
var windowY = 110 // from top
var urlPop1 = ("sfere1.html")
var title = "OneroB"
var autoclose = true
s = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false
function openFrameless1(){
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='top1' src='"+urlPop1+"', scrolling=auto>"+
"<frame name='bottom1' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
NFW.document.open();
NFW.document.write(frameString)
NFW.document.close()
} else {
NFW=window.open(urlPop1,"popFrameless","scrollbars,"+s)
NFW.blur()
window.focus()
NFW.resizeTo(windowW,windowH)
NFW.moveTo(windowX,windowY)
}
NFW.focus()
if (autoclose){
window.onunload = function(){NFW.close()}
}
}
</script>
<!--end sfere1-->
The code is "correct"....but on my browser IE 6.0 it opens the whole page NOT a popup.
in IE 5.5 it opens the popup.....
so my question is:
1) What´s wrong with my code?
2) Is it the browsers or have I missed some thing?
3) Does anybody have similair problems?
4) I want to open a frameless poup window not a whole window, what should I do?
Code:
<!--start sfere1-->
<script>
// Amazing Frameless Popup Window - Version I
// (C) 2000 www.CodeLifter.com
var windowW=290 // wide
var windowH=300 // high
var windowX = 20 // from left
var windowY = 110 // from top
var urlPop1 = ("sfere1.html")
var title = "OneroB"
var autoclose = true
s = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false
function openFrameless1(){
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='top1' src='"+urlPop1+"', scrolling=auto>"+
"<frame name='bottom1' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
NFW.document.open();
NFW.document.write(frameString)
NFW.document.close()
} else {
NFW=window.open(urlPop1,"popFrameless","scrollbars,"+s)
NFW.blur()
window.focus()
NFW.resizeTo(windowW,windowH)
NFW.moveTo(windowX,windowY)
}
NFW.focus()
if (autoclose){
window.onunload = function(){NFW.close()}
}
}
</script>
<!--end sfere1-->