Very attractive site. Is that the script from WebFX, http://webfx.eae.net/ ? Anyone
looking for lots of javascript / dhtml stuff should check that site. It is pretty
incredible and it looks as though their scripts are easily modified, ie pluggable.
Their borderless windows are even resizable
- Original Message -
From: Stampe, Lars
To: 'Joe Webster' ; [EMAIL PROTECTED]
Sent: Thursday, March 21, 2002 4:52 PM
Subject: RE: [PHP] Making a simple borderless pop up window with a "Close" button
Hi,
I have a script that might do what you want, I don't have time to explain
but have a look at:
http://www.epson.co.uk/product/printers/inkjet/styc80/flash/index.html and
launch the site!
** SCRIPT
/*
CHROMELESS WINDOWS v.31.0 [ 4.50K ]
(c) Gabriel Suchowolski,2000 | www.microbians.com
Licensed under GNU LGPL (www.gnu.org)
*/
function chromeless(u,n,W,H,X,Y,cD,cU,cO,cL,tH,tW,wB,wBs,wBG,wBGs,wNS,fSO){
var c=(document.all&&navigator.userAgent.indexOf("Win")!=-1)?1:0
var w=window.screen.width; var h=window.screen.height
var W=W||w; W=(typeof(W)=='string'?Math.ceil(parseInt(W)*w/100):W);
W+=2*c
var H=H||h; H=(typeof(H)=='string'?Math.ceil(parseInt(H)*h/100):H);
H+=23*c
var X=X||Math.ceil((w-W)/2)
var Y=Y||Math.ceil((h-H)/2)
var s=",width="+W+",height="+H
if(c){
var cTIT='\n'+
'\n'+
'\n'+
'var iclod=new Image();iclod.src="'+cD+'";var iclou=new
Image();iclou.src="'+cU+'";var icloo=new Image();icloo.src="'+cO+'";var
iload=new Image();iload.src="'+cL+'";\n'+
'document.onselectstart=new Function("return
false;");document.ondragstart=new Function("mWIN();return
false;");document.oncontextmenu=new Function("return
false;");document.onmousemove=mWIN\n'+
'b=-1;\n'+
'function
wLoa(){if(top.loaded){bloa.style.visibility="hidden";sRes()}else
setTimeout("wLoa()",500)}\n'+
'function
sRes(){bclo.style.pixelLeft=document.body.clientWidth-18;bloa.style.pixelLef
t=document.body.clientWidth-38}\n'+
'function mWIN(){\n'+
'if(b==0){document.body.bgColor="'+wBG+'";parent.bM.document.body.bgColor="'
+wB+'";parent.bT.document.body.bgColor="'+wB+'";parent.bB.document.body.bgCo
lor="'+wB+'";parent.bL.document.body.bgColor="'+wB+'";parent.bR.document.bod
y.bgColor="'+wB+'";b=-1}\n'+
'if(b==2){px=event.screenX-ofx-1;py=event.screenY-ofy-1;top.window.moveTo(px
,py);}\n'+
'if(b==1){document.body.bgColor="'+wBGs+'";parent.bM.document.body.bgColor="
'+wBs+'";parent.bT.document.body.bgColor="'+wBs+'";parent.bB.document.body.b
gColor="'+wBs+'";parent.bL.document.body.bgColor="'+wBs+'";parent.bR.documen
t.body.bgColor="'+wBs+'";ofx=event.x;ofy=event.y;b=2}\n'+
'}\n'+
'\n'+
''+tH+'\n'+
'\n'+
'\n'+
'\n'+
'wLoa()\n'+
'\n'+
''
cTIT=cTIT.replace(/\//g,"\\\/").replace(/\"/g,"\\\"").replace(/\n/g,"\\n")
var cFRM=''+tW+'\n'+
'\n'+
'top.loaded=false\n'+
'function mTIT(){\n'+
' if(frames.length>6){\n'+
'
fT.document.bgColor="'+wBG+'";fT.document.write("'+cTIT+'");fT.document.clos
e()\n'+
'
bM.document.bgColor="'+wB+'";bL.document.bgColor="'+wB+'";bR.document.bgColo
r="'+wB+'";bB.document.bgColor="'+wB+'";bT.document.bgColor="'+wB+'"\n'+
' } else setTimeout("mTIT()",20)\n'+
'}\n'+
'mTIT()\n'+
'\n'+
'\n'+
' \n'+
' \n'+
' \n'+
' \n'+
' \n'+
' \n'+
' \n'+
' \n'+
'\n'+
'\n'+
''
var CWIN=window.open("",n,"fullscreen=1"+s)
CWIN.moveTo(5000,0)
CWIN.resizeTo(W,H)
CWIN.document.write(cFRM)
CWIN.document.close()
CWIN.moveTo(X,Y)
} else {
var CWIN=window.open(u,n,wNS+s,true)
CWIN.moveTo(X,Y)
}
CWIN.focus()
CWIN.setURL=function(u) { if (this && !this.closed) { if
(this.frames.main) this.frames.main.location.href=u; else
this.location.href=u } }
CWIN.closeIT=function() { if (this && !this.closed) this.close() }
return CWIN
}
*** END
-Original Message-
From: Joe Webster [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2002 18:51
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Making a simple borderless pop up window with a
"Close" button
Using the options parameter will allow you to get rid of toolbarts and
scrollbars, but NOT the window's border, which the question was asking.
-Joe
"Bvr" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
> The 3rd parameter to JavaScript function window.open() allows you to
> disable a number of window elements every browser has,
> these include the toolbar (buttons), location, status, menubar,
scrollbars.
> This functionality is provided by the most common browsers and versions
> (MSIE and Netscape) and will also work in Mozilla and Netscape 6. I
> don't know about the JavaScript implementation in Opera, but if it
> supports JS it is likely to support these options too (or at least
> ingores them).
>
> bvr.
>
>
> Joe Webster wrote:
>
> >It only works in IE -- it