中文字幕在线观看,亚洲а∨天堂久久精品9966,亚洲成a人片在线观看你懂的,亚洲av成人片无码网站,亚洲国产精品无码久久久五月天

DISCUZ論壇網(wǎng)站輪播圖制作方法

2020-04-28    來源:

容器云強(qiáng)勢(shì)上線!快速搭建集群,上萬Linux鏡像隨意使用

DISCUZ論壇里經(jīng)常會(huì)有輪播圖,我們自己在制作論壇時(shí),也可以自己做輪播圖。如下圖:

DISCUZ輪播圖

下面學(xué)做網(wǎng)站論壇介紹一下DISCUZ論壇網(wǎng)站輪播圖制作方法。

方法/步驟

1、下載js文件,解壓放在images文件下:
http://pan.baidu.com/s/1bnnuTtl
2、在需要顯示換燈片的位置,刪除原有的代碼,放入DIY代碼:


<div class="i-focus" id="iFocus">
<!--[diy=diyflash9]--><div id="diyflash9" class="area"></div><!--[/diy]-->
</div>

3、在調(diào)用底部文件的代碼上方放上以下的JS代碼來調(diào)用JS文件


<!--{if $_GET['diy'] != 'yes' }-->
<script src="template/awx/images/js/jquery1.8.3.js" type="text/javascript"></script>
<script src="template/awx/images/js/focusfade.js" type="text/javascript"></script>
<script src="template/awx/images/js/index.js" type="text/javascript"></script>
<!--{/if}-->

4、在DIY中放入以下的代碼【可以根據(jù)自己需要設(shè)置數(shù)量】


<div class="focus-pic">
<div class="if-inner">
<ul>
[index=1]
<li style="background:url(http://www.banban.so/new/20150912.jpg) no-repeat center;">
<div class="w1240">
<a href="{url}" target="_blank" title="{title}"><img src="{pic}" alt="{title}" width="{picwidth}" height="{picheight}"></a>
</div>
</li>
[/index]
[index=2]
<li style="background:#f03540; display:none;">
<div class="w1240">
<a href="{url}" target="_blank" title="{title}"><img src="{pic}" alt="{title}" width="{picwidth}" height="{picheight}"></a>
</div>
</li>
[/index]
[index=3]
<li style="background:#0f51b2;display:none;">
<div class="w1240s">
<a href="{url}" target="_blank" title="{title}"><img src="{pic}" alt="{title}" width="{picwidth}" height="{picheight}"></a>
</div>
</li>
[/index]
[index=4]
<li style="background:#14a094;display:none;">
<div class="w1240s">
<a href="{url}" target="_blank" title="{title}"><img src="{pic}" alt="{title}" width="{picwidth}" height="{picheight}"></a>
</div>
</li>
[/index]
[index=5]
<li style="background:url(http://www.banban.so/new/8.jpg) no-repeat center;display:none;">
<div class="w1240s">
<a href="{url}" target="_blank" title="{title}"><img src="{pic}" alt="{title}" width="{picwidth}" height="{picheight}"></a>
</div>
</li>
[/index]
</ul>
<div class="w1240s focus-btn">
<a href="javascript:void(0)" class="left-btn"></a>
<a href="javascript:void(0)" class="right-btn"></a>
</div>
</div>
</div>

5、將以下的CSS文件放到extend_common.css最下方


.i-focus{height:470px;position:relative;margin-top:-4px}
.i-focus .if-inner{height:470px;overflow:hidden;position:relative}
.i-focus .if-inner .left-btn,.i-focus .if-inner .right-btn{position:absolute;display:block;width:58px;height:81px;top:194px;z-index:3;overflow:hidden;display:none}
.i-focus .if-inner .left-btn{left:10px;background:url(arrow.png) no-repeat}
.i-focus .if-inner .left-btn:hover{background-position:-118px 0}
.i-focus .if-inner .right-btn{right:10px;background:url(http://www.banban.so/new/css/images/arrow.png) no-repeat -59px 0}
.i-focus .if-inner .right-btn:hover{background-position:-177px 0}
.i-focus .focus-btn{position:relative}
.i-focus li{height:470px;width:100%;overflow:hidden;zoom:1;position:absolute}
.i-focus .focus-dot{position:absolute;top:445px;overflow:hidden;zoom:1;z-index:5}
.i-focus .focus-dot a{display:block;width:9px;height:9px; border:1px solid #fff; border-radius:5px; float:left;display:inline;margin:0 5px;overflow:hidden}
.i-focus .focus-dot .on{background:#fff}
.w1240{width:1240px; text-align:center; margin:0 auto}
.w1240s {width: 1240px; margin: 0 auto;}
.btnss{display:block;width:112px;height:40px;background-color:#148cbe;line-height:40px;text-align:center;font-size:15px;color:white;font-weight:normal; border:none; float:left; cursor:pointer; border-radius:5px;}
.btnss:hover{background-color:#2ca1d1;}
.btnsss{display:block;width:112px;height:40px;background-color:#ef6b00;line-height:40px;text-align:center;font-size:15px;color:#fff!important;font-weight:normal; border:none; float:left; cursor:pointer; border-radius:5px;}
.btnsss:hover{background-color:#ee7513;}

發(fā)表評(píng)論 取消回復(fù)

電子郵件地址不會(huì)被公開。 必填項(xiàng)已用*標(biāo)注

發(fā)布:學(xué)做網(wǎng)站論壇   最后更新:  瀏覽量:1183 次

學(xué)做網(wǎng)站論壇致力打造網(wǎng)站制作在線培訓(xùn)誠信平臺(tái),大批學(xué)員在此學(xué)習(xí)如何做網(wǎng)站,最后可以獨(dú)立建網(wǎng)站。
學(xué)做網(wǎng)站論壇建站培訓(xùn)以原創(chuàng)建站視頻教程,以非常細(xì)致的講解各類網(wǎng)站制作方法,哪怕是零基礎(chǔ)小白也能看的懂,學(xué)的會(huì)。

標(biāo)簽: [db:TAGG]

版權(quán)申明:本站文章部分自網(wǎng)絡(luò),如有侵權(quán),請(qǐng)聯(lián)系:west999com@outlook.com
特別注意:本站所有轉(zhuǎn)載文章言論不代表本站觀點(diǎn)!
本站所提供的圖片等素材,版權(quán)歸原作者所有,如需使用,請(qǐng)與原作者聯(lián)系。

上一篇:DISCUZ門戶仿站教程

下一篇:DISCUZ模板制作實(shí)用代碼集錦