View Full Version : Chromeless windows


caboodles
01-13-2003, 12:12 AM
I am really confused. I thought I did everything correctly. Somebody - TELL ME WHAT I DID WRONG! Please. =D

my splash page:
<html>
<head>
<STYLE type="text/css"><!--
a:link {color:#CC7BB5; text-decoration:none;}
a:visited {color:#CC7BB5; text-decoration:none;}
a:active {color:#5D5560; text-decoration:none;}
a:hover {color:#5D5560; text-decoration:underline;}
--></STYLE>
<style type="text/css">
scrollbar-face-color:#CC7BB5;
scrollbar-arrow-color:#000000;
scrollbar-track-color:#DDFAFF;
scrollbar-shadow-color:#DDFAFF;
scrollbar-darkshadow-color:#000000;
scrollbar-3dlight-color:#DDFAFF;
scrollbar-highlight-color:#000000;}
</style>
<style text="text/css">
body,tr,td,p {font-size:8PT; font-family: tahoma; letter-spacing:0PT; line-height:10PX; color:black;}
</style>
<title>mOMENTo^-- version XOXO</title>
<body>
<center><img src="enter.png"></center>
<br>
<a href="#" onclick="mywindow=openIT('index.html',400,200,null,null,'my windowname')">enter</a>
<br><br>
<p align="right"><b><u>please remember</u></b>
<br>your browser must support chromeless windows
<br>and any other css stuff
<br>resolution to be 800x600 or this probably won't work right
<br>no intention of stealing please!
<br>have a heck of a time! =D it be funn
</p>
</html>

index page: (or the page that will be in the window)
<html>
<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=tahoma size=1>mOMENTo^-- version XOXO</font>'
var tW ='mmm'
var wB ='white'
var wBs ='white
var wBG ='lavenderblush3'
var wBGs='black'
var wNS ='toolbar=0,location=0,directories=0,status=0,menu bar=0,scrollbars=0,resizable=0'
var fSO ='scrolling=no noresize'
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>
<STYLE type="text/css"><!--
a:link {color:black; text-decoration:none;}
a:visited {color:black; text-decoration:none;}
a:active {color:#5D5560; text-decoration:none;}
a:hover {color:#5D5560; text-decoration:underline;}
--></STYLE>
<style type="text/css">
scrollbar-face-color:#CC7BB5;
scrollbar-arrow-color:#000000;
scrollbar-track-color:#DDFAFF;
scrollbar-shadow-color:#DDFAFF;
scrollbar-darkshadow-color:#000000;
scrollbar-3dlight-color:#DDFAFF;
scrollbar-highlight-color:#000000;}
</style>
<style text="text/css">
body,tr,td,p {font-size:8PT; font-family: tahoma; letter-spacing:0PT; line-height:10PX; color:black;}
</style>
<title>mOMENTo^-- version XOXO</title>
</head>
<body>
<table width=300 style="position:absolute; top:50; left:350;"><td><tr><iframe frameborder=0 style="filter:alpha(opacity=55); border:1PT SOLID COLOR;" width=270 height=200 src="hey.html" name=main></iframe></table>
<center><IMG SRC="yeah.png" USEMAP="#yeah.png" border="0"></center>
<table width=300 style="position:absolute; top:270; left:380;"><td><tr><font face="tahoma" size="1" color="black"><a href="me.html" target=main>me</a>&nbsp;&nbsp; &nbsp;<a href="you.html" target=main>you</a>&nbsp; &nbsp; &nbsp;<a href="www.html" target=main>www</a>&nbsp; &nbsp; &nbsp;<a href="hey.html" target="main"> clear</a>&nbsp; &nbsp; </table>
</MAP>
</body>
</html>

Dude128
01-13-2003, 03:06 AM
- you have three style sheets on each page. you should combine them all into one on each.
- you have no </head> tag in your splash page
- you have no </body> tag in your splash page
- the chromeless code should go in the head section of the page that has the link to be opened in the chromless window, not the page to be opened

caboodles
01-13-2003, 11:47 PM
I already did the last thing before. And it wouldn't work. So I tried the way I had it as I pasted it, and it still didn't work. o_o