PDA

View Full Version : HTML new window


paulie_h
02-06-2006, 01:00 PM
Hi everyone...

I have searched the forums to try and find the answer to this, but I have found similar answers but not precisely what I'm looking for, I'm not even sure if it is possible...

I have a HTML text scroller that loads a HTML text file at run time, and I am trying to load a JavaScript window that has no borders and menu and address bar etc... but I can't seem to get the HTML in the text document to be so correct to work... has anyone done this before or is it possible?

At the moment I have in my .txt document
<A HREF="javascript:openIT('page.html', 450, 250, null, null,'mywinname01');" TARGET="frame_Name">images .all images load in a new window
</A>info

and then in my .html document i have

<script language="javascript" type="text/javascript" src="chromeless.js"></script>
<script language="javascript">
function openIT(u,W,H,X,Y,n) {
var cD ='images/close_down.gif'
var cU ='images/close_up.gif'
var cO ='images/close_over.gif'
var cL
var tH ='<font face=verdana size=1>**Borderless Example</font>'
var tW ='Borderless Example'
var wB ='#003366'
var wBs ='#003366'
var wBG ='#8BB1D8'
var wBGs='#B1CBE4'
var wNS ='toolbar=0,location=0,directories=0,status=0,menu bar=0,scrollbars=0,resizable=0'
var fSO ='scrolling=no noresize'
chromeless(u,n,W,H,X,Y,cD,cU,cO,cL,tH,tW,wB,wBs,wB G,wBGs,wNS,fSO)
}
</script>


Any help would be very appreciated.

Please let me know if an uploaded file would help.

:)

Cheers.

sophistikat
02-06-2006, 10:49 PM
what does your actionscript look like?

paulie_h
02-07-2006, 02:13 AM
Hi,

I have attached the files that have been used...

sophistikat
02-10-2006, 07:28 PM
sorry for the delay, i think there's a bug with User CP but i haven't been getting updates.... i'm check your attachment now

sophistikat
02-10-2006, 07:49 PM
have a looks see

paulie_h
02-14-2006, 12:52 PM
thanks for the reply sophistikat...

i'm on a mac and it doesn't seem to work in safari, and in firefox and IE it seems to open the new page, but not at the requested window size or anything, i'm just thinking that i might be able to code the HTML in the new window to tell it what size to be once loaded. Perhaps i'll give that a try.

Cheers.

sophistikat
02-18-2006, 03:30 AM
i can help you debug if you post 'chromeless.js'