Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

i need help really bad, dont know how to go about this!!!

Status
Not open for further replies.

ar7ifac7

Technical User
Nov 2, 2007
3
US
ok... here goes... I am trying to get my photography website going and under the images description I want to put a hyperlink to view the full link. The xml is embedded into the flash template of the website. The problem is I need one for each image, but if I put it under the description it makes everything disappear!

heres the part of my code I want to put it in. It is like this for each image. It repeats everything except the image link an description.

<?xml version="1.0" encoding = "utf-8" ?>
<albums>
<gallery id="1" path="gallery/1/">
<image thumbnail="s1.jpg" pic="1.jpg" description="Ella:
ExposureTime : 1/320Sec
FNumber : F5.0
ExposureProgram : Manual
LightSource : Shade
Flash : Not fired
FocalLength : 170.00(mm)"></image>


can someone please help me? I have searched everywhere. I tried putting the hyperlink everywhere. The hyperlink code I used was
<a href = "LINK HERE">View Full Image</a>.

thanks in advance
 
The template for image tags can be some variation based on this.
[tt]
<xsl:template match="image">
<a href="{../@path}{@pic}">View Full Image</a>
</xsl:template>
[/tt]
 
thanks, just one more question.. where do I put that? does it replace part of the code or go in a certain spot? sorry, this is still very new to me
 
this is my entire xml file for my flash site. Each time someone clicks a thumbnail a larger preview of the image appears in a window to the side. to the other side there is a description which changes with the image. What I want to do is put a hyperlink into the description for each image so they can view the entire image. is that possible? if so can someone give me an example of it into like a line of my code or something? this would be greatly appreciated!!!


?xml version="1.0" encoding = "utf-8" ?>
<albums>
<gallery id="1" path="gallery/1/">
<image thumbnail="s1.jpg" pic="1.jpg" description="Ella:
ExposureTime : 1/320Sec
FNumber : F5.0
ExposureProgram : Manual
LightSource : Shade
Flash : Not fired
FocalLength : 170.00(mm)">
</image>
<image thumbnail="s2.jpg" pic="2.jpg" description="Aden:
ExposureTime : 1/320Sec
FNumber : F4.0
ExposureProgram : Manual
LightSource : Shade
Flash : Not fired
FocalLength : 70.00(mm)
"></image>
<image thumbnail="s3.jpg" pic="3.jpg" description="A Static Lullaby:
ExposureTime : 1/100Sec
FNumber : F6.3
ExposureProgram : Manual
LightSource : Unidentified
Flash : Not fired
FocalLength : 52.00(mm)
"></image>
<image thumbnail="s4.jpg" pic="4.jpg" description="Young Aundee:
ExposureTime : 1/25Sec
FNumber : F2.8
ExposureProgram : Manual
LightSource : Unidentified
Flash : Not fired
FocalLength : 28.00(mm)
"></image>
<image thumbnail="s5.jpg" pic="5.jpg" description="Ashley:
ExposureTime : 1/100Sec
FNumber : F7.1
ExposureProgram : Manual
LightSource : Shade
Flash : Fired(Auto/return light detected)
FocalLength : 150.00(mm)
"></image>
<image thumbnail="s6.jpg" pic="6.jpg" description=""></image>
</gallery>
<gallery id="2" path="gallery/2/">
<image thumbnail="s1.jpg" pic="1.jpg" description="Coit Tower:
ExposureTime : 1/500Sec
FNumber : F10.0
ExposureProgram : Manual
LightSource : Unidentified
Flash : Not fired
FocalLength : 105.00(mm)"></image>
<image thumbnail="s2.jpg" pic="2.jpg" description="The Mansion:
ExposureTime : 2.5Sec
FNumber : F8.0
ExposureProgram : Manual
LightSource : Unidentified
Flash : Not fired
FocalLength : 28.00(mm)
"></image>
<image thumbnail="s3.jpg" pic="3.jpg" description="Palace of Fine Arts:
ExposureTime : 1/30Sec
FNumber : F13.0
ExposureProgram : Manual
LightSource : Unidentified
Flash : Not fired
FocalLength : 28.00(mm)
"></image>
<image thumbnail="s4.jpg" pic="4.jpg" description="Palace of Fine Arts:
ExposureTime : 1/500Sec
FNumber : F11.0
ExposureProgram : Manual
LightSource : Unidentified
Flash : Not fired
FocalLength : 28.00(mm)"></image>
<image thumbnail="s5.jpg" pic="5.jpg" description="
ExposureTime : 1/640Sec
FNumber : F7.1
ExposureProgram : Manual
LightSource : Shade
Flash : Not fired
FocalLength : 11.50(mm)
"></image>
<image thumbnail="s6.jpg" pic="6.jpg" description="Decay:
ExposureTime : 1/13Sec
FNumber : F5.6
ExposureProgram : Manual
LightSource : Unidentified
Flash : Not fired
FocalLength : 28.00(mm)
"></image>
</gallery>
<gallery id="3" path="gallery/3/">
<image thumbnail="s1.jpg" pic="1.jpg" description="Pollen:
ExposureTime : 1/250Sec
FNumber : F29.0
ExposureProgram : Manual
LightSource : Shade
Flash : Fired(Auto/return light detected)
FocalLength : 70.00(mm)
"></image>
<image thumbnail="s2.jpg" pic="2.jpg" description="
ExposureTime : 1/40Sec
FNumber : F6.3
ExposureProgram : Manual
LightSource : Unidentified
Flash : Not fired
FocalLength : 220.00(mm)
"></image>
<image thumbnail="s3.jpg" pic="3.jpg" description="
ExposureTime : 1/80Sec
FNumber : F7.1
ExposureProgram : Manual
LightSource : Unidentified
Flash : Fired(Auto/return light detected)
FocalLength : 82.00(mm)
"></image>
<image thumbnail="s4.jpg" pic="4.jpg" description="
ExposureTime : 1/400Sec
FNumber : F32.0
ExposureProgram : Manual
LightSource : Shade
Flash : Fired(Auto/return light detected)
FocalLength : 70.00(mm)
"></image>
<image thumbnail="s5.jpg" pic="5.jpg" description="
ExposureTime : 1/160Sec
FNumber : F4.5
ExposureProgram : Manual
LightSource : Shade
Flash : Not fired
FocalLength : 150.00(mm)
"></image>
<image thumbnail="s6.jpg" pic="6.jpg" description=""></image>
</gallery>
</albums>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top