thegreatone Posted May 25, 2008 Share Posted May 25, 2008 Hi guys i have this code for a spry gallery and was wondering if any1 can help me/ point me in the right direction to help me figure out how i can add buttons to this gallery that will show different images for my portfolio site e.g menu would include photos, art work, drawing each button would change the thumbs in the gallery.Heres the code i have currently it works fine DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--Copyright © 2006. Adobe Systems Incorporated. All rights reserved.--><html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Ajax Album Demo</title><script type="text/javascript" src="includes/xpath.js"></script><script type="text/javascript" src="includes/SpryData.js"></script><script type="text/javascript">var dsGallery = new Spry.Data.XMLDataSet("photos.xml", "/gallery/photos/photo");var dsData = new Spry.Data.XMLDataSet("photos.xml", "/gallery");</script><link href="portfolio.css" rel="stylesheet" type="text/css" /></head><body><div id="thumbContainer" spry:region="dsGallery dsData"> <img src="{dsData::thumbnail/@base}{@thumbpath}" spry:repeat="dsGallery" class="thumbs" onclick="dsGallery.setCurrentRow('{ds_RowID}');" /> </div><div id="main" spry:detailregion="dsGallery dsData"><img src="{dsData::large/@base}{@path}" /><br /> Name: {@path}</div></body></html> thanks Kyle Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.