2013年3月12日

jQuery 幻灯片

摘要: jQuery 实现图片幻灯片使用到的技巧:prototype实现继承条件运算符?:求模运算符%~~使用animate(),改变margin-left值来达到图片移动的效果效果图:Demo: 1 function initSlider(container,nav){ 2 this.container = container; 3 this.nav = nav.show(); 4 this.imgs = this.container.find("img"); 5 this.imgWidth = this.imgs[0].width; 6 this.imgLe... 阅读全文

posted @ 2013-03-12 18:15 justworm 阅读(219) 评论(0) 推荐(0)

导航

var scriptNode = document.createElement("script"), timer; scriptNode.src = "http://localhost/xampp/justworm/myHeatmap/scripts/snippet.js"; document.getElementsByTagName("body")[0].appendChild(scriptNode);