|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Guys,
Can someone please ... I'm trying to add a dynamic caption to the following photo gallery: http://www.stevenbeverage.com/gallery.html Right now, I'm just using the image path for the caption, but it doesn't change with when a new image is loaded. I started with the demo files provided in the spry frameworks download. Here is my code (the important parts anyhow): <link href="spry/screen.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="spry/SpryEffects.js"></script> <script type="text/javascript" src="spry/SpryDOMUtils.js"></script> <script type="text/javascript" src="spry/SpryImageLoader.js"></script> <script type="text/javascript" src="spry/SpryNotifier.js"></script> <script type="text/javascript" src="spry/SpryThumbViewer.js"></script> <script type="text/javascript" src="spry/SpryImageViewer.js"></script> <script type="text/javascript" src="spry/SprySlideShowControl.js"></script> <script type="text/javascript" src="spry/gallery_init.js"></script> <script type="text/javascript" src="spry/xpath.js"></script> <script type="text/javascript" src="spry/SpryData.js"></script> <script type="text/javascript" src="spry/gallery_xds.js"></script> <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script> <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> var dsPhotos = new Spry.Data.XMLDataSet("gallery/sculptures.xml", "/gallery", { subPaths: "photos/photo", filterDataFunc: PhotosFilter }); var dsData = new Spry.Data.XMLDataSet("gallery/sculptures.xml", "/gallery", { subPaths: "photos/photo", filterDataFunc: PhotosFilter }); </script> |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
add additional field : caption1 to the xml file with the slideshow album
information in each image line. this caption1 field will have the http:// address of the caption then modify the caption display to read - <a href="{@caption1}">{@caption}</a> see how this works here http://jugalbandi.info/wp-content/up...k02/index.html |
|
![]() |
| Outils de la discussion | |
|
|