Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Link to URL for each image in XML file


I'm using the Image Rotator and i'm trying to get each image to link to a separate URL. I've added the <info></info> lines to my XML file, but when i click on the image it just changes to the next image. What am i missing?

Here's my XML code:

<?xml version="1.0" encoding="utf-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<trackList>

<track>
<link>http://www.shortgrass-lib.ab.ca/mhpl/libcard.htm</link>
<location>Banners\librarycard.jpg</location>

</track>


<track>
<info>http://www.shortgrass-lib.ab.ca/mhpl/libcard.htm</info>
<location>Banners\banff_film.jpg</location>

</track>


<track>

<location>Banners\programbooklets.jpg</location>
<info></info>
</track>

<track>

<location>Banners\happygolucky.jpg</location>
<info></info>
</track>

<track>

<location>Banners\mittens.jpg</location>
<info></info>
</track>

</trackList>
</playlist>


Here's my Flashvars code:
<embed src="imagerotator.swf" width="450" height="300" hspace="20" vspace="15" loop="false" align="right" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" flashvars="file=madrid.xml&transition=bgfade&screencolor=0x415f7b&usefullscreen=false&rotatetime=8&allowscriptaccess=always&type=image&linktarget=_self" wmode="transparent"></embed>

Thanks
James

12 Community Answers

JW Player

User  
0 rated :

Thank you for your assistance. Now when i click on the image it doesn't advance to the next image - however it doesn't link to the page either !! What am i missing now? Is there something wrong with my playlist?

Thanks
James

JW Player

User  
0 rated :

I'm having the same problem. I've read all the posts and documentation about this, but I can't figure it out.

http://blog.darbig.com

http://www.darbig.com/rotator/rotator.xml

What am I doing wrong??

Thanks!

JW Player

User  
0 rated :

Actually, I did read that, but it's still not working.

For example, on

http://blog.darbig.com/2008/10/frequently-asked-questionsabout-moi.html

When clicking the first image, you should go to "www.darbig.com." When clicking any other image, you should go to "blog.darbig.com." None of them work.

The only way I can get it to work is by changing "_self" to "_blank," which is not what I want. Bizarre!

Also, why should linktarget be required to be explicitly stated anyway? It is given a default value of "_self."

JW Player

User  
0 rated :

I discovered why links with target set to "_self" weren't working--I found the answer on a completely different site while investigating a completely different problem. :D

http://wiki.slideshowpro.net/SSPfl/CP-FixSelf

By adding

s1.addParam('allowscriptaccess','always');

I fixed the problem.

JW Player

User  
0 rated :

gyfjkhgjk

JW Player

User  
0 rated :

Pleasereviewthev3.xImageRotatorsupportedflashvarshere:

*http://developer.longtailvideo.com/trac/wiki/Flashvars3*


bc.. <embedsrc="imagerotator.swf"
width="450"
height="300"
hspace="20"
vspace="15"
loop="false"
align="right"
quality="high"
allowscriptaccess="always"
pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash"
wmode="transparent"
flashvars="file=madrid.xml
&transition=bgfade
&screencolor=0x415f7b
&usefullscreen=false
&rotatetime=8
&type=image
&linktarget=_self
&linkfromdisplay=true"
/>



Allsmashedtogetherinanunreadablemess:bc.. <embedsrc="imagerotator.swf"width="450"height="300"hspace="20"vspace="15"loop="false"align="right"quality="high"allowscriptaccess="always"pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"type="application/x-shockwave-flash"wmode="transparent"flashvars="file=madrid.xml&transition=bgfade&screencolor=0x415f7b&usefullscreen=false&rotatetime=8&type=image&linktarget=_self&linkfromdisplay=true"/>



JW Player

User  
0 rated :

Thetwoflashvarsthatareneededare:

*linktarget*and*linkfromdisplay*.

TheinfoelementoftheplaylistneedstohaveaURL.That'sit!

Thereisoneunnecessaryflashvarinyourplayercode,thatImissedbefore.Remove*&type=image*.

YourfirsttrackhadalinkelementinsteadofaninfoelementandIaddedinfoelementstoalloftheother tracks.
bc.. <?xmlversion="1.0"encoding="utf-8"?>
<playlistversion="1"xmlns="http://xspf.org/ns/0/">
<trackList>
<track>
<location>Banners\librarycard.jpg</location>
<info>http://www.shortgrass-lib.ab.ca/mhpl/libcard.htm</info>
</track>
<track>
<location>Banners\banff_film.jpg</location>
<info>http://www.shortgrass-lib.ab.ca/mhpl/libcard.htm</info>
</track>
<track>
<location>Banners\programbooklets.jpg</location>
<info>http://www.shortgrass-lib.ab.ca/mhpl/libcard.htm</info>
</track>
<track>
<location>Banners\happygolucky.jpg</location>
<info>http://www.shortgrass-lib.ab.ca/mhpl/libcard.htm</info>
</track>
<track>
<location>Banners\mittens.jpg</location>
<info>http://www.shortgrass-lib.ab.ca/mhpl/libcard.htm</info>
</track>
</trackList>
</playlist>



JW Player

User  
0 rated :

IguessyoumisseditinkLink'spostimmediatelyaboveyours,butyouneedtwoflashvars:

*linktarget*and*linkfromdisplay*.

Youaremissingthe*linktarget*flashvar.
bc.. <scripttype="text/javascript">
vars1=newSWFObject('http://www.darbig.com/rotator/imagerotator.swf','rotator','900','330','7');
s1.addParam('allowfullscreen','false');
s1.addVariable('usefullscreen','false');
s1.addVariable('file','http://www.darbig.com/rotator/rotator.xml');
s1.addVariable('width','900');
s1.addVariable('height','330');
s1.addVariable('shuffle','false');
s1.addVariable('transition','blocks');
s1.addVariable('shownavigation','false');
s1.addVariable('linkfromdisplay','true');
*s1.addVariable('linktarget','_self');*
s1.write('container');
</script>



Butinyourplaylist,youarelinkingtothesamepagethattheImageRotatorison,
sodon'texpectanythingtohappen.bc.. <info>http://blog.darbig.com</info>




Pleasereviewthev3.17JWImageRotatorsupportedflashvarshere:

*http://developer.longtailvideo.com/trac/wiki/Flashvars3*

JW Player

User  
0 rated :

how can i link my xml to url;

<?xml version="1.0" encoding="utf-8"?>
<albums>
<gallery id="4" name="stores" path="gallery/4/">
<image id="1" img="im1.jpg" thumb="thumb1.jpg" thumbGray="thumb-gray1.jpg" title="Sunset" seriesTitle="Store info" description="More Information coming soon,MyMallSA wishes you and your family well over this Festive Season.Drive safe, be Safe, be strong and Sell, Sell, Sell!"/>
<image id="2" img="im2.jpg" thumb="thumb2.jpg" thumbGray="thumb-gray2.jpg" title="Desert 1" seriesTitle="Store info" description="More Information coming soon,MyMallSA wishes you and your family well over this Festive Season.Drive safe, be Safe, be strong and Sell, Sell, Sell!"/>
<image id="3" img="im3.jpg" thumb="thumb3.jpg" thumbGray="thumb-gray3.jpg" title="Desert 2" seriesTitle="Store info" description="More Information coming soon,MyMallSA wishes you and your family well over this Festive Season.Drive safe, be Safe, be strong and Sell, Sell, Sell!"/>
<image id="4" img="im4.jpg" thumb="thumb4.jpg" thumbGray="thumb-gray4.jpg" title="Desert 3" seriesTitle="Store info" description="More Information coming soon,MyMallSA wishes you and your family well over this Festive Season.Drive safe, be Safe, be strong and Sell, Sell, Sell!"/>
<image id="5" img="im5.jpg" thumb="thumb5.jpg" thumbGray="thumb-gray5.jpg" title="Desert 4" seriesTitle="Store info" description="More Information coming soon,MyMallSA wishes you and your family well over this Festive Season.Drive safe, be Safe, be strong and Sell, Sell, Sell!"/>
<image id="6" img="im6.jpg" thumb="thumb6.jpg" thumbGray="thumb-gray6.jpg" title="Lake 1" seriesTitle="Store info" description="More Information coming soon,MyMallSA wishes you and your family well over this Festive Season.Drive safe, be Safe, be strong and Sell, Sell, Sell!"/>
<image id="7" img="im7.jpg" thumb="thumb7.jpg" thumbGray="thumb-gray7.jpg" title="Forest 1" seriesTitle="forests" description="More Information coming soon,MyMallSA wishes you and your family well over this Festive Season.Drive safe, be Safe, be strong and Sell, Sell, Sell!"/>
<image id="8" img="im8.jpg" thumb="thumb8.jpg" thumbGray="thumb-gray8.jpg" title="Lake 2" seriesTitle="Store info" description="More Information coming soon,MyMallSA wishes you and your family well over this Festive Season.Drive safe, be Safe, be strong and Sell, Sell, Sell!"/>
<image id="9" img="im9.jpg" thumb="thumb9.jpg" thumbGray="thumb-gray9.jpg" title="Cows" seriesTitle="Store info" description="More Information coming soon,MyMallSA wishes you and your family well over this Festive Season.Drive safe, be Safe, be strong and Sell, Sell, Sell!"/>
<image id="10" img="im10.jpg" thumb="thumb10.jpg" thumbGray="thumb-gray10.jpg" title="Forest 2" seriesTitle="Store info" description="More Information coming soon,MyMallSA wishes you and your family well over this Festive Season.Drive safe, be Safe, be strong and Sell, Sell, Sell!"/>
<image id="11" img="im11.jpg" thumb="thumb11.jpg" thumbGray="thumb-gray11.jpg" title="Forest 3" seriesTitle="Store info" description="More Information coming soon,MyMallSA wishes you and your family well over this Festive Season.Drive safe, be Safe, be strong and Sell, Sell, Sell!"/>
<image id="12" img="im12.jpg" thumb="thumb12.jpg" thumbGray="thumb-gray12.jpg" title="Lake 3" seriesTitle="Store info" description="More Information coming soon,MyMallSA wishes you and your family well over this Festive Season.Drive safe, be Safe, be strong and Sell, Sell, Sell!"/>
<image id="13" img="im13.jpg" thumb="thumb13.jpg" thumbGray="thumb-gray13.jpg" title="Forest 4" seriesTitle="Store info" description="More Information coming soon,MyMallSA wishes you and your family well over this Festive Season.Drive safe, be Safe, be strong and Sell, Sell, Sell!"/>
<image id="14" img="im14.jpg" thumb="thumb14.jpg" thumbGray="thumb-gray14.jpg" title="Forest 5" seriesTitle="Store info" description="1111111"/>
<image id="15" img="im15.jpg" thumb="thumb15.jpg" thumbGray="thumb-gray15.jpg" title="Lake 4" seriesTitle="Store info" description="Donec at sapien et magna venenatis porta. Ut facilisis tincidunt dolor. Quisque leo metus, commodo ac, elementum id, blandit et, leo. Integer aliquam pretium leo."/>
<image id="16" img="im16.jpg" thumb="thumb16.jpg" thumbGray="thumb-gray16.jpg" title="Sunset" seriesTitle="Store info" description="Quisque leo metus, commodo ac, elementum id, blandit et, leo. Integer aliquam pretium leo. Pellentesque libero felis, feugiat non, nonummy nec, facilisis ac, nisi. Suspendisse potenti. Fusce laoreet lacus id lacus."/>
<image id="17" img="im17.jpg" thumb="thumb17.jpg" thumbGray="thumb-gray17.jpg" title="Desert 1" seriesTitle="Store info" description="Donec pulvinar lorem nec leo porta viverra. Fusce mollis. Proin leo. Phasellus faucibus."/>
<image id="18" img="im18.jpg" thumb="thumb18.jpg" thumbGray="thumb-gray18.jpg" title="Desert 2" seriesTitle="Store info" description="COOL!"/>
<image id="19" img="im19.jpg" thumb="thumb19.jpg" thumbGray="thumb-gray19.jpg" title="Desert 3" seriesTitle="Store info" description="Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae. Curabitur metus."/>
<image id="20" img="im20.jpg" thumb="thumb20.jpg" thumbGray="thumb-gray20.jpg" title="Desert 4" seriesTitle="Store info" description="Curabitur faucibus felis vitae ipsum bibendum molestie."/>
<image id="21" img="im21.jpg" thumb="thumb21.jpg" thumbGray="thumb-gray21.jpg" title="Lake 1" seriesTitle="Store info" description="Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Curabitur metus. Donec at sapien et magna venenatis porta."/>
<image id="22" img="im22.jpg" thumb="thumb22.jpg" thumbGray="thumb-gray22.jpg" title="Forest 1" seriesTitle="Store info" description="Quisque leo metus, commodo ac, elementum id, blandit et, leo. Integer aliquam pretium leo. Pellentesque libero felis, feugiat non, nonummy nec, facilisis ac, nisi. Suspendisse potenti."/>
<image id="23" img="im23.jpg" thumb="thumb23.jpg" thumbGray="thumb-gray23.jpg" title="Lake 2" seriesTitle="Store info" description="Ut bibendum. Cras id pede. Morbi urna risus, mattis in, blandit vel, ultrices et, augue. Curabitur luctus."/>
<image id="24" img="im24.jpg" thumb="thumb24.jpg" thumbGray="thumb-gray24.jpg" title="Cows" seriesTitle="Store info" description="Quisque leo metus, commodo ac, elementum id, blandit et, leo. Integer aliquam pretium leo."/>
<image id="25" img="im25.jpg" thumb="thumb25.jpg" thumbGray="thumb-gray25.jpg" title="Forest 2" seriesTitle="Store info" description="Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Curabitur metus."/>
<image id="26" img="im26.jpg" thumb="thumb26.jpg" thumbGray="thumb-gray26.jpg" title="Forest 3" seriesTitle="Store info" description="Donec pulvinar lorem nec leo porta viverra. Fusce mollis. Proin leo. Phasellus faucibus."/>
<image id="27" img="im27.jpg" thumb="thumb27.jpg" thumbGray="thumb-gray27.jpg" title="Lake 3" seriesTitle="Store info" description="Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Curabitur metus. Donec at sapien et magna venenatis porta. Ut facilisis tincidunt dolor."/>
<image id="28" img="im28.jpg" thumb="thumb28.jpg" thumbGray="thumb-gray28.jpg" title="Forest 4" seriesTitle="Store info" description="Ut bibendum. Cras id pede. Morbi urna risus, mattis in, blandit vel, ultrices et, augue."/>
<image id="29" img="im29.jpg" thumb="thumb29.jpg" thumbGray="thumb-gray29.jpg" title="Forest 5" seriesTitle="Store info" description="1111111"/>
<image id="30" img="im30.jpg" thumb="thumb30.jpg" thumbGray="thumb-gray30.jpg" title="Lake 4" seriesTitle="Store info" description="Donec at sapien et magna venenatis porta. Ut facilisis tincidunt dolor. Quisque leo metus, commodo ac, elementum id, blandit et, leo. Integer aliquam pretium leo."/>
<image id="31" img="im31.jpg" thumb="thumb31.jpg" thumbGray="thumb-gray31.jpg" title="Sunset" seriesTitle="Store info" description="Quisque leo metus, commodo ac, elementum id, blandit et, leo. Integer aliquam pretium leo. Pellentesque libero felis, feugiat non, nonummy nec, facilisis ac, nisi. Suspendisse potenti. Fusce laoreet lacus id lacus."/>
<image id="32" img="im32.jpg" thumb="thumb32.jpg" thumbGray="thumb-gray32.jpg" title="Desert 1" seriesTitle="Store info" description="Donec pulvinar lorem nec leo porta viverra. Fusce mollis. Proin leo. Phasellus faucibus."/>
<image id="33" img="im33.jpg" thumb="thumb33.jpg" thumbGray="thumb-gray33.jpg" title="Desert 2" seriesTitle="Store info" description="COOL!"/>
<image id="34" img="im34.jpg" thumb="thumb34.jpg" thumbGray="thumb-gray34.jpg" title="Desert 3" seriesTitle="Store info" description="Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae. Curabitur metus."/>
<image id="35" img="im35.jpg" thumb="thumb35.jpg" thumbGray="thumb-gray35.jpg" title="Desert 4" seriesTitle="Store info" description="Curabitur faucibus felis vitae ipsum bibendum molestie."/>
<image id="36" img="im36.jpg" thumb="thumb36.jpg" thumbGray="thumb-gray36.jpg" title="Lake 1" seriesTitle="Store info" description="Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Curabitur metus. Donec at sapien et magna venenatis porta."/>
<image id="37" img="im37.jpg" thumb="thumb37.jpg" thumbGray="thumb-gray37.jpg" title="Forest 1" seriesTitle="Store info" description="Quisque leo metus, commodo ac, elementum id, blandit et, leo. Integer aliquam pretium leo. Pellentesque libero felis, feugiat non, nonummy nec, facilisis ac, nisi. Suspendisse potenti."/>
<image id="38" img="im38.jpg" thumb="thumb38.jpg" thumbGray="thumb-gray38.jpg" title="Lake 2" seriesTitle="Store info" description="Ut bibendum. Cras id pede. Morbi urna risus, mattis in, blandit vel, ultrices et, augue. Curabitur luctus."/>
<image id="39" img="im39.jpg" thumb="thumb39.jpg" thumbGray="thumb-gray39.jpg" title="Cows" seriesTitle="Store info" description="Quisque leo metus, commodo ac, elementum id, blandit et, leo. Integer aliquam pretium leo."/>
<image id="40" img="im40.jpg" thumb

Ethan Feldman

JW Player Support Agent  
0 rated :

This is not the format of the XML that we use for the rotator.

Here is a sample:

<?xml version="1.0" encoding="utf-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
	<trackList>

		<track>
			<title>Grass by Night</title>
			<creator>Jeroen Wijering</creator>
			<location>madrid1.jpg</location>
			<info>http://www.google.com</info>

		</track>

		<track>
			<title>At the Sidewalk</title>
			<creator>Jeroen Wijering</creator>
			<location>madrid2.jpg</location>
			<info>http://www.google.com</info>

		</track>

		<track>
			<title>Tio Pepe Madrid</title>
			<creator>Jeroen Wijering</creator>
			<location>madrid3.jpg</location>
			<info>http://www.google.com</info>

		</track>

	</trackList>
</playlist>

JW Player

User  
0 rated :

going to try that but this is my gallery xml, how can i link each image to a url, I am I.T handicap, just get into flash

Thanks

Ethan Feldman

JW Player Support Agent  
0 rated :

Np! :-)

This question has received the maximum number of answers.