安裝前請先安裝:AL8
首頁四格顯示 for Discuz 6.0.0
http://linux0911.no-ip.info/Discuz/thread-9664-1-1.html
效果如下:滑鼠移過 Flash 便會顯示
作者:忘了
整理:
Linux0911
功能:用 Flash 來 Show
圖片, 點
圖片可以前往指定的連結
開始安裝
1. 下載
附件依結構上傳檔案
2. 修改 foruminfo.htm
找到 (修改紅字為 5)
找到 (使用者欄, 修改其比例適合自己
論壇風格)
引用:
<td style="width: 25%">
找到 (論壇資料欄, 修改其比例適合自己論壇風格)
引用:
<td style="width: 21%">
找到 (最新文章欄, 修改其比例適合自己論壇風格)
引用:
<td style="width: 27%">
找到 (最新回覆欄, 修改其比例適合自己論壇風格)
引用:
<td style="width: 27%">
找到
複製內容到剪貼簿
代碼:
<h4 style="font-size: 11pt">最新回覆文章</h4>
<table cellspacing="0" cellpadding="0">
<!--{loop $_DCACHE['newreply'] $newreply}-->
$newreply[content]
<!--{/loop}-->
</table>
</td>下面添加
引用:
<!--// 圖片 SHOW - START-->
<td style="width: 23%">
<h4 style="font-size: 11pt">圖片 SHOW</h4>
<table cellspacing="0" cellpadding="0" style="vertical-align: center">
<script type="text/javascript">
var swf_width = 306;
var swf_height = 200;
var files='images/toplist_1.jpg|images/toplist_2.jpg|images/toplist_3.jpg|images/toplist_4.jpg|images/toplist_5.jpg|images/toplist_1.jpg';
var links='index.php|index.php|index.php|index.php|Index.php';
var texts='【1】圖片宣傳展示 111|【2】圖片宣傳展示 222|【3】圖片宣傳展示 333|【4】圖片宣傳展示 444|【5】圖片宣傳展示 555|【6】圖片宣傳展示666'
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ swf_width +'" height="'+ swf_height +'">');
document.write('<param name="movie" value="images/pixviewer.swf" /><param name="quality" value="high" />');
document.write('<param name="menu" value="false" /><param name=wmode value="opaque" />');
document.write('<param name="FlashVars" value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'" />');
document.write('<embed src="images/pixviewer.swf" wmode="opaque" FlashVars="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'& menu="false" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
</script>
</table>
</td>
<!--// 圖片 SHOW - END-->
修改裡面的 (這邊以 6 個做示範)
var files='images/toplist_1.jpg
|images/toplist_2.jpg
|images/toplist_3.jpg
|images/toplist_4.jpg
|images/toplist_5.jpg
|images/toplist_1.jpg';
圖片的檔案位置, 每個以 | 做結尾, 數量要跟以下兩個搭配
var links='index.php
|index.php
|index.php
|index.php
|index.php
|http://index.php';
圖片的超連結, 就是你點圖片會連到哪裡, 每個以 | 做結尾, 數量要跟上下兩個搭配
var texts='【1】圖片宣傳展示 1
|【2】圖片宣傳展示 222
|【3】圖片宣傳展示 333
|【4】圖片宣傳展示 444
|【5】圖片宣傳展示 555
|【6】圖片宣傳展示 666'
圖片的標題在此修改, 每個以 | 做結尾, 數量要跟上面兩個搭配
完成