# Pop up windows

**URL:** <https://forum.kirupa.com/t/pop-up-windows/38653>\
**Category:** Uncategorized\
**Created:** [December 27, 2003, 5:57pm UTC](https://forum.kirupa.com/t/pop-up-windows/38653 "2003-12-27T17:57:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Recognize](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Recognize](https://forum.kirupa.com/u/Recognize)\
**Post date:** [December 27, 2003, 5:57pm UTC](https://forum.kirupa.com/t/pop-up-windows/38653/1 "2003-12-27T17:57:52Z")

</div>

am trying to create a gallery page of 12 thumbnail photos and when you click on one of the photos it will open a pop up window to display it at a larger size.

Now i got one of them to work but cant get the others. Ne ideas ne one?

e.g

Photo 1 Button (action script)

On (realease) {  
get URL(“Javascript:popupwindow( );”, “\_self”);  
}

When that is published, in the html i have got:-

\<HTML\>  
\<HEAD\>  
\<script LANGUAGE=“JavaScript”\>  
function popupwindow(){  
window.open(“Photo1.swf”,"",“height=208,width=320,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,left=0,top=0”)  
}  
\</script\>  
\<meta http-equiv=Content-Type content=“text/html; charset=ISO-8859-1”\>  
\<TITLE\>Gallery\</TITLE\>  
\</HEAD\>

Now that works for 1 button but wot about the others? Wot else do i need to add in.

Ne1 :\*(

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 28, 2003, 4:25am UTC](https://forum.kirupa.com/t/pop-up-windows/38653/2 "2003-12-28T04:25:53Z")

</div>

[AS]getURL(“javascript: popupwindow(‘me.swf’,‘500’,‘500’);”, “\_self”);[/AS]

```php
function popupwindow(pic,h,w){
	window.open( pic , null ,'height='+h+' width='+w+' menubar=0 resizable=0 scrollbars=0 status=0 titlebar=0 toolbar=0 left=0 top=0')
}

```

don’t call swf’s using this function. instead why don’t you just call a jpg?
