View Full Version : Frames and Chromeless


Kurai Tengai
02-01-2003, 10:57 PM
I have two versions of chromeless on my site (the link is http://kickme.to/DHWeb). one works on winxp the other works for windows prior to XP. i got it to where both chromeless scripts open and work, but in the window for non-xp the frames wont work....there are other frames that work, just not the main frame.

here is the html code--

this is for the frame window that wont work as a frame

<html>
<head>
<title>Dark Horizon Productions v2.0</title>
<script language="JavaScript"><!--
function rc(evnt){if (navigator.appName.toUpperCase().match(/NETSCAPE/) != null)
{if (evnt.which>=2){alert("Dark Horizon Productions ©2001-2003");return false;}}else
{if (event.button>=2){alert("Dark Horizon Productions ©2001-2003");}}}document.onmousedown=rc;
if (document.layers)window.captureEvents(Event.MOUSED OWN);window.onmousedown=rc;
//--></script>

</head>

<frameset cols="200,600" frameborder="NO" border="0" framespacing="0">
<frame src="menu.htm" name="menu" scrolling="NO" noresize>
<frame src="base.htm" name="main" scrolling="NO" noresize>
</frameset>
<body>

</body>
</html>





this is the html for theframe of the main index page with the link to the chromeless window that doesnt work with a frame

<html>
<head>
<title>Untitled Document</title>

<script language="JavaScript"><!--
function rc(evnt){if (navigator.appName.toUpperCase().match(/NETSCAPE/) != null)
{if (evnt.which>=2){alert("Dark Horizon Productions ©2001-2003");return false;}}else
{if (event.button>=2){alert("Dark Horizon Productions ©2001-2003");}}}document.onmousedown=rc;
if (document.layers)window.captureEvents(Event.MOUSED OWN);window.onmousedown=rc;
//--></script>

<script src="Chromeless_35.1/js/chromeless_35.js"></script>

<script language="javascript" type="text/javascript" src="Chromeless_35.1/js/chromeless_35.js"></script>
<script language="javascript">
function openIT(u,W,H,X,Y,n,b,x,m,r) {
var cU ='img/close_up.gif'
var cO ='img/close_ovr.gif'
var cL ='img/clock.gif'
var mU ='img/min_up.gif'
var mO ='img/min_ovr.gif'
var xU ='img/max_up.gif'
var xO ='img/max_ovr.gif'
var rU ='img/res_up.gif'
var rO ='img/res_ovr.gif'
var tH ='<font face=verdana size=1>Dark Horizon Productions v2.0</font>'
var tW ='Dark Horizon Productions v2.0'
var wB ='#000000'
var wBs ='#FFFFFF'
var wBG ='#000000'
var wBGs='#000000'
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||false;
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)
}

function openIT2(u) {
return chromeless(u,'rarewin',500,300,null,null,
'img/close_up.gif','img/close_ovr.gif',
'img/clock.gif',
'img/min_up.gif','img/min_ovr.gif',
'img/max_up.gif','img/max_ovr.gif',
'img/res_up.gif','img/res_ovr.gif',
'<font face=impact color=#f0f0f0 size=5>&nbsp;|||| THIS IS A TEST ||||</font>','||| WIN TEST',
'#505050','#ffffff',
'#707070','#707070',
'toolbar=0,location=0,directories=0,status=0,menub ar=0,scrollbars=0,resizable=0','scrolling=no noresize',
10,false,false,false,35)
}

</script>

</head>

<body bgcolor="#666699" text="#000000" link="#000000" vlink="#000000" alink="#000000">
<div align="right"><font color="#000000"><strong>Internet Explorer 5 and lower:
<font size="4"><a href="#" onclick="mywinname01betaresize=openIT('dhweb.htm',800,600,n ull,null,'mywin001');">Enter</a></font></strong></font> </div>
</body>
</html>


the frames work in the chromeless window for both the winxp and the prior to winxp scripts in netscape, the frame for the non-winxp script doesnt work as a frame in internet explorer



thanks for the help,
Rick

Michele
02-02-2003, 12:02 AM
OH THANKS SO MUCH FOR POSTING THAT!! IVE DOWNLOADED IT ABOUT 3 TIMES TODAY AND I STILL DON'T HAVE IT. THANKS

altpara
02-02-2003, 11:15 AM
In top.htm you have a JavaScript that if floating in limbo, neither in the HEAD nor in the BODY.

In middle.htm you have Chromeless_35.js embedded twice.

Other than that I don't know what else to suggest. Perhaps one or more of the JavaScripts is the culprit - interfering with one another? I'm stumped.

Good luck.

Mary