NameSilo

Calling a pop-up from flash

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch
Impact
0
hey all,
i'm not a newbie at all to webdesign, but i've never seen this before and am at a loss. hopefully someone has a tip for me. =) basically, i'm having an issue with calling a pop-up window from flash. it works perfect on the mac (IE) but when viewed on the PC (IE) the window has an additional 150 pixels or so added to it's vertical height.

this is the code i have on my button:
on (release) {
getURL("java script:openPop('juke.html','juke',220,29)") ;
}



and this is the javascript code that i put in the flash html page:
function openPop(url,name,popW,popH) {
version = navigator.appVersion;
var w = 800, h = 600;

if (document.all || document.layers) {
w = screen.availWidth;
h = screen.availHeight;
}
var leftPos = (w-popW)/2, topPos = (h-popH)/2;
window.open(url,name,'width=' + popW + ',height=' + popH + ',scrollbars=no,toolbar=no,status=no,resizable=no,
top=' + topPos + ',left=' + leftPos);void(0);
}


this is the URL to see what happens:
www.goodnfilthy.com/indexDEV.html CLICK ON THE "Rock over London, Rock on Chicago" PANEL.


Any thoughts would be really appreciated!
thanks so much!

joanne
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
This is the code that I use:

On your button in flash:

on (release) {
getURL("javascript:NewWindow=window.open('url.htm','windowname','width=400,height=250,left=0,top=0,toolbar=No,location=No,scrollbars=Yes,status=No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}
And you don't need any extra code in your html or anything. Works fine on my PC though i have never tested on a MAC :)
 
0
•••
Appraise.net
Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
URLs.com
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back