-
Opening Separate Browser Window To Size
I have a button in a Flash Movie that I need to script to open another _Blank window which will be an HTML page only (no Flash Content).
What I want is the HTML document in the blank window to open at a smaller fixed size (say 300x300) so that it does not entirely obscure my Flash movie in the background. The HTML page will only contain a registration form, so it does not need a menu bar - just a close box in the browser.
I have been trying to get this to work using "Get URL" and I see where I can set a _blank window, but no size?
Any Idea how to do this?
-
Ryan Thomson
heya,
try this:
on (release) {
varHeight = "300";
varWidth = "300";
getURL("javascript:window.open('yourPopupLink.html ','homepage','width=300,height=300,top='+((screen. availHeight/2)-(" add varHeight/2 add "))+',left='+((screen.availWidth/2)-(" add varWidth/2 add "))); void(0);");
}
this will also center the popup
good luck!
-
What I want is the HTML document in the blank window to open at a smaller fixed size (say 300x300).
Popup Script Generator in my footer...
-james
-
Thanks EvolveDesigns for the script. I added it to a button in Flash and it opened a blank window, but that was it?
jamescover,
I think your Script generator solved my problem - thank you so much for the link!
-
Ryan Thomson
look for this part in the script:
yourPopupLink.html
change it to the name of the page you want to open
-
I think your Script generator solved my problem - thank you so much for the link!
Great! Glad I could help.
BTW, I rewrote the script last night using a textarea, instead of innerHTML, so this one is IE & NN4+ compatable.
I think it's much nicer too--check it out, if you get a chance.
-james
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|