商城商品展示JS特效,当鼠标滑过某件商品模特展示图片时会显示出模特身上所搭配服装单品,具体效果请查看下面在线演示效果。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MJBlog(mj.588cy.com)</title>
<style>
* {margin:0;padding:0;font-size:12px;list-style:none;border:0;}
body{ margin:0px; padding:0px; background-color:#f0f0f0; font-family:Arial, Helvetica, sans-serif;}
a{ text-decoration:none;}
.top{ width:978px; height:30px; border-bottom:1px solid #dbdbdb; margin:0px auto;}
.logo{ width:300px; height:30px; line-height:30px; float:left; font-size:14px; margin:0px 5px;}
.logo a{ color:#666666;}
.denglu{ height:30px; line-height:30px; float:right; font-size:14px;}
.denglu a{ color:#666666; margin:0px 10px;}
.clear{ display:block; height:0px; line-height:0px; font-size:0px; clear:both;}
.box{ width:962px; height:auto; margin:0px auto; border-top:1px solid #f9f9f9; padding:30px 8px; background-color:#f8f8f8;}
.list{width:242px; height:580px; float:left; margin:0px 8px; overflow:hidden; position:relative;}
.list img{ display:block;}
.list a{ z-index:1}
.list_b{ width:430px;}
.a_a{ display:block; width:242px; height:580px; position:absolute; left:0px; top:0px;}
.a_b{ display:block; width:155px; position:absolute; left:258px;}
.t_s{ top:24px; height:230px;}
.t_x{ top:280px; height:270px;}
</style>
<script type="text/javascript" src="http://mj.588cy.com/img/jquery-1.2.6.min.js"></script>
<script>
$(document).ready(function(){
$(".list").hover(function(){
$(this).siblings().removeClass("list_b");
$(this).addClass("list_b");
})
})
</script>
</head>
<body>
<div class="top">
<div class="logo"><a href="http://mj.588cy.com">MJBlog</a></div>
<div class="denglu"><a href="#">登录</a><a href="#">注册</a></div>
<div class="clear"></div>
</div>
<div class="box">
<div class="list list_b">
<img src="http://mj.588cy.com/img/mj_20120924_1.jpg" />
<a href="http://www.chaonanwo.com/note/238/g/208" class="a_a"></a>
<a href="http://www.chaonanwo.com/note/238/g/208" class="a_b t_s"></a>
<a href="http://www.chaonanwo.com/note/232/g/202" class="a_b t_x"></a>
</div>
<div class="list list_a">
<img src="http://mj.588cy.com/img/mj_20120924_2.jpg" />
<a href="http://www.chaonanwo.com/note/239/g/209" class="a_a"></a>
<a href="http://www.chaonanwo.com/note/239/g/209" class="a_b t_s"></a>
<a href="http://www.chaonanwo.com/note/240/g/210" class="a_b t_x"></a>
</div>
<div class="list list_a">
<img src="http://mj.588cy.com/img/mj_20120924_3.jpg" />
<a href="http://www.chaonanwo.com/note/241/g/211" class="a_a"></a>
<a href="http://www.chaonanwo.com/note/241/g/211" class="a_b t_s"></a>
<a href="http://www.chaonanwo.com/note/242/g/212" class="a_b t_x"></a>
</div>
<div class="clear"></div>
</div>
</body>
</html>