Resize link popup to image size

Need help incorporating to xml file

Page 1 of 1

2 Replies - 1493 Views - Last Post: 14 October 2008 - 12:46 PM

#1 lorne17   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 26-August 08

Resize link popup to image size

Posted 13 October 2008 - 12:24 PM

Hello there,

I have been working on getting this slideshow just right. It is a flash file that uses an xml file to pull in photos from different folders. What I am trying to do is to link all the images in the gallery to their fullsize photo in a new window.

I have successfully done this using the target=_blank code. But, that doesn't quite do the trick. Is there a simple way to have the link be a popup that resizes to the image size? Preferably have it only xml. otherwise incorporate javascript if needed.

My xml code is below, any help on this would be great.

Thanks so much,

Lorne
<?xml version="1.0" encoding="utf-8"?>
<gallery>
<album title="The Modern Green Homes" description="" lgPath="gallery/album/large/" tnPath="gallery/album/thumb/" tn="">
<img src="MGH-01.jpg" title="" caption="" link="gallery/album/fullsize/image01.jpg" target="_blank"/>
<img src="MGH-02.jpg" title="" caption="" link="gallery/album/fullsize/image02.jpg" target="_blank"/>
<img src="MGH-03.jpg" title="" caption="" link="gallery/album/fullsize/image03.jpg" target="_blank"/>
<img src="MGH-04.jpg" title="" caption="" link="gallery/album/fullsize/image04.jpg" target="_blank"/>
<img src="MGH-05.jpg" title="" caption="" link="gallery/album/fullsize/image05.jpg" target="_blank"/>
<img src="MGH-06.jpg" title="" caption="" link="gallery/album/fullsize/image06.jpg" target="_blank"/>
<img src="MGH-07.jpg" title="" caption="" link="gallery/album/fullsize/image07.jpg" target="_blank"/>
<img src="MGH-08.jpg" title="" caption="" link="gallery/album/fullsize/image08.jpg" target="_blank"/>
<img src="MGH-09.jpg" title="" caption="" link="gallery/album/fullsize/image09.jpg" target="_blank"/>
<img src="MGH-10.jpg" title="" caption="" link="gallery/album/fullsize/image10.jpg" target="_blank"/>
<img src="MGH-11.jpg" title="" caption="" link="gallery/album/fullsize/image11.jpg" target="_blank"/>
<img src="MGH-12.jpg" title="" caption="" link="gallery/album/fullsize/image12.jpg" target="_blank"/>
<img src="MGH-13.jpg" title="" caption="" link="gallery/album/fullsize/image13.jpg" target="_blank"/>
<img src="MGH-14.jpg" title="" caption="" link="gallery/album/fullsize/image14.jpg" target="_blank"/>
<img src="MGH-15.jpg" title="" caption="" link="gallery/album/fullsize/image15.jpg" target="_blank"/>
<img src="MGH-16.jpg" title="" caption="" link="gallery/album/fullsize/image16.jpg" target="_blank"/>
<img src="MGH-17.jpg" title="" caption="" link="gallery/album/fullsize/image17.jpg" target="_blank"/>
<img src="MGH-18.jpg" title="" caption="" link="gallery/album/fullsize/image18.jpg" target="_blank"/>
<img src="MGH-19.jpg" title="" caption="" link="gallery/album/fullsize/image19.jpg" target="_blank"/>
<img src="MGH-20.jpg" title="" caption="" link="gallery/album/fullsize/image20.jpg" target="_blank"/>
<img src="MGH-21.jpg" title="" caption="" link="gallery/album/fullsize/image21.jpg" target="_blank"/>
</album>
</gallery>


Is This A Good Question/Topic? 0
  • +

Replies To: Resize link popup to image size

#2 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1659
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Resize link popup to image size

Posted 13 October 2008 - 12:27 PM

For something like this I would honestly look at using Lightbox. It's really simple and offers a nice way to display the full size image without having to even leave the page. Just my 2 :)
Was This Post Helpful? 0
  • +
  • -

#3 lorne17   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 26-August 08

Re: Resize link popup to image size

Posted 14 October 2008 - 12:46 PM

View PostPsychoCoder, on 13 Oct, 2008 - 12:27 PM, said:

For something like this I would honestly look at using Lightbox. It's really simple and offers a nice way to display the full size image without having to even leave the page. Just my 2 :)


Well can I link lightbox to the flash links? Also, I would end up putting the lightbox code into my xml file. SO I didn't know if I can do that in xml or not?

Is this possible?

Thanks,

Lorne
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1