PDA

View Full Version : html javascript popup window code.



charliealpha
June 25th, 2003, 11:10 AM
hi,

My flash site is nearly complete :) One thing though, its been a while and I cant seem to find any script that works.

I'd like the obligatory 'click here to launch site' button and the flash movie to open in the middle of the page with no borders, status bar or stuff like that.

All the script I've found doesn't seem to want to work.

thanks.

this is what I have:



<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=760,height=504,left = 260,top = 228');");
}
// End -->
</script>


but I still get the toolbars etc even if the toolbar=0 is changed to toolbar=no

and this is my image code:



<A HREF="javascript:popUp('main.swf')"><img src="msplogo.gif" width="106" height="57" border="0"></a


URL: http://www.charliealpha.co.uk/sites/msp/test/index.htm

Drunken
June 25th, 2003, 12:55 PM
hmmm... try use chromeless window... but this have some problems with some browsers and service pack 1 of IE. Any way if you want see, there are an example in kirupa tuts.

hasta!

charliealpha
June 25th, 2003, 01:58 PM
doesnt seem to work, it launches full screen :(

Jubba
June 25th, 2003, 01:59 PM
www.chromeless.org

they have a fix for that.

charliealpha
June 25th, 2003, 02:22 PM
I'm getting a funny feeling IE6 has been patched so this can't work anymore.

Thats what I'm reading anyway :(

lostinbeta
June 25th, 2003, 02:30 PM
Check my attachment, it is a centered pop-up window script I did a while ago.

And chromeless windows suck. The fix does work on newer browser, but that doesn't change how annoying those windows are.

Marcellinus
July 1st, 2003, 09:00 PM
Here is the code I have always used: