var imgArray = [ {title:"贵州草海迎来候鸟越冬高峰",img:"http://www.qart.com.cn/upload/jpg/118813115_11n00.jpg",link:"http://www.qart.com.cn/dp-0000000000140987.xhtml"}, {title:"“2013年贵州旅游十大亮点”揭晓",img:"http://www.qart.com.cn/upload/jpg/118843989_11n00.jpg",link:"http://www.qart.com.cn/dp-0000000000140985.xhtml"}, {title:"“最美贵州人”鲁波和他屡立战功的.",img:"http://www.qart.com.cn/upload/jpg/117880211_11n00.jpg",link:"http://www.qart.com.cn/dp-0000000000140734.xhtml"}, {title:"千只黑颈鹤到贵州威宁草海",img:"http://www.qart.com.cn/upload/jpg/12454002_991777.jpg",link:"http://www.qart.com.cn/dp-0000000000140668.xhtml"}, {title:"惠水打造宜居宜业宜游的黔中新城",img:"http://www.qart.com.cn/upload/jpg/118412281_81n00.jpg",link:"http://www.qart.com.cn/dp-0000000000140551.xhtml"}, {title:"贵州赫章:依托野韭菜资源发展旅.",img:"http://www.qart.com.cn/upload/jpg/118428478_21n00.jpg",link:"http://www.qart.com.cn/dp-0000000000140548.xhtml"}, {title:"4对娃娃鱼产6800“娃娃” 贵阳再添.",img:"http://www.qart.com.cn/upload/jpg/12387351_620502.jpg",link:"http://www.qart.com.cn/dp-0000000000140391.xhtml"}, {title:"贵州南北向出省交通大动脉思剑高.",img:"http://www.qart.com.cn/upload/jpg/12397078_040227.jpg",link:"http://www.qart.com.cn/dp-0000000000140389.xhtml"} ]; var photoMarquee = function (){ if($('run-photo-plane').scrollLeft>=($('run-photo').getStyle('width').toInt() - $('run-photo-plane').getStyle('width').toInt()) -5) { $('run-photo-plane').scrollLeft=1; } else{ $('run-photo-plane').scrollLeft++; } } // 261px × 200px window.addEvent('domready', function() { if (imgArray.length>0) new JChangeIMG({container:$("put-photo-here"),data:imgArray,sleep:3500}); $('run-photo').setStyle('width',$('run-photo-plane').getStyle('width').toInt() *2); photoMarquee.periodical(50);//滚动 });