求一个简单的特效 自己写的总是很机械,比如说一个滑动效果,自己写的直接唰的出来了,没有一点滑动的效果 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以用jQuery的animate自定义动画效果! 参考参考这个 希望对你有帮助哦 <script type="text/javascript"> $(document).ready(function(){ $("#box").jCarouselLite({ btnPrev: "#prev", btnNext: "#next", auto: 4000,//图片停留时间 scroll: 4,//每次滚动覆盖的图片个数 speed: 1000, //设置速度,0是不动。其次就是数字越大 ,移动越慢。 vertical: false,//横向(true),竖向(false) visible: 4, //显示的数量 circular: true //是否循环 }); $("#boxImg ul li:not(:first)").hide(); $("#box ul li").each(function(i){ $(this).click(function(){ $("#boxImg ul li").hide(); $($("#boxImg ul li")[i%($("#box ul li").length/3)]).fadeIn("slow"); }) })});</script> JQUERY取不到对象 求一js 如何通过写javascript代码不用点击就能激活页面上的超链接? 问一个小问题,谢谢! firefox下的event的问题 请帮我写这样一个简单的js正则表达式,谢谢! 如何通过程序选择textarea内指定文字? 关于打印问题 如何在状态栏和地址样只显示根目录地址,而不将所有详细地址及参数都显示出来 如此代码中的汉字你不漂亮 prototype属性的使用,为何会出错呢?初级代码。。。 求简单JS代码
$(document).ready(function(){
$("#box").jCarouselLite({
btnPrev: "#prev",
btnNext: "#next",
auto: 4000,//图片停留时间
scroll: 4,//每次滚动覆盖的图片个数
speed: 1000, //设置速度,0是不动。其次就是数字越大 ,移动越慢。
vertical: false,//横向(true),竖向(false)
visible: 4, //显示的数量
circular: true //是否循环
});
$("#boxImg ul li:not(:first)").hide();
$("#box ul li").each(function(i){
$(this).click(function(){
$("#boxImg ul li").hide();
$($("#boxImg ul li")[i%($("#box ul li").length/3)]).fadeIn("slow");
})
})
});
</script>