Java script new window pop-up prb

I have been using the script from this tutorial:
http://www.kirupa.com/developer/mx/centered_popup.htm
and also another java script from code generator’s site.

Here is the problem iam having:

I have a webpage (geocities.com/mypage) and iam using a short/fast URL redirect.
The code works fine, window pop-ups in the centre, all works great when i brows my page directly (using geocities.com/mypage), however when i use the URL redirect (takeme.to/mypage), clicking on the button to open the centred pop-up window, nothing happens.

After a week i managed to find out the problem wasnt with how i used the action script, but with the URL redirect. (maybe conflicts with the code or something).

Is there a fix to my problem or should give up the short URL redirect ?

Here is the other code iam using:

on (release) {
getURL (“javascript:NewWindow=window.open(‘URL’,‘WinName’,‘width=400,height=300,left=200,top=100,toolbar=Yes,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No’); NewWindow.focus(); void(0);”);
}

Thanks in advance,
Arman

that aint javascript - its actionscript
javascript for a popup window is as follows:

<script language=“JavaScript”>
function popUpFlash() {
open(“Mag1.swf”, “FlashWindow”, “left=25, top = 100, width=750,height=400,title=Flash”)
}
</script>
and then u just call the function popIpFlash() as an on click event…
note u wanna change “Mag1.swf” to the url of your page
left is how many pixels the window opens from the left
top is how many pixels the window opens from the top
width and height are self explanatory…
“FlashWindow” is the name of the window (in case you wanna change content later)
title should be what is displayed as its title… if memory serves…
as far as i know, if you want it centered youll have to do sumit like ive done before below:

<script language=“JavaScript”>
function popUpFlash() {
if (screen.availWidth == 800){
open(“Mag1.swf”, “FlashWindow”, “left=25, top = 100, width=750,height=400,title=Flash”)
}
if (screen.availWidth == 1024){
open(“Mag1.swf”, “FlashWindow”, “left=137, top = 184, width=750,height=400,title=Flash”)
}
if (screen.availWidth < 750){
alert("Your Screen size is limiting your experience!
This site was intended to be viewed at a higher screen resolution.
The page will load regardless, but for the full effect, please view on a larger monitor,

Thank you,
Cold Phoenix")
open(“Mag1.swf”, “FlashWindow”, “resizable, scrollable, left=0, width=750,height=400,title=Flash”)
}
if (screen.availWidth == 1152){
open(“Mag1.swf”, “FlashWindow”, “left=201, top = 232, width=750,height=400,title=Flash”)
}
if (screen.availWidth == 1280){
open(“Mag1.swf”, “FlashWindow”, “left=265, top = 236, width=750,height=400,title=Flash”)
}
if (screen.availWidth == 1360){
open(“Mag1.swf”, “FlashWindow”, “left=305, top = 184, width=750,height=400,title=Flash”)
}
if (screen.availWidth > 1360){
alert("This site was intended for viewing on smaller monitors and as such you may not experience the full effect.
The site will still be displayed regardless and apologies for any inconveniance,

Thank you,
Cold Phoenix")
open(“Mag1.swf”, “FlashWindow”, “width=750,height=400,title=Flash”)
}
}
</script>

enjoy :wink:

Prophet.