jQueryԶͼƬͼsliderЧ.mySlideWrapĿԶ㶨ƸԻ֣ͼƼأ

ʹ÷
1.sliderĻʽslideshow.css (*require)

2.JS(*require)
<script src="js/jquery.min.js" type="text/javascript"></script>(汾jquery,ַܳЧ,JS)
<script src="js/slideshow-jq.js" type="text/javascript"></script>

3.ʼ
(function(jQuery) {
		function init() { 
			wSlideshow.render({
			elementID:"mysite",//Dom Ⱦ
			nav:"double_thumbnails",//ǷҪе:[none,double_thumbnails] ʾͼƬ
			navLocation:"left", //Զλò:[top,bottomm,left,right]
			captionLocation:"bottom",//Զλò:[top,bottom]
			transition:"fade",//ԶЧ:[top,bottom,slide,fade] 
			autoplay:"1",//Զauto play Ĵ
			speed:"5",
			aspectRatio:"auto",
			showControls:"true",
			randomStart:"false",
			images:[
			{"url":"images/5568730.jpg","width":"333","height":"244","caption":"Foreign staff, Chinese Imperial Maritime Customs, Tientsin, 1877 or 1878 Photographed by William Francis Stevenson Collected by Peter Hodge"},
			{"url":"images/1676626.jpg","width":"319","height":"250","caption":"The Bund, Shanghai, 1890s Photographed by William Francis Stevenson Collected by Peter Hodge"},
			{"url":"images/6765636.jpg","width":"160","height":"250","caption":"Chinese farmers collected by guoxue.com"},
			{"url":"images/4735676.jpg","width":"207","height":"250","caption":"Chinese coolie collected by guoxue.com"},
			{"url":"images/474001.jpg","width":"332","height":"250","caption":"The Bund, Shanghai, 1890s Photographed by William Francis Stevenson Collected by Peter Hodge"},
			{"url":"images/5145203.jpg","width":"157","height":"250","caption":"Chinese empress in Qing Dynasty collected by guoxue.com"},
			{"url":"images/1363237.jpg","width":"333","height":"238","caption":"Nanking Road, Shanghai, looking towards the Bund, 1890s Photographed by William Francis Stevenson Collected by Peter Hodge"},
			{"url":"images/652076.jpg","width":"166","height":"250","caption":"Chinese emperor in Qing Dynasty collected by guoxue.com"},
			{"url":"images/7168681.jpg","width":"178","height":"250","caption":"Chinese women raising cocoons collected by guoxue.com"}
			]//ͼƬurl caption widh height 
			})
		}
		jQuery ? jQuery(init) : document.observe('dom:loaded', init)
	})(window._W && _W.jQuery)

4.HTML:<div  class="mySlideWrap"><div id='mysite-slideshow'></div></div>