很精美的仿京东商城产品详细JS放大效果

从网上找的 仿京东商城产品详细JS放大效果,很精美,共享一下,下载去吧。

演示/下载地址: http://www.txw100.com/demoAction?jsdemoID=38

主要代码如下:img.html

<!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"/>
<meta name="keywords" content="程序员、软件工程师、网页特效,网页特效代码,js特效,js特效代码,广告代码,DIV+CSS教程" />
<meta name="description" content="同行网(www.txw100.com)是面向程序员、软件工程师的学习、解惑之家,是程序员学习成长的地方,为IT专业技术人员提供最全面的信息传播和服务平台。" />
<title>仿京东商城产品详细JS放大效果_同行网www.txw100.com</title>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery.jqzoom.js"></script>
<script type="text/javascript" src="js/base.js"></script>
</head>
<body>
<div style="width:100%;padding-left:10px;margin-top:0px; height:40px;line-height:40px;background:url(http://www.txw100.com/images/bImg/bg_02.gif);text-align:left;font-size:14px; font-weight: bold;border-bottom:1px #dedede solid;">同行网欢迎您: <href="http://www.txw100.com">首页</a> &gt;&gt; <href="http://www.txw100.com/jsmainAction.action" target="_blank">JS特效大全</a> &gt;&gt; <href="http://www.txw100.com/jsggAction" target="_blank">广告特效代码大全</a>
</div>
<div class="right-extra" style="margin:0px;">
    <!--产品参数开始-->
    <div>
        <div id="preview" class="spec-preview">
            <span class="jqzoom"><img jqimg="images/b1.jpg" src="images/s1.jpg" /></span>
        </div>
        <!--缩图开始-->
        <div class="spec-scroll">
            <class="prev">&lt;</a>
            <class="next">&gt;</a>
            <div class="items">
                <ul>
                    <li><img alt="佳能" [转自同行网 http://www.txw100.com 关键词:程序员、软件工程师、网页特效,网页特效代码,js特效,js特效代码,广告代码,DIV+CSS教程 ] bimg="images/b1.jpg" src="images/s1.jpg" onmousemove="preview(this);"></li>
                    <li><img alt="佳能" bimg="images/b2.jpg" src="images/s2.jpg" onmousemove="preview(this);"></li>
                    <li><img alt="佳能" bimg="images/b3.jpg" src="images/s3.jpg" onmousemove="preview(this);"></li>
                    <li><img alt="佳能" bimg="images/b1.jpg" src="images/s1.jpg" onmousemove="preview(this);"></li>
                    <li><img alt="佳能" bimg="images/b3.jpg" src="images/s3.jpg" onmousemove="preview(this);"></li>
                    <li><img alt="佳能" bimg="images/b1.jpg" src="images/s1.jpg" onmousemove="preview(this);"></li>
                    <li><img alt="佳能" bimg="images/b2.jpg" src="images/s2.jpg" onmousemove="preview(this);"></li>
                    <li><img alt="佳能" bimg="images/b1.jpg" src="images/s1.jpg" onmousemove="preview(this);"></li>
                    <li><img alt="佳能" bimg="images/b2.jpg" src="images/s2.jpg" onmousemove="preview(this);"></li>
                    <li><img alt="佳能" bimg="images/b2.jpg" src="images/s2.jpg" onmousemove="preview(this);"></li>
                    <li><img alt="佳能" bimg="images/b1.jpg" src="images/s1.jpg" onmousemove="preview(this);"></li>
                    <li><img alt="佳能" [转自同行网 http://www.txw100.com 关键词:程序员、软件工程师、网页特效,网页特效代码,js特效,js特效代码,广告代码,DIV+CSS教程 ] bimg="images/b2.jpg" src="images/s2.jpg" onmousemove="preview(this);"></li>
                </ul>
            </div>
        </div>
        <!--缩图结束-->
    <div style="clear:both;height:10px;"></div>
    <div class="m" id="comment">
                <ul class="tab clearfix">
                    <li onclick="tabs('#comment',0)" class="curr">图文介绍<strong></strong><span></span></li>
                    <li onclick="tabs('#comment',1)">评论<strong>(1)</strong><span></span></li>
                </ul>
                <div class="mc tabcon hide" style="display:block;"><div class="norecode"> 暂无好评! 欢迎您访问  同行网JS特效大全 <href="http://www.txw100.com/jsmainAction" target="_blank"">http://www.txw100.com/jsmainAction</a> </div></div>
                <div class="mc tabcon hide" style="display:none;">
                    <div class="item">
                        <div class="user">
                        <span class="u-name">网友:studiolovecat</span>
                        <span class="u-level">
                        <font style="color:#999999"> 银牌会员 </font>
                        </span>
                        <span class="date-ask">2011-03-20 13:36</span>
                        </div>
                        <dl class="ask">
                        <dt>
                        <b></b>
                        咨询内容:
                        </dt>
                        <dd> 请问这款机器用什么电池,续航能力最强的电池型号与价格是什么</dd>
                        </dl>
                        <dl class="answer">
                        <dt>
                        <b></b>
                        京东回复:
                        </dt>
                        <dd>
                        <div class="content"> 您好!专用锂电池BP-950G,7.4V,5200mAh。感谢您对京东的支持!祝您购物愉快!</div>
                        <div class="date-answer"> 2011-03-21 10:45</div>
                        </dd>
                        </dl>
                        <div id="6727709" class="useful">
                        您对我们的回复:
                        <class="btn-pleased" href="javascript:void(0)" name="2">满意</a>
                        (
                        <span>0</span>
                        )&nbsp;&nbsp;
                        <class="btn-unpleased" href="javascript:void(0)" name="4">不满意</a>
                        (
                        <span>0</span>
                        )
                        </div>
                    </div>
                    <div class="item odd">
                        <div class="user">
                        <span class="u-name">网友:yefa888</span>
                        <span class="u-level">
                        <font style="color:#999999"> 铜牌会员 </font>
                        </span>
                        <span class="date-ask">2011-01-16 01:36</span>
                        </div>
                        <dl class="ask">
                        <dt>
                        <b></b>
                        咨询内容:
                        </dt>
                        <dd> 请问这个MiniDV带是可以重复使用还是一次消费品?我是生手,想买一台可是不太了解.</dd>
                        </dl>
                        <dl class="answer">
                        <dt>
                        <b></b>
                        京东回复:
                        </dt>
                        <dd>
                        <div class="content"> 您好!可以重复使用,感谢您对京东的支持!祝您购物愉快!</div>
                        <div class="date-answer"> 2011-01-17 09:47</div>
                        </dd>
                        </dl>
                        <div id="6195867" class="useful">
                        您对我们的回复:
                        <class="btn-pleased" href="javascript:void(0)" name="2">满意</a>
                        (
                        <span>0</span>
                        )&nbsp;&nbsp;
                        <class="btn-unpleased" href="javascript:void(0)" name="4">不满意</a>
                        (
                        <span>0</span>
                        )
                        </div>
                    </div>
    <!-- //同行网(www.txw100.com)关键词:程序员、软件工程师、网页特效,网页特效代码,js特效,js特效代码,广告代码,DIV+CSS教程 -->                
                </div>
    </div>
</div>
<script type="text/javascript">/*demo_300*250_20120808*/ var cpro_id = 'u1014784';</script><script src="http://cpro.baidu.com/cpro/ui/f.js" type="text/javascript"></script>
</body>
</html>

CSS文件:

 

/*website: JS特效大全http://www.txw100.com/jsmainAction **/
@charset "utf-8";
/* CSS Document */
html,body,div,span,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,address,big,cite,code,del,em,font,img,ins,small,strong,var,b,u, i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend
{margin:0;padding:0;}
body
{ background:#FFFFFF; color:#333333; font-family:"宋体",Arial,Lucida,Verdana,Helvetica,sans-serif; font-size:12px; line-height:150%; }
a:link, a:visited
{ color:#333333; text-decoration:none; }
a:hover
{ color:#CC0000; text-decoration:underline; }
a:active
{ color:#990000; }
ol, ul
{ list-style: none outside none;}
.m 
{ margin-bottom: 10px; }
.m, .mt, .mc, .mb
{ overflow: hidden; }

/* Clear Fix */ 
.clearfix:after
{content:".";display:block;height:0;clear:both;visibility:hidden;} 
.clearfix
{display:inline-block;} 
/* Hide from IE Mac */ 
.clearfix
{display:block;} 
/* End hide from IE Mac */ 
/* end of clearfix */ 
/*页面全局结束*/
.tab
{ overflow:hidden; }
.tab li,.tab a,.tab-item
{cursor:pointer;float:left;text-align: center;}
.m, .mt, .mc, .mb
{overflow:hidden;}
.mt .extra
{float: right;}

.right-extra .mt
{height:28px;line-height:28px;padding:0 10px 8px;border-top:1px solid #EED97C;background:url(../images/bg_hotsale.gif) repeat-x 0 -552px;color:#c00;}
.right-extra .tab
{border-bottom:2px solid #BE0000;margin-bottom:10px;}
.right-extra .tab li
{position:relative;height:24px;padding:3px 12px 0;background:url(../images/icon_clubs.gif) #ccc no-repeat right -150px;overflow:hidden;margin-right:3px;line-height:24px;font-size:14px;font-weight:bold;color:#c30;}
.right-extra .tab span
{position:absolute;left:0;top:0;z-index:1;width:10px;height:27px;background:url(../images/icon_clubs.gif) no-repeat 0 -150px;}
.right-extra .tab a
{float:none;color:#c30;}
.right-extra .tab .curr
{background-position:right -178px;color:#fff;}
.right-extra .tab .curr span
{background-position:0 -178px;}
.right-extra .tab .curr a
{color:#fff;}
.right-extra .mc .extra
{padding:5px 10px;border-top:1px solid #F3E6C6;}
.right-extra .total
{float:right;}
.right-extra .total strong
{color:#FF7403;}
.right-extra .total a:link,.right-extra .total a:visited
{color:#005aa0;}
.right-extra .join a:link,.right-extra .join a:visited
{color:#FF7604;}
.right-extra .norecode
{padding:0 10px 10px;}
.right-extra .iloading
{margin-bottom:10px;}
/*评论列表*/
#comment .item
{border:1px solid #FFFFFF;padding:8px 15px;}
#comment .odd
{background: none repeat scroll 0 0 #F4F9FF;border: 1px solid #EDF0F1;border-radius:10px 10px 10px 10px;}
#comment .user
{color:#999999;text-align: right;}
#comment .user span
{margin-left: 20px;}
#comment .user .u-level
{color:#088100;}
#comment dl
{margin-bottom:5px;overflow:hidden;}
#comment dt
{float:left;text-align:right;width:80px;}
#comment dd
{float:right;overflow:hidden;width:649px;}
#comment .content
{float:left;width:510px;}
#comment .date-answer
{color:#999999;float:right;text-align:right;width:130px;}
#comment .useful
{color:#999999;text-align:right;}
#comment .useful a
{color: #005AA0;}
#comment dt b
{background-image: url("../images/icon_clubs.gif");background-repeat: no-repeat;float:left;height:13px;margin:2px 3px 0 0;width:14px;}
#comment .ask b
{background-position:-72px -14px;}
#comment .answer
{color:#D75509;}
#comment .answer b
{background-position:-57px -14px;}

/*图片放大镜样式*/
.jqzoom
{float:left;border:none;position:relative;padding:0px;cursor:pointer;margin:0px;display:block;}
.zoomdiv
{z-index:100;position:absolute;top:0px;left:0px;width:350px;height:350px;background:#ffffff;border:1px solid #CCCCCC;display:none;text-align:center;overflow:hidden;}
.jqZoomPup
{z-index:10;visibility:hidden;position:absolute;top:0px;left:0px;width:20px;height:20px;border:1px solid #aaa;background:#ffffff /*url(../images/zoom.png) 50% center no-repeat*/;opacity: 0.5;-moz-opacity: 0.5;-khtml-opacity: 0.5;filter: alpha(Opacity=50);}

/*图片小图预览列表*/
.spec-preview
{width:350px;height:350px;border:1px solid #DFDFDF;}
.spec-scroll
{clear:both;margin-top:5px;width:352px;}
.spec-scroll .prev
{float:left;margin-right:4px;}
.spec-scroll .next
{float:right;}
.spec-scroll .prev,.spec-scroll .next
{display:block;font-family:"宋体";text-align:center;width:10px;height:54px; line-height:54px;border:1px solid #CCC;background:#EBEBEB;cursor:pointer;text-decoration:none;}
.spec-scroll .items
{float:left;position:relative;width:322px;height:56px;overflow:hidden;}
.spec-scroll .items ul
{position:absolute;width:999999px;height:56px;}
.spec-scroll .items ul li
{float:left;width:64px;text-align:center;}
.spec-scroll .items ul li img
{border:1px solid #CCC;padding:2px;width:50px;height:50px;}
.spec-scroll .items ul li img:hover
{border:2px solid #FF6600;padding:1px;}

JS:文件

有三个 base.js, jquery-1.3.2.min.js,jquery.jqzoom.js  

不多写了,去这里下吧: http://www.txw100.com/demoAction?jsdemoID=38

posted @ 2012-09-05 13:23  wj-conquer  阅读(653)  评论(0编辑  收藏  举报