View Full Version : Menubar on a frameless popup


arabelladonna
05-24-2004, 06:11 PM
So I've got this frameless popup window, right? And it's perfect now, after decades of tweaking, with one exception: the menubar is there.

AND the "close" javascript is not working, so I may need to keep the menubar, which I feel kills the design.

The site is here: http://www.boomspeed.com/jshaffer

Just click on the button to see my dilemma. The code for the popup is below.

<script language="JavaScript" type="text/JavaScript">

// Amazing Frameless Popup Window - Version I
// (C) 2000 www.CodeLifter.com


var windowW=790
var windowH=460


var windowX = (screen.width/2)-395;
var windowY = (screen.height/2)-230;



var urlPop = "http://www.boomspeed.com/jshaffer/popup.html"

var title = "[arabella donna] [v1.0]"

var autoclose = false

s = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false

function openFrameless(){
if (beIE){
NFW = window.open("","popFrameless","width=790,height=460"+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=no>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
NFW.document.open();
NFW.document.write(frameString)
NFW.document.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()}
}
}

</script>

Despite their warning, I *have* fiddled with the code "below this line", to get the sizing right and the popup to function, so if you need to fiddle with the core javascript, feel free. Please respond A.S.A.P.

Thanks,
Arabella