Click to See Complete Forum and Search --> : Frameless Popup not working!


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-->

AdamGundry
10-19-2003, 02:49 PM
When IE 6.0 SP 1 was released, Microsoft fixed the bug that allowed chromeless popup windows, and hence that script will only work on IE versions 4 - 5.5.

You should redesign your site so that it works without using a popup at all, to comply with accessibility standards.

Adam

webwoman
10-19-2003, 02:59 PM
Thanks!
I thought that was the solution, now I know...

thesavagefiles
08-15-2006, 08:30 AM
I managed to get the above script to work in IE6 by deleting

fullscreen,

But I'm still not happy with the results, because what I was hoping for was a 'completely frameless' popup window containing an image ie. without even the titlebar.

So far, the only way I have found to do this is with what seem to be called 'tooltips'. But the tooltips require a lot of code, including three extra js pages, and becomes a bit complicated if you want to use it in several places on one page.

Does anyone know of a relatively simple way for me to have frameless images popup onclick and automatically close onmouseoff?

Cheers,
Steve