<body>
<div class="box">
<div class="one"></div>
<div class="one two"></div>
<div class="one three"></div>
</div>
<script type="text/javascript" src="jquery-1.11.2.min.js"></script>
<script>
$(function(){
var i=0;
var len=$(".box div").length;
$(".box div").eq(0).show().siblings().hide();
function show(){
if(i==len-1){
i=0;
}else{
$(".box div").eq(i).show().siblings().hide();
i++;
}
};
setInterval("show()",3000);
})
</script>请问大神,我这个脚本运行出错,提示VM128:1 Uncaught ReferenceError: show is not defined
DuffLin
老猿
慕莱坞9220042
qq_伤城_0
qq_月的另一面_03503378
好学的Lv
黄志明
TOULE
相关分类