仿京東選項卡及放大鏡效果_第1頁
仿京東選項卡及放大鏡效果_第2頁
仿京東選項卡及放大鏡效果_第3頁
仿京東選項卡及放大鏡效果_第4頁
仿京東選項卡及放大鏡效果_第5頁
已閱讀5頁,還剩7頁未讀 繼續免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、jQuery仿京東選項卡放大鏡效果分類: jQuery2012-03-19 22:212人閱讀評論(0)收藏編輯刪除default.aspx:<% Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-/W3C/DTD XHTML 1.0 Transitional/EN" "">

2、<html xmlns="">< head runat="server"> <title></title> <style type="text/css"> ul, li list-style-type: none; margin: 0px; padding: 0px; #menu li text-align:center; float: left; padding: 5px; margin-right: 2px; width: 100px; cursor: pointer;

3、#menu li.tabfocus width: 100px; font-weight: bold; background-color: #eee; border-bottom:0; z-index:100; border: solid 1px #666; position:relative; #content width:700px; height:80; padding:10px; background-color:#eee; border:solie 1px #6; border-bottom:0; position:relative; top:-1px; clear:left; #co

4、ntent li display: none; #content li.confocus display: block; a:hover img border:5px solid red; </style> <script src="js/Jquery1.7.js" type="text/javascript"></script> <script src="js/cloud-zoom.1.0.2.js" type="text/javascript"></scri

5、pt><script type="text/javascript"> $(function () $('#F').show(); $('#menu li').each(function (index) $(this).mousemove(function () $('#menu li.tabfocus').removeClass('tabfocus'); $(this).addClass('tabfocus'); $('#content li:eq(' + in

6、dex + ')').show().siblings().hide(); ) ) ) </script>< /head>< body> <form id="form1" > <ul id="menu"> <li class="tabfocus">瘋狂搶購</li> <li>熱賣產品</li> <li>熱評商品</li> <li>新品上架</li> <li>

7、;猜您喜歡</li> </ul> <%-<a href="zoom/big1.jpg" class='cloud-zoom' id='zoom1' rel="adjustX: -10, adjustY:40"> <img src="zoom/small1.jpg" /> </a>-%> <ul id="content"> <li class="conclass" id=&qu

8、ot;F"> <a href="Default2.aspx?address=smallFushiXiangji.jpg"><img src="images/smallFushiXiangji.jpg" /></a> <a href="Default2.aspx?address=smallGuntong.jpg"><img src="images/smallGuntong.jpg" /></a> <a href="

9、Default2.aspx?address=smallGuo.jpg"><img src="images/smallGuo.jpg" /></a> <a href="Default2.aspx?address=smallHaixin.jpg"><img src="images/smallHaixin.jpg" /></a> <a href="Default2.aspx?address=smallJiaNengXiangji.jpg"&

10、gt;<img src="images/smallJiaNengXiangji.jpg" /></a> </li> <li> <a href="#"><img src="images/5b48b712-d567-4f30-ae1c-2d692acbbacc.jpg" /></a> <a href="#"><img src="images/e3660342-9d5d-4930-8cd9-38965ce37b

11、57.jpg" /></a> <a href="#"><img src="images/8a1191f8-27c0-4949-aea8-82093fe8e5fb.jpg" /></a> <a href="#"><img src="images/c9d5e68c-ce47-4764-b7ef-33c6008f4268.jpg" /></a> <a href="#"><img src

12、="images/dbe27de8-d0f3-4e65-8427-f646a54851d8.jpg" /></a> </li> <li> <a href="#"><img src="images/smallChangpian.jpg" /></a> <a href="#"><img src="images/smallChuliqi.jpg" /></a> <a href=&qu

13、ot;#"><img src="images/smallFamo.jpg" /></a> <a href="#"><img src="images/smallKongtiao.jpg" /></a> <a href="#"><img src="images/smallJiatingyingyuan.jpg" /></a> </li> <li> <a hre

14、f="#"><img src="images/smallNiKang.jpg" /></a> <a href="#"><img src="images/smallMaotai.jpg" /></a> <a href="#"><img src="images/smallMyWorkDay.jpg" /></a> <a href="#"><i

15、mg src="images/smallLianyiqun.jpg" /></a> </li> <li> <a href="#"><img src="images/smallQianBao.jpg" /></a> <a href="#"><img src="images/smallXiuxianku.jpg" /></a> <a href="#">&l

16、t;img src="images/smallQiupai.jpg" /></a> <a href="#"><img src="images/smallShuiyaxian.jpg" /></a> <a href="#"><img src="images/smallXie.jpg" /></a> </li> </ul> </form>< /body></

17、html>default2aspx:后臺:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls; protected void Page_Load(object sender, EventArgs e) string str = Request"address".ToString(); this.zoom1.HRef = "bigimages/big

18、"+str; this.img1.Src = "images/" + str; 前臺:<html xmlns="">< head runat="server"> <title></title> <link href="css/cloud-zoom.css" rel="stylesheet" type="text/css" /> <script src="js/Jquery1.7.js&quo

19、t; type="text/javascript"></script> <script src="js/cloud-zoom.1.0.2.js" type="text/javascript"></script> <script type="text/javascript"></script>< /head>< body> <form id="form1" runat="server"

20、;> <div id="content"> <a class = 'cloud-zoom' id='zoom1' rel="adjustX: -10, adjustY:40" runat="server"> <img id="img1" alt='' title="預覽大圖" style=" width:250px; height:350px" runat="server"

21、/> </a> </div> </form>< /body>< /html>jQuery仿京東選項卡放大鏡效果分類: jQuery2012-03-19 22:212人閱讀評論(0)收藏編輯刪除default.aspx:<% Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html

22、PUBLIC "-/W3C/DTD XHTML 1.0 Transitional/EN" ""><html xmlns="">< head runat="server"> <title></title> <style type="text/css"> ul, li list-style-type: none; margin: 0px; padding: 0px; #menu li text-align:center; float:

23、 left; padding: 5px; margin-right: 2px; width: 100px; cursor: pointer; #menu li.tabfocus width: 100px; font-weight: bold; background-color: #eee; border-bottom:0; z-index:100; border: solid 1px #666; position:relative; #content width:700px; height:80; padding:10px; background-color:#eee; border:soli

24、e 1px #6; border-bottom:0; position:relative; top:-1px; clear:left; #content li display: none; #content li.confocus display: block; a:hover img border:5px solid red; </style> <script src="js/Jquery1.7.js" type="text/javascript"></script> <script src="js/

25、cloud-zoom.1.0.2.js" type="text/javascript"></script><script type="text/javascript"> $(function () $('#F').show(); $('#menu li').each(function (index) $(this).mousemove(function () $('#menu li.tabfocus').removeClass('tabfocus');

26、 $(this).addClass('tabfocus'); $('#content li:eq(' + index + ')').show().siblings().hide(); ) ) ) </script>< /head>< body> <form id="form1" > <ul id="menu"> <li class="tabfocus">瘋狂搶購</li> <li>熱賣產品&l

27、t;/li> <li>熱評商品</li> <li>新品上架</li> <li>猜您喜歡</li> </ul> <%-<a href="zoom/big1.jpg" class='cloud-zoom' id='zoom1' rel="adjustX: -10, adjustY:40"> <img src="zoom/small1.jpg" /> </a>-%> <

28、;ul id="content"> <li class="conclass" id="F"> <a href="Default2.aspx?address=smallFushiXiangji.jpg"><img src="images/smallFushiXiangji.jpg" /></a> <a href="Default2.aspx?address=smallGuntong.jpg"><img sr

29、c="images/smallGuntong.jpg" /></a> <a href="Default2.aspx?address=smallGuo.jpg"><img src="images/smallGuo.jpg" /></a> <a href="Default2.aspx?address=smallHaixin.jpg"><img src="images/smallHaixin.jpg" /></a>

30、; <a href="Default2.aspx?address=smallJiaNengXiangji.jpg"><img src="images/smallJiaNengXiangji.jpg" /></a> </li> <li> <a href="#"><img src="images/5b48b712-d567-4f30-ae1c-2d692acbbacc.jpg" /></a> <a href="

31、;#"><img src="images/e3660342-9d5d-4930-8cd9-38965ce37b57.jpg" /></a> <a href="#"><img src="images/8a1191f8-27c0-4949-aea8-82093fe8e5fb.jpg" /></a> <a href="#"><img src="images/c9d5e68c-ce47-4764-b7ef-33c6008

32、f4268.jpg" /></a> <a href="#"><img src="images/dbe27de8-d0f3-4e65-8427-f646a54851d8.jpg" /></a> </li> <li> <a href="#"><img src="images/smallChangpian.jpg" /></a> <a href="#"><img

33、 src="images/smallChuliqi.jpg" /></a> <a href="#"><img src="images/smallFamo.jpg" /></a> <a href="#"><img src="images/smallKongtiao.jpg" /></a> <a href="#"><img src="images/smallJia

34、tingyingyuan.jpg" /></a> </li> <li> <a href="#"><img src="images/smallNiKang.jpg" /></a> <a href="#"><img src="images/smallMaotai.jpg" /></a> <a href="#"><img src="images/sma

35、llMyWorkDay.jpg" /></a> <a href="#"><img src="images/smallLianyiqun.jpg" /></a> </li> <li> <a href="#"><img src="images/smallQianBao.jpg" /></a> <a href="#"><img src="images/

36、smallXiuxianku.jpg" /></a> <a href="#"><img src="images/smallQiupai.jpg" /></a> <a href="#"><img src="images/smallShuiyaxian.jpg" /></a> <a href="#"><img src="images/smallXie.jpg" /

37、></a> </li> </ul> </form>< /body></html>default2aspx:后臺:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls; protected void Page_Load(object sender, EventArgs e) string str = Reque

38、st"address".ToString(); this.zoom1.HRef = "bigimages/big"+str; this.img1.Src = "images/" + str; 前臺:<html xmlns="">< head runat="server"> <title></title> <link href="css/cloud-zoom.css" rel="stylesheet" t

39、ype="text/css" /> <script src="js/Jquery1.7.js" type="text/javascript"></script> <script src="js/cloud-zoom.1.0.2.js" type="text/javascript"></script> <script type="text/javascript"></script>< /head

40、>< body> <form id="form1" runat="server"> <div id="content"> <a class = 'cloud-zoom' id='zoom1' rel="adjustX: -10, adjustY:40" runat="server"> <img id="img1" alt='' title="預覽大圖"

41、; style=" width:250px; height:350px" runat="server"/> </a> </div> </form>< /body>< /html>jQuery仿京東選項卡放大鏡效果分類: jQuery2012-03-19 22:212人閱讀評論(0)收藏編輯刪除default.aspx:<% Page Language="C#" AutoEventWireup="true" CodeFile="Defa

42、ult.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-/W3C/DTD XHTML 1.0 Transitional/EN" ""><html xmlns="">< head runat="server"> <title></title> <style type="text/css"> ul, li list-style-ty

43、pe: none; margin: 0px; padding: 0px; #menu li text-align:center; float: left; padding: 5px; margin-right: 2px; width: 100px; cursor: pointer; #menu li.tabfocus width: 100px; font-weight: bold; background-color: #eee; border-bottom:0; z-index:100; border: solid 1px #666; position:relative; #content w

44、idth:700px; height:80; padding:10px; background-color:#eee; border:solie 1px #6; border-bottom:0; position:relative; top:-1px; clear:left; #content li display: none; #content li.confocus display: block; a:hover img border:5px solid red; </style> <script src="js/Jquery1.7.js" type=

45、"text/javascript"></script> <script src="js/cloud-zoom.1.0.2.js" type="text/javascript"></script><script type="text/javascript"> $(function () $('#F').show(); $('#menu li').each(function (index) $(this).mousemove(func

46、tion () $('#menu li.tabfocus').removeClass('tabfocus'); $(this).addClass('tabfocus'); $('#content li:eq(' + index + ')').show().siblings().hide(); ) ) ) </script>< /head>< body> <form id="form1" > <ul id="menu">

47、; <li class="tabfocus">瘋狂搶購</li> <li>熱賣產品</li> <li>熱評商品</li> <li>新品上架</li> <li>猜您喜歡</li> </ul> <%-<a href="zoom/big1.jpg" class='cloud-zoom' id='zoom1' rel="adjustX: -10, adjustY:40"

48、> <img src="zoom/small1.jpg" /> </a>-%> <ul id="content"> <li class="conclass" id="F"> <a href="Default2.aspx?address=smallFushiXiangji.jpg"><img src="images/smallFushiXiangji.jpg" /></a> <

49、a href="Default2.aspx?address=smallGuntong.jpg"><img src="images/smallGuntong.jpg" /></a> <a href="Default2.aspx?address=smallGuo.jpg"><img src="images/smallGuo.jpg" /></a> <a href="Default2.aspx?address=smallHaixin.jpg

50、"><img src="images/smallHaixin.jpg" /></a> <a href="Default2.aspx?address=smallJiaNengXiangji.jpg"><img src="images/smallJiaNengXiangji.jpg" /></a> </li> <li> <a href="#"><img src="images/5b48b712

51、-d567-4f30-ae1c-2d692acbbacc.jpg" /></a> <a href="#"><img src="images/e3660342-9d5d-4930-8cd9-38965ce37b57.jpg" /></a> <a href="#"><img src="images/8a1191f8-27c0-4949-aea8-82093fe8e5fb.jpg" /></a> <a href=&q

52、uot;#"><img src="images/c9d5e68c-ce47-4764-b7ef-33c6008f4268.jpg" /></a> <a href="#"><img src="images/dbe27de8-d0f3-4e65-8427-f646a54851d8.jpg" /></a> </li> <li> <a href="#"><img src="images/small

53、Changpian.jpg" /></a> <a href="#"><img src="images/smallChuliqi.jpg" /></a> <a href="#"><img src="images/smallFamo.jpg" /></a> <a href="#"><img src="images/smallKongtiao.jpg" />&

54、lt;/a> <a href="#"><img src="images/smallJiatingyingyuan.jpg" /></a> </li> <li> <a href="#"><img src="images/smallNiKang.jpg" /></a> <a href="#"><img src="images/smallMaotai.jpg" /></a> <a href="#"><img src="images/smallMyWorkDay.jpg" /></a> <a href="#"><img src="images/smallLianyiqun.jpg" />

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論