jQuery新聞門戶網站圖片相冊幻燈片切換代碼



89 352 118



特效描述:jQuery 新聞門戶網站 圖片相冊 幻燈片切換,新聞門戶網站圖片相冊幻燈片切換

代碼結構

1. 引入CSS

<link href="css/picture.css" rel="stylesheet" type="text/css" />
<link href="css/picture.css" rel="stylesheet" type="text/css" />

2. 引入JS

<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/picture.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/picture.js"></script>

3. 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" />
<title>新聞門戶網站圖集相冊JS代碼</title>
</head>
<body style="background:#101010;">
<div class="pic-head">
<div class="picHeard-title">
<span class="spanleftpic l"><a href="http://www.dijiuzhanzhang.com/">蔡甸網</a><label>&gt;</label><a href="/">香車美女</a><label>&gt;</label>紫色蒼穹下的黃色蓋拉多與</span><a href="/">紫色蒼穹下的黃色蓋拉多與性感美女的夜幕誘惑</a><font>(<i id="viewNum">1</i>/10)</font><span class="spanrightpic r"><a href="/">返回香車美女首頁</a></span>
</div>
</div>
<div class="indexBody">
  <div class="btn-float"><a class="maxBtn-l" href="javascript:void(0);"></a><a class="maxBtn-r" href="javascript:void(0);"></a></div>
  <div class="indexbody-main">
    <div class="indexbody-left"></div>
    <div class="indexbody-right"></div>
  </div>
  <div class="demo w990">
    <div class="maxPic-box">
      <div class="maxPic">
        <div class="maxPicBox"><span></span><img id="mainPic" src="images/bigPic/1.jpg"/></div>
      </div>
    </div>
    <div class="Pic-pageln">
        <span class="l">可用“<font>←</font>”或“<font>→</font>”方向鍵快速翻頁</span>
        <span class="pic-r-span r">
            <a href="javascript:void(0);"  class="ico01" id="stop-on"><i class="ins1"></i>已暫停</a>
            <a id="showOriginal" target="_blank" href="images/bigPic/1.jpg" class="ico02"><i></i>查看原圖</a>
            <a href="http://www.dijiuzhanzhang.com" class="ico03"><i></i>下載</a><a href="" class="ico04"><i></i>分享</a>
            <a href="http://www.dijiuzhanzhang.com" class="ico05"><i></i>返回圖集</a>
        </span>
    </div>    
    <div id="tplist" class="w-width clearfix">
      <div class="Up-tuzu">
          <!--<a class="outpic" href="/" id="prevUrl"><span></span><img src="images/prev.jpg" /></a>
          <a class="inpic" href="/">上一組</a><span class="prevspan"></span>-->
      </div>
      <div class="bottom-lists l">
        <div class="PicBtn-a PicBtn-a-l"><a class="PicBtn-left" href="javascript:void(0);"></a></div>
        <div class="minPic l">
          <ul class="gallery_demo_unstyled">
            <li id="tu_1"><span></span><a href="javascript:void(0);"><img src="images/thumbPic/1.jpg" /></a></li>
            <li id="tu_2"><span></span><a href="javascript:void(0);"><img src="images/thumbPic/2.jpg"/></a></li>
            <li id="tu_3"><span></span><a href="javascript:void(0);"><img src="images/thumbPic/3.jpg"/></a></li>
            <li id="tu_4"><span></span><a href="javascript:void(0);"><img src="images/thumbPic/4.jpg"/></a></li>
            <li id="tu_5"><span></span><a href="javascript:void(0);"><img src="images/thumbPic/5.jpg"/></a></li>
            <li id="tu_6"><span></span><a href="javascript:void(0);"><img src="images/thumbPic/6.jpg"/></a></li>
            <li id="tu_7"><span></span><a href="javascript:void(0);"><img src="images/thumbPic/7.jpg"/></a></li>
            <li id="tu_8"><span></span><a href="javascript:void(0);"><img src="images/thumbPic/8.jpg"/></a></li>
            <li id="tu_9"><span></span><a href="javascript:void(0);"><img src="images/thumbPic/9.jpg"/></a></li>
            <li id="tu_10"><span></span><a href="javascript:void(0);"><img src="images/thumbPic/10.jpg"/></a></li>
          </ul>
        </div>
        <div class="PicBtn-a PicBtn-a-r"><a class="PicBtn-right" href="javascript:void(0);"></a></div>
      </div>
      <div class="Next-tuzu">
      <!--<a class="outpic" href="/" id="nextUrl"><span></span><img src="images/next.jpg"></a>
          <a class="inpic" href="/">下一組</a>
          <span class="nextspan"></span>-->
       </div>
    </div>
  </div>
</div>
<div class="bottom-footer">
  <div class="bfooteroDiv w990">
    <p class="bf-p">你可能喜歡的</p>
    <div class="bfooteroDiv-img">
      <ul>
        <li>
          <div class="bf-oDiv">
          	<a target="_blank" href="http://www.dijiuzhanzhang.com"><img alt="楊雅熙車模美女性感寫真" src="images/bottom.jpg" /></a><span></span><a href="/" class="bf-alink">楊雅熙車模美女性感寫真</a>
          </div>
        </li>
        <li>
          <div class="bf-oDiv">
          	<a target="_blank" href="http://www.dijiuzhanzhang.com"><img alt="楊雅熙車模美女性感寫真" src="images/bottom.jpg" /></a><span></span><a href="/" class="bf-alink">楊雅熙車模美女性感寫真</a>
          </div>
        </li>
        <li>
          <div class="bf-oDiv">
          	<a target="_blank" href="http://www.dijiuzhanzhang.com"><img alt="楊雅熙車模美女性感寫真" src="images/bottom.jpg" /></a><span></span><a href="/" class="bf-alink">楊雅熙車模美女性感寫真</a>
          </div>
        </li>
        <li>
          <div class="bf-oDiv">
          	<a target="_blank" href="http://www.dijiuzhanzhang.com"><img alt="楊雅熙車模美女性感寫真" src="images/bottom.jpg" /></a><span></span><a href="/" class="bf-alink">楊雅熙車模美女性感寫真</a>
          </div>
        </li>
        <li>
          <div class="bf-oDiv">
          	<a target="_blank" href="http://www.dijiuzhanzhang.com"><img alt="楊雅熙車模美女性感寫真" src="images/bottom.jpg" /></a><span></span><a href="/" class="bf-alink">楊雅熙車模美女性感寫真</a>
          </div>
        </li>
      </ul>
    </div>
  </div>
</div>
<script type="text/javascript">
$(function(){
	var prevDiv = $(".Up-tuzu");
	var nextDiv = $(".Next-tuzu");
	if(prevDiv.find("a").length<1){
		 prevDiv.html("<p style='line-height:120px;color:#666;'><a href='' id='prevUrl'>沒有了</a></p>");
		}
	if(nextDiv.find("a").length<1){
	 nextDiv.html("<p style='line-height:120px;color:#666;'><a href='' id='nextUrl'>沒有了</a></p>");
	}
});
var selectKey = "1";
var picList = [{
    "picPos": 1,
    "pid": "1540637",
    "bigPic": "images/bigPic/1.jpg",
    "bigPic": "images/bigpic/1.jpg",
    "thumbPic": "images/thumbPic/1.jpg"
},
{
    "picPos": 2,
    "pid": "1520876",
    "bigPic": "images/bigPic/2.jpg",
    "bigPic": "images/bigPic/2.jpg",
    "thumbPic": "images/thumbPic/2.jpg"
},
{
    "picPos": 3,
    "pid": "1520550",
    "bigPic": "images/bigPic/3.jpg",
    "bigPic": "images/bigPic/3.jpg",
    "thumbPic": "images/thumbPic/3.jpg"
},
{
    "picPos": 4,
    "pid": "1520549",
    "bigPic": "images/bigPic/4.jpg",
    "bigPic": "images/bigPic/4.jpg",
    "thumbPic": "images/thumbPic/4.jpg"
},
{
    "picPos": 5,
    "pid": "1520548",
    "bigPic": "images/bigPic/5.jpg",
    "bigPic": "images/bigPic/5.jpg",
    "thumbPic": "images/thumbPic/5.jpg"
},
{
    "picPos": 6,
    "pid": "1520547",
    "bigPic": "images/bigPic/6.jpg",
    "bigPic": "images/bigPic/6.jpg",
    "thumbPic": "images/thumbPic/6.jpg"
},
{
    "picPos": 7,
    "pid": "1520546",
    "bigPic": "images/bigPic/7.jpg",
    "bigPic": "images/bigPic/7.jpg",
    "thumbPic": "images/thumbPic/7.jpg"
},
{
    "picPos": 8,
    "pid": "1520545",
    "bigPic": "images/bigPic/8.jpg",
    "bigPic": "images/bigPic/8.jpg",
    "thumbPic": "images/thumbPic/8.jpg"
},
{
    "picPos": 9,
    "pid": "1520544",
    "bigPic": "images/bigPic/9.jpg",
    "bigPic": "images/bigPic/9.jpg",
    "thumbPic": "images/thumbPic/9.jpg"
},
{
    "picPos": 10,
    "pid": "1520543",
    "bigPic": "images/bigPic/10.jpg",
    "bigPic": "images/bigPic/10.jpg",
    "thumbPic": "images/thumbPic/10.jpg"
}];
</script> 
<script type="text/javascript" src="js/picture.js"></script> 
</body>
</html>



用戶評論
大牛,別默默的看了,快登錄幫我點評一下吧!:)      登錄 | 注冊


熱門標簽: 滾動 滾動條 頁面滾動 滾動插件 滾動條插件 滾動條美化 滑動選項卡 滑動切換 滾動切換 滾動條切換 flash焦點圖 flash幻燈片 flashbanner flash圖片輪播 自動滾動圖片輪播 選項卡切換 選項卡 切換 tab切換 頁面切換 選項卡插件 切換插件 滑動手風琴 漸隱切換 淡出淡進 淡出 淡進 切換按鈕 表單 表單美化 表單插件 表單美化插件 焦點圖 幻燈片 輪播圖 bar焦點圖 圖片淡出淡進 圖片淡出 圖片淡進 帶縮略圖的幻燈片 圖片滾動 圖片滾動條 圖片切換 圖片選項卡 圖標選項卡 純圖片輪播 圖片輪播 按鈕控制
?
×
×

注冊

官方QQ群

掃描上面二維碼加微信群

官方QQ群

jQuery/js討論群
群號:642649996
Css3+Html5討論群
群號:322131262

加群請備注:從官網了解到

老夫子电子