# popUp window not working on a PC

**URL:** <https://forum.kirupa.com/t/popup-window-not-working-on-a-pc/167726>\
**Category:** flash\
**Created:** [October 31, 2005, 1:50pm UTC](https://forum.kirupa.com/t/popup-window-not-working-on-a-pc/167726 "2005-10-31T13:50:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![helen\_zoe](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@helen\_zoe](https://forum.kirupa.com/u/helen_zoe)\
**Post date:** [October 31, 2005, 1:50pm UTC](https://forum.kirupa.com/t/popup-window-not-working-on-a-pc/167726/1 "2005-10-31T13:50:24Z")

</div>

hi,

i did the centered pop-up tutorial - which works great on a mac but not on a pc the site is

[http://www.freelancecameraman.info/](http://www.freelancecameraman.info/) \>stills

the code goes as follows - on the \_root timeline :

\_root.openWinCentre = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {

```
getURL ("javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open('" + url + "','" + winName + "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar + ",location=" + location + ",directories=" + directories + ",status=" + status + ",menubar=" + menubar + ",scrollbars=" + scrollbars + ",resizable=" + resizable + ",top='+((screen.height/2)-(" + h/2 + "))+',left='+((screen.width/2)-(" + w/2 + "))+'" + "')}else{myWin.focus();};void(0);");

```

}

& on the individual buttons :

on (release) {  
//customize the window that gets opened  
// 0 equals NO.  
// 1 equals YES.  
address = “[http://www.freelancecameraman.info/girl.html](http://www.freelancecameraman.info/girl.html)”;  
target\_winName = “andy cotton”;  
width = 500;  
height = 290;  
toolbar = 0;  
location = 0;  
directories = 0;  
status = 0;  
menubar = 0;  
scrollbars = 0;  
resizable = 0;  
//sends data back to the function  
openWinCentre(address, target\_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);  
}

then for the individual popUp windows html page i have put the jpeg as the backgd (i’m not good on tabels & didn’t want a border) :

\<html\>  
\<head\>  
\<title\>andy cotton\</title\>  
\</head\>

\<BODY bgcolor= “#000000” background=“girlOnSteps.jpg” \>

\</html\>

if anyone has any idea i’d be realy grateful  
cheers,

ps where do you get the scrolly windows from to put your script in on the forums?
