# Thumbnail?

**URL:** <https://forum.kirupa.com/t/thumbnail/35364>\
**Category:** flash\
**Created:** [November 13, 2003, 3:25am UTC](https://forum.kirupa.com/t/thumbnail/35364 "2003-11-13T03:25:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spermpit](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@spermpit](https://forum.kirupa.com/u/spermpit)\
**Post date:** [November 13, 2003, 3:25am UTC](https://forum.kirupa.com/t/thumbnail/35364/1 "2003-11-13T03:25:38Z")

</div>

What up everyone  
I had made a gallery with 10 thumbnails. When the TN is clicked I would like the image to open in a new window. I C/P this script from the pop up window tutorial

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

Then I placed this script in a layer above

\_global.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {  
getURL(“javascript: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+"))+’"+"’);void(0);");  
};

The problem is it only works for one TN  
Can any help me with this one
