商城商品展示JS特效

6 篇文章 0 订阅
6 篇文章 0 订阅

商城商品展示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>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值