Welcome to Dream.In.Code
Getting Help is Easy!

Join 131,637 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,168 people online right now. Registration is fast and FREE... Join Now!




Resize link popup to image size

 
Reply to this topicStart new topic

Resize link popup to image size, Need help incorporating to xml file

lorne17
post 13 Oct, 2008 - 11:24 AM
Post #1


New D.I.C Head

*
Joined: 26 Aug, 2008
Posts: 8

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
CODE

<?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>


User is offlineProfile CardPM

Go to the top of the page


PsychoCoder
post 13 Oct, 2008 - 11:27 AM
Post #2


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,906



Thanked 116 times

Dream Kudos: 8450

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


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¢ smile.gif
User is offlineProfile CardPM

Go to the top of the page

lorne17
post 14 Oct, 2008 - 11:46 AM
Post #3


New D.I.C Head

*
Joined: 26 Aug, 2008
Posts: 8

QUOTE(PsychoCoder @ 13 Oct, 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¢ smile.gif


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
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 05:56AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month