...

View Full Version : Chromeless window help?



JpDm
02-20-2003, 07:28 AM
hey i was wondering why i cant get my chromeless window to work :confused: when i put it in it says error

here's the html for the chromeless


<script language="javascript" type="text/javascript" src="chromeless_35.js"></script>
<script language="javascript">

/*
Chromeless Window (v3.5)- By Gabriel Suchowolski (this credit MUST stay intact)
Author site at http://www.microbians.com
Visit http://www.dynamicdrive.com for this script
*/

//For paramater explanations, see accompanying faq.htm file
function openIT(u,W,H,X,Y,n,b,x,m,r) {
var cU ='close.gif' //gif for close on normal state.
var cO ='close.gif' //gif for close on mouseover.
var cL ='clock.gif' //gif for loading indicator.
var mU ='minimize.gif' //gif for minimize to taskbar on normal state.
var mO ='minimize.gif' //gif for minimize to taskbar on mouseover.
var xU ='max.gif' //gif for maximize normal state.
var xO ='max.gif' //gif for maximize on mouseover.
var rU ='restore.gif' //gif for minimize on normal state.
var rO ='restore.gif' //gif for minimize on mouseover.
var tH ='<font face=verdana size=2>Chromeless Window</font>' //title for the title bar in html format.
var tW ='Chromeless Window' //title for the task bar of Windows.
var wB ='#D5D5FF' //Border color.
var wBs ='#D5D5FF' //Border color on window drag.
var wBG ='#D5D5FF' //Background of the title bar.
var wBGs='#D5D5FF' //Background of the title bar on window drag.
var wNS ='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0' //Html parameters for Netscape.
var fSO ='scrolling=auto noresize' //Html parameters for main content frame.
var brd =b||5; //Extra border size.
var max =x||false; //Maxzimize option (true|false).
var min =m||false; //Minimize to taskbar option (true|false).
var res =r||false; //Resizable window (true|false).
var tsz =20; //Height of title bar.
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><script language="javascript" type="text/javascript" src="chromeless_35.js"></script>

thats in the <head> tag


and this is to open the window



<p><a href="#" onclick="mywin001=openIT('http://www.google.com',600,400,null,null,'mywin001',5,true,true,true);return false">
Open Google.com</a>

but i cant get it to work =\
im sorry if this is wayy too long
google is just the example, im putting in my site and changing stuff, but i gotta get it to work first =\

TheMenace
02-20-2003, 02:18 PM
I'm not sure as it's been a LONG while since I used a chromeless window. My advice is not to use it though... they're soooooooo sloooooooooow.

arnyinc
02-20-2003, 02:25 PM
I think IE stopped supporting them due to some security issues. I'm not sure what version, but if you have IE6, it probably won't work.

JpDm
02-20-2003, 06:24 PM
o... but i just saw this site that had it.... and i viewed it just fine, it was pretty fast too... and im running on XP and ie6

no problems here

neonwhiskey
02-20-2003, 07:09 PM
Here's one simple way:

<html><head>
<title></title>
<script language="JavaScript">
function launchwin(page) {
newwin=window.open(page,"myTitle","fullscreen=1,scrollbars=0");
newwin.resizeTo(screen.availWidth,screen.availHeight+1);
}
</script>
<body>
<a href="javascript:launchwin('content.html')";>click here to open it.</a>
</body>
</html>

Promise me that you'll put an obvious exit button in the top right though!! ; )) Microbians script ok only when you need resizable chromeless windows, but in that case, check his site for help files.

Jenn

JpDm
02-20-2003, 08:57 PM
whoa... hahaha full screen

thats cool, but not really what i wanted. my site has nonresizeable scrollbars but i wanted to customize the chrome to something else ( like microbians) but i cant seem to get it to work =\

but i guess like the warning says.. xp doesnt support it... but i know a site that has it and it works just fine... :(

Quiet Storm
02-20-2003, 09:48 PM
I think I can help. :)

I still like chromeless windows, no matter what - my sites are my art, don't like it.... sorry. ;)

Anyway, what does the error say exactly, or do you have a URL where I can go and see it?

(just a suggestion - loose the no-right click script: my pet peeve) :)

arnyinc
02-20-2003, 10:53 PM
Chromeless windows will not work if you have XP, IE6, and install service pack 1. So anyone who keeps their computer up to date will not see chromeless windows. Here's the link on dynamic drive where I read this:

http://www.dynamicdrive.com/dynamicindex8/chromeless.htm

edit: it's kind of like the opposite of supporting Netscape for users who upgrade too slowly :)

Quiet Storm
02-20-2003, 11:30 PM
Won't work on any windows OS/IE6/SP1. Just opens fullscreen...

If you code your site for that problem, it can still look nice. I've got it so if the page opens fullscreen, everything is still nice and centered (used FRAMES).

There's also another Chromeless2 code that will open on IE6 w/SP1... But unfortunately it doesn't seem to like FRAMES or outside linking. Sites using iFRAMES won't show up either.

Another option is to have JavaScript detect if your visitors IE browser has SP1 installed. If so, you could have JavaScript open the page a certain size:

window.open('Page2.html','NewWindow','toolbar=no,status=no,scrollbars=no,location=no,menubar=no,dire ctories=no,width=400,height=250')

If no SP1, then a link could provide normal Chromeless access! :)

Beck
02-21-2003, 05:54 AM
I'm running windows xp and followed the above posted link to dynamic drive. Clicked the link and got google to open. Chromeless works fine here. I've worked with them in windows millenium edition, and they are so easy to screw up. My advice is to go follow the instructors at dynamic drive to get reinstalled on your machine, then just change urls to begin with to your own, and just take it one step at a time.

Chromelss are pretty cool, though!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum