iaineach
03-10-2006, 12:19 PM
Hi,
Can anyone help me with some javascript? I have a a popup launched from a flash file on a button action (geturl) which works fine on IE and Firefox but in Safari it won't work at all. There is no pop-up blocker, as I can call the javscript on the actual HTML of the page and it works fine.
Any help much appreciated. Code is below:
Actionscript
on (release) {
getURL ("javascript:spawnWindow('manny03.html','manny_movie ','toolbar=no,location=no,status=no,menubar=no,scr ollbars=no,resizable=no,width=600,height=600,top=' +topPos+',left='+leftPos+'')");
}
Javascript
function spawnWindow(URL,Name,features) {
window.open(URL,Name,features);
}
leftPos = 0
topPos = 0
if (screen){
leftPos = (screen.width-600)/2
topPos = (screen.height-600)/2
}
thanks.
Can anyone help me with some javascript? I have a a popup launched from a flash file on a button action (geturl) which works fine on IE and Firefox but in Safari it won't work at all. There is no pop-up blocker, as I can call the javscript on the actual HTML of the page and it works fine.
Any help much appreciated. Code is below:
Actionscript
on (release) {
getURL ("javascript:spawnWindow('manny03.html','manny_movie ','toolbar=no,location=no,status=no,menubar=no,scr ollbars=no,resizable=no,width=600,height=600,top=' +topPos+',left='+leftPos+'')");
}
Javascript
function spawnWindow(URL,Name,features) {
window.open(URL,Name,features);
}
leftPos = 0
topPos = 0
if (screen){
leftPos = (screen.width-600)/2
topPos = (screen.height-600)/2
}
thanks.