View Full Version : help with a chromeless pop-up layout


striddle
06-26-2004, 04:40 AM
Okay, so I was on this graphics site (Day Dream Graphics (http://www.daydreamgraphics.com)) and I got this layout that used css, i frames, java-scripe and chromeless windows. Pretty simple stuff, however, there seems to be something wrong in the code that after you hit the enter button on the splash page, the pop-up window takes up the entire screen instead of being a certain smaller size.

I believe this is the code, but I haven't a clue what to change. I think I need it 601x289, but like I said, I'm not sure.

<link rel="stylesheet" href="style.css" type="text/css">
<script language="javaScript" type="text/javascript" SRC="chromeless.js"></SCRIPT>
<script language="javaScript">
function openIT(theURL,W,H,X,Y, wname) {
CLOSEdwn = "closea.gif"
CLOSEup = "closea.gif"
CLOSEovr = "closeb.gif"
MINIdwn = "down.gif"
MINIup = "down.gif"
MINIovr = "over.gif"
NONEgrf = "None.gif"
CLOCKgrf = "Clock.gif"
titHTML = "<font face=verdana size=2 color=#FFFFFF>&nbsp;&nbsp;&nbsp; The Parting of the Ways </font>"
titWIN = "*"
winBORDERCOLOR = "#006AFC"
winBORDERCOLORsel = "#FFFFFF"
winBGCOLOR = "#83B8FF"
winBGCOLORsel = "#9DD2FE"
return openchromeless(theURL, wname, W, H, X, Y, NONEgrf, CLOSEdwn, CLOSEup, CLOSEovr, MINIdwn, MINIup, MINIovr, CLOCKgrf, titHTML, titWIN, winBORDERCOLOR, winBORDERCOLORsel, winBGCOLOR, winBGCOLORsel)
}
</SCRIPT>
</HEAD>

<BODY TOPMARGIN=10 LEFTMARGIN=10 MARGINWIDTH=0 MARGINHEIGHT=0 scroll="no" bgcolor="#9DD2FE" bgproperties="fixed">


<a href="javascript://" onclick="mywinname01=openIT('dragonair.html', 601, 289, null, null, 'mywinname01');" onmouseover="window.status='';return true;" onfocus="window.status='';this.blur()"><img src="enter.gif" border=0 alt="press me"></a>&nbsp;</p>

kittycat
06-26-2004, 03:41 PM
If you're using IE6 (I think it's the one with the bug) then chromeless windows take up the full screen instead of being resized. You might just have to use a regular popup if you want it to look right.

genoa
07-24-2004, 07:15 PM
Ah. I was going to use chromeless on my website too ^_^ Anyway...on with the more important stuff.

Chromeless windows don't work in Windows XP (after Service Pack1). Well they still do...sort of. It just takes up the entire screen :P and that's probably what you saw.

Hrmmm. I've been digging around looking for a fix, but since I'm a little slow, the sites with these fixes are now gone :(

Like kittycat said...reconsider using regular pop ups,maybe?

Even there is a fix, and it does work. You'll probably still need to make two seperate chromeless sites. One for Windows XP and IE 5/6, and another one for the rest.

Sounds horribly tedious doesn't it?

ashwns
07-25-2004, 08:39 PM
I think I saw some fix but I am unable to open the site.

Try here : http://chromeless.org and lookout for By Klien
and secondly try here
http://www.kirupa.com/developer/mx2004/chromeless.htm

Hope this helps.
Cheers
Ash :froggie2: