View Full Version : Chromeless Window Troubles


Omega
05-12-2003, 03:29 AM
I am trying to make a chromeless window. The window pops up, but it's blank. There should be content! I'm testing it here:
http://www.geocities.com/clan_spiritwalk/art.html

This is the script I'm using:
In the head-
<script src="chromeless_35.js"></script>
<script language="javascript">
// CREDITS:
// Chromeless window script by Gabriel Suchowolski ( www.microbians.com )
// Distributed with permission by Lissa ( www.lissaexplains.com )
function openIT(u,W,H,X,Y,n,b,x,m,r) {
var cU ='close_up.gif'
var cO ='close_ovr.gif'
var cL ='clock.gif'
var mU ='min_up.gif'
var mO ='min_ovr.gif'
var xU ='max_up.gif'
var xO ='max_ovr.gif'
var rU ='res_up.gif'
var rO ='res_ovr.gif'
var tH ='<font face=verdana size=1> SpiritWalk</font>'
var tW =' SpiritWalk'
var wB ='#9966cc'
var wBs ='#9966cc'
var wBG ='#cc99ff'
var wBGs='#330066'
var wNS ='toolbar=0,location=0,directories=0,status=0,menu bar=0,scrollbars=0,resizable=0'
var fSO =
var brd =b||0;
var max =x||false;
var min =m||false;
var res =r||true;
var tsz =20;
return chromeless(u,n,W,H,X,Y,cU,cO,cL,mU,mO,xU,xO,rU,rO,
tH,tW,wB,wBs,wBG,wBGs,wNS,fSO,brd,max,min,res,tsz)
}
</script>

In the body-
<a href="#" onclick="mywindow=openIT('art.html',400,200,null,null,'mywi ndowname')">Open Chromeless</a>

If you could help me out, I'd greatly appreciate it. Thanks.

amicus
05-12-2003, 03:49 AM
you forgot to initialize a line. i'm not sure what it's suppose to be but i just used empty quotes :)

var fSO ="";

Omega
05-12-2003, 04:03 AM
Hmmm... Kk, fixed that, window pops up, but there still isn't any content. =(

amicus
05-12-2003, 01:11 PM
looks like you have a space between 'art.' and 'html' (art. html). change it to 'art.html' (without the space.) hopefully that will work.

Omega
05-13-2003, 01:05 AM
Nope, something must have caused that when I copied and pasted, it's art.html on the page.