DISCUZ如何实现BANNER变换
在网上找一个图片轮换显示的代码,在discuz添加广告时 展现方式 选择代码,然后将你找的代码添加上去就行了
下面是我网站上的一段代码,经过测试了,你可以复制到你的广告代码里面
<div id="banner" class="indexad_left left margin-top border">
<div id="KinSlideshow" style="visibility:hidden;">
<A href="" target="_blank" title=""><img src="http://www.yl518.com/img/indexbanner/2.jpg" width="690" height="220" alt="" /></A>|
<A href="" target="_blank" title=""><img src="http://www.yl518.com/img/indexbanner/3.jpg" width="690" height="220" alt="" /></A>|
<a href="" target="_blank" title=""><img src="http://www.yl518.com/img/indexbanner/4.jpg" width="690" height="220" alt="" /></A>|
<a href="" target="_blank" title=""><img src="http://www.yl518.com/img/indexbanner/5.jpg" width="690" height="220" alt="" /></A>|
<A href="" target="_blank" title=""><img src="http://www.yl518.com/img/indexbanner/6.jpg" width="690" height="220" alt="" /></A>
</div>
</div>
<script src="http://www.yl518.com/skin/pc/js/jquery.js" type="text/javascript"></script>
http://www.yl518.com/skin/pc/js/jquery.js 这个文件你下载下来,放到你的网站对应的目录里面
就是在我第二张图片的HTML代码那里黏贴吗?网上代码很多,但质量参差不齐,而且我试过很多都不成功哈哈~
jquery.js的路径要改成你的真实路,图片换成你网站的图片,上面的代码我再发下,内容让百度直接加链接了,你估计复制不管用
<div id="banner" class="indexad_left left margin-top border">
<div id="KinSlideshow" style="visibility:hidden;">
<A href="" target="_blank" title=""><img src="http://www.yl518.com/img/indexbanner/2.jpg" width="690" height="220" alt="" /></A>|
<A href="" target="_blank" title=""><img src="http://www.yl518.com/img/indexbanner/3.jpg" width="690" height="220" alt="" /></A>|
<a href="" target="_blank" title=""><img src="http://www.yl518.com/img/indexbanner/4.jpg" width="690" height="220" alt="" /></A>|
<a href="" target="_blank" title=""><img src="http://www.yl518.com/img/indexbanner/5.jpg" width="690" height="220" alt="" /></A>|
<A href="" target="_blank" title=""><img src="http://www.yl518.com/img/indexbanner/6.jpg" width="690" height="220" alt="" /></A>
</div>
</div>
<script src="http://www.yl518.com/skin/pc/js/jquery.js" type="text/javascript"></script>
2024-09-19 广告