PDA

View Full Version : chromeless javascript



Scootman
July 28th, 2003, 07:07 PM
i made a chromeless thing from an example on another site...but i want to edit the javascript to open any URL that i pass to it...


function openIT() {
theurl="siteconcept.swf"
wname ="CHROMELESSWIN"
W=1050;
H=700;
windowCERRARa = "img/close_a.gif"
windowCERRARd = "img/close_d.gif"
windowCERRARo = "img/close_o.gif"
windowTIT = "<font face=verdana size=1>&nbsp; window title</font>"
windowBORDERCOLOR = "#000000"
windowBORDERCOLORsel = "#FFFFFF"
windowTITBGCOLOR = "#e0e0e0"
windowTITBGCOLORsel = "#a0a0a0"
openchromeless(theurl, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowTIT,

windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel)
}

that is the current code and i dont know why i cant just do


function openIT(theurl) {
//theurl="siteconcept.swf"
wname ="CHROMELESSWIN"
W=1050;
H=700;
windowCERRARa = "img/close_a.gif"
windowCERRARd = "img/close_d.gif"
windowCERRARo = "img/close_o.gif"
windowTIT = "<font face=verdana size=1>&nbsp; window title</font>"
windowBORDERCOLOR = "#000000"
windowBORDERCOLORsel = "#FFFFFF"
windowTITBGCOLOR = "#e0e0e0"
windowTITBGCOLORsel = "#a0a0a0"
openchromeless(theurl, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowTIT,

windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel)
}

but it doesnt work... am i doing something wrong?

abzoid
July 28th, 2003, 07:36 PM
Just a shot in the dark, but try passing the full url path (http://www.mysite.com/siteconcept.swf) when you call the function.

Scootman
July 28th, 2003, 08:01 PM
naw i was trying it with local paths at first... but i think i decided to use regular popups, from what i hear chromeless dont work with anything besides windows/IE... and they are sort of a hassle... they look cool but too much work to get them right... so thanks for the help but i think im gonna try a regular popup

DigitalPimp
July 28th, 2003, 11:42 PM
The script is full of bugs and doesn't work with IE6. It will only go fullscreen.