<html>
<head>
<script src="jquerylayout.js" type="text/javascript"></script>
<style>
.div01{height:2000px;}
.div01 div{width:100px;height:1600px;border:2px solid #f00;position:absolute;left:100px;top:100px;overflow:hidden;}
img{position:relative;display:none;}
</style>
<script>
var x=0;
$(function(){
//var node=document.getElementById("div02").children;
var node1=$("#div02").children();
//$("body").append(node[0]);
//$("body").append(node1[1]);
alert(node1.nodeName);
setInterval(abc(),2000);
function abc()
{
for(var i=0;i<node1.length;i++){
alert(x+"<br>"+i+node1.length);
if(i!=x)
{alert(x);}
else
{alert(x);}
}
x=x+1;alert(x);
}
})
</script>
</head>
<body>
<div class="div01">
<div id="div02"><img src="img01.jpg"><img src="img02.jpg"></img></div>
</div>
</body>
</html>
哥特式KK
echo_kinchao
半步