# XML Photo Gallery with Links, lots of Links

**URL:** https://forum.kirupa.com/t/xml-photo-gallery-with-links-lots-of-links/78637
**Category:** flash
**Created:** [February 6, 2005, 7:55pm UTC](https://forum.kirupa.com/t/xml-photo-gallery-with-links-lots-of-links/78637 "2005-02-06T19:55:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![suspire](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@suspire](https://forum.kirupa.com/u/suspire)
#### Post date: [February 6, 2005, 7:55pm UTC](https://forum.kirupa.com/t/xml-photo-gallery-with-links-lots-of-links/78637/1 "2005-02-06T19:55:48Z")

</div>

Need to add links to:

[http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm)

Basicly I’m trying to get it to load a url on click of the image and have multiple text fields with links.

Sounds simple enough and probably is for you guys.

Here’s what I’ve got so far.

Danke.

---

<div class="post-metadata">

### Author: ![breathe](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@breathe](https://forum.kirupa.com/u/breathe)
#### Post date: [April 10, 2006, 8:06pm UTC](https://forum.kirupa.com/t/xml-photo-gallery-with-links-lots-of-links/78637/2 "2006-04-10T20:06:43Z")

</div>

I got the links working too from your forum reply. Very helpful. I building a portfolio with images and captions, and there are links in the captions that open new browser pages. I would like some of these links to open pop-up windows (the dimension will vary since they are motion films that pop-up). I haven’t been able to get the JS working for the pop ups through the xml and flash files.

I’m using the kirupa gallery. Not sure what I’m doing wrong, I thought that just adding a javascript header script, and using the regular pop up method would work but it doesn’t. Any ideas? I’ve viewed GetURL methods, but I don’t have a link in Flash, so not sure how to go about.

I appreciate your help. Thanks.

## HTML PAGE includes this:

> \<script language=“JavaScript” type=“Text/JavaScript”\>  
> \<!–  
> function MM\_openBrWindow(theURL,winName,features) { [//v2.0](https://v2.0)  
> window.open(theURL,winName,features);  
> }  
> //–\>  
> \</script\>

* * *

XML FILE:

> \<?xml version=“1.0” encoding=“utf-8” standalone=“yes”?\>  
> \<images\>  
> \<pic\>  
> \<link\>\<![CDATA[\<a href=“javascript:;” onClick=“MM\_openBrWindow(‘page.html’,‘’,‘scrollbars=0,width=700,height=300’)”\>page link\</a\>]]\>\</link\>  
> \</pic\>  
> \</images\>
