PDA

View Full Version : spawn window tutorial


stos
04-04-2005, 03:59 AM
I'm trying to use the "spawn window (popup) lesson on the tutorial page (tutorial 06), but I can't get it to work..can anyone help me? Thanks in advance.

I generate the automatic code to http://www.atomicstos.com/popup.html

but for item 1. in the turorial it says: 1. Insert the base Javascript code into your HTML code between the HEAD tags (<head> Script goes here </head>). Copy and paste the script below:

is this supposed to be the html file for the main page that I have embedded flash into or is it for the separate popup html?

and for the second step it says:2. Enter your details into the Generator (left) and then add them to your flash button in the following form:

what does it mean by Generator? I added the code to the button fine.

Any help is appreciated....

Boskic.com
04-04-2005, 10:46 AM
Your script in popup.html is wrong, use this
<script type="text/javascript">
function spawnwindow() {
window.open("http://www.atomicstos.com/popup.html", "Nubeau Guarantee","toolbar=no, location=no, status=no, menubar=no, scrollbars=no, resizable=no, width=500, height=800");
}
</script> if it is called from function

or

<script type="text/javascript">
window.open("http://www.atomicstos.com/popup.html", "Nubeau Guarantee","toolbar=no, location=no, status=no, menubar=no, scrollbars=no, resizable=no, width=500, height=800");
</script> if it is called automaticly.

Good luck :)

stos
04-04-2005, 11:28 AM
I tried both and neither worked. It must be the code in my flash file. I don't know what it means in the tutorial to paste code into the Generator. Is the Generator the index.html file?

Thanks for your help!

Boskic.com
04-05-2005, 11:01 AM
on (press)
{
getURL("javascript:window.open(\'http://www.atomicstos.com/popup.html\',\'Nubeau Guarantee\', \'toolbar=no, location=no, status=no, menubar=no, scrollbars=no, resizable=no, width=500, height=800\')");
}
in flash button code, not in html page.