• 微信公众号:美女很有趣。 工作之余,放松一下,关注即送10G+美女照片!

淘宝小星星评价

开发技术 开发技术 9小时前 3次浏览
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
*{
border: 0;
margin: 0;
">#f6f6f6;
}
img{
float: left;
}
</style>
</head>
<body>
<img src="images/00.png" alt="">
<img src="images/00.png" alt="">
<img src="images/00.png" alt="">
<img src="images/00.png" alt="">
<img src="images/00.png" alt="">
<script>
var imgs = document.images;
for (var i = 0; i < imgs.length; i++) {
imgs[i].a = i;
imgs[i].onmouseover = function () {
// alert(123)
for (var j = 0; j <= this.a; j++) {
// alert(123);
imgs[j].src = imgs[j].src.replace('00', '01')
for(var k=imgs.length-1; k<=this.a+2; k++){
imgs[j].src = imgs[j].src.replace('01','02')
}
for(var b=imgs.length+1;b<=this.a+2 ;b++ ){
imgs[j].src = imgs[j].src.replace('02','03')
}
}
}
}
</script>

</body>
</html>

程序员灯塔
转载请注明原文链接:淘宝小星星评价
喜欢 (0)