-
Ok I used the javascript button code generator to generate pop up windows for a site I'm working on. When you click the button nothing happens... what's wrong with this code? The movie IS embedded in HTML.
on (release) {
getURL ("javascript:NewWindow=window.open('http://www.anotherdimensiontattoo.com/mike.html','Mike','width=800,height=600,left=0,top =0,toolbar=No,location=No,scrollbars=Yes,status=No ,resizable=No,fullscreen=No'); NewWindow.focus(); screen_height = window.screen.availHeight; screen_width = window.screen.availWidth; left_point = parseInt(screen_width/2)-(800/2); top_point = parseInt(screen_height/2)-(600/2); setTimeout('NewWindow.moveTo(left_point,top_point) ',100); void(0);");
This is the code generator
http://www.flash-db.com/PopUp/
-
It's usually better to have the javascript function in the html and to just call it from Flash with/without a few parameters.
on (release) {
getURL ("javascript:my_newWindow(parameter,parameter,para meter)");
}
-
Originally posted by oldnewbie
It's usually better to have the javascript function in the html and to just call it from Flash with/without a few parameters.
on (release) {
getURL ("javascript:my_newWindow(parameter,parameter,para meter)");
}
How do I set the function in the html for the popup window?
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
|