
說明 :
長久以來一直喜歡使用安裝alan888站長的四格插件!
自從DZ升級5.5後!alan888大哥就沒在發布站長的四格正式版插件!
而小弟也是從DZ5.0直接升級DZ6.0!~但是一直找不到alan888站長發布的四格正式版插件!
所以就自己想想是否能改一個自己喜歡的X格插件!結果不小心成功了!
獨享~~不如分享!~~就把此插件分享於各位前輩及先進!希望大家喜歡!
此兩款式小弟均以測試,並已安裝本壇,尚無任何問題發生!
如有不小心冒犯他人著作之處,請不吝告訴小弟,小弟定當馬上加以改進!
再次感謝alan888站長大哥~~如有編寫錯誤?還請alan888大哥及各位前輩指正!謝謝!
聲明:若有因為安裝過程上造成使用者的問題或其它損害,小弟並不負責任何責任!
請安裝前務必自行備份原檔~以防萬一操作失誤!
PS:小弟第一次發帖哦!如有不對?還請各位前輩指正賜教!
如安裝使用成功~覺得還不錯~還請大家能回復支持一下~感謝!
**************************************************************
新增修正2007.10.18修正)重新完美發佈!
1.版本款式全面更新,插件由本人重新編寫過!
2.修正最後回復無法直接連結到最後回復帖處!
3.修正上方導航欄位,完美搭配論壇風格顯示!
4.新增共4款不同款式,可依自己喜好選擇安裝!
5.FLASH圖片可自定義宣傳展示~不調用論壇圖片!
6.修正宣傳圖片顯示大小,加快圖片開啟速度!
需修改的文件:就兩個~簡單又實用!(對於初學者安裝更容易!)
還是簡單+常用:最新發表+論壇圖片宣傳+最新回復(不再多增加數据庫查詢)
修改:
1: index.php
2: discuz.htm
安裝開始:
1.index.php (PS:4種款式皆共用!!)
找到:在這段之上加入:- //----WOWO首頁三格代碼開始
- $colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
- //新發表
- $hack_cut_str = 18; //標題字數建議值18-22(盡量勿大修改否則會跳行)
- $hack_cut_strauthor = 9; //顯示行數不建議修改保持默認即可
- $new_post_threadlist = array();
- $nthread = array();
- $query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid ORDER BY t.dateline DESC LIMIT 0, 8");
- while($nthread = $db->fetch_array($query)) {
- $nthread['forumname'] = ereg_replace('<[^>]*>','',$nthread['name']);
- $nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str);
- $nthread['view_author'] = cutstr($nthread['author'],$hack_cut_strauthor);
- $nthread['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600);
- $nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread[lastpost] + ($timeoffset * 3600));
- if($nthread['highlight']) {
- $string = sprintf('%02d', $nthread['highlight']);
- $stylestr = sprintf('%03b', $string[0]);
- $nthread['highlight'] = 'style="';
- $nthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
- $nthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
- $nthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
- $nthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
- $nthread['highlight'] .= '"';
- } else {
- $nthread['highlight'] = '';
- }
- $new_post_threadlist[] = $nthread;
- }
- //新回復
- $hack_cut_str = 18; //標題字數建議值18-22(盡量勿大修改否則會跳行)
- $hack_cut_strauthor = 9; //顯示行數不建議修改保持默認即可
- $new_reply_threadlist = array();
- $rthread = array();
- $query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 ORDER BY t.lastpost DESC LIMIT 0, 8");
- while($rthread = $db->fetch_array($query)) {
- $rthread['forumname'] = ereg_replace('<[^>]*>','',$rthread['name']);
- $rthread['view_subject'] = cutstr($rthread['subject'],$hack_cut_str);
- $rthread['view_lastposter'] = cutstr($rthread['lastposter'],$hack_cut_strauthor);
- $rthread['date']= gmdate("$dateformat $timeformat", $rthread['dateline'] + $timeoffset * 3600);
- $rthread['lastreplytime']= gmdate("$dateformat $timeformat", $rthread[lastpost] + ($timeoffset * 3600));
- if($rthread['highlight']) {
- $string = sprintf('%02d', $rthread['highlight']);
- $stylestr = sprintf('%03b', $string[0]);
- $rthread['highlight'] = 'style="';
- $rthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
- $rthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
- $rthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
- $rthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
- $rthread['highlight'] .= '"';
- } else {
- $rthread['highlight'] = '';
- }
- $new_reply_threadlist[] = $rthread;
- }
- //----WOWO首頁三格代碼結束
複製代碼 ********************************************************
注意!!!以下取其喜好一款安裝即可~切勿共用!
2.修改模板templates/default/discuz.htm (以下4款式共用)
找到(以上4款式共用)
在下方加入第一款)取其一安裝即可~切勿共用!
已經修正到最佳~盡量勿再修改!
演示: http://wowo.nike.tw/本壇安裝中<!--WOWO首頁flash美化START-->
<div class="maintable">
<div class="mainbox forumlist" style="padding:0;"><table cellspacing="0" cellpadding="0"><thead class="category">
<tr height="27">
<td align="center" style="padding:0"><h3>≡ 最新話題 ≡</h3></td>
<td align="center" style="padding:0"><h3>≡ 論壇活動公告 ≡</h3></td>
<td align="center" style="padding:0"><h3>≡ 最新回復 ≡</h3></td>
</tr>
<tr>
<td width="35%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
<td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
<!--{loop $new_post_threadlist $nthread}-->
<!--{if $nthread[replies]}-->
<div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新帖子 {LF}所在論壇: $nthread[forumname]{LF}主題標題: $nthread[subject] {LF}主題作者: $nthread[author]{LF}發表時間: $nthread[date]{LF}瀏覽次數: $nthread[views] 次 {LF}回復次數: $nthread[replies] 次{LF}最後回復: $nthread[lastreplytime]{LF}{lang lastpost}: $nthread[lastposter]'>$nthread[view_subject]</a></div>
<!--{else}-->
<div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新帖子 {LF}所在論壇: $nthread[forumname]{LF}主題標題: $nthread[subject] {LF}主題作者: $nthread[author]{LF}發表時間: $nthread[date]{LF}瀏覽次數: $nthread[views] 次 {LF}回復次數: $nthread[replies] 次{LF}最後回復: 暫時沒有回復'>$nthread[view_subject]</a></div>
<!--{/if}-->
<!--{/loop}-->
</td>
</tr>
</table>
</td>
<td width="28%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<script type="text/javascript">
<!--
var focus_width=390
var focus_height=210
var text_height=0
var swf_height = focus_height+text_height
/*圖片*/
var pics='ab/pic1.jpg|ab/pic2.jpg|ab/pic3.jpg|ab/pic4.jpg|ab/pic5.jpg|ab/pic6.jpg'
/*連接*/
var links='index.php|index.php|index.php|index.php|index.php|index.php'
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="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="images/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#FFFFFF" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');document.write('</object>');
//-->
</script>
</tr>
</table>
</td>
<td width="35%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
<td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
<!--{loop $new_reply_threadlist $rthread}-->
<div style="overflow: hidden;height: 20px;width: 100%;"><a href="redirect.php?tid=$rthread[tid]&goto=lastpost#lastpost" $rthread['highlight'] title='最新回復 {LF}所在論壇: $rthread[forumname]{LF}主題標題: $rthread[subject]{LF}主題作者: $rthread[author]{LF}發表時間: $rthread[date]{LF}瀏覽次數: $rthread[views] 次{LF}回復次數: $rthread[replies] 次{LF}最後回復: $rthread[lastreplytime]{LF}{lang lastpost}: $rthread[lastposter]'>$rthread[view_subject]</a></div>
<!--{/loop}-->
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<!--WOWO首頁flash美化END--> 在下方加入第二款)取其一安裝即可~切勿共用!
已經修正到最佳~盡量勿再修改!
演示:http://yuki.wowo.0lx.net/bbs/index.php- <!--WOWO首頁flash美化START-->
- <div class="maintable">
- <div class="mainbox forumlist" style="padding:0;"><table cellspacing="0" cellpadding="0"><thead class="category">
- <tr height="27">
- <td align="center" style="padding:0"><h3>≡ 最新話題 ≡</h3></td>
- <td align="center" style="padding:0"><h3>≡ 論壇活動公告 ≡</h3></td>
- <td align="center" style="padding:0"><h3>≡ 最新回復 ≡</h3></td>
- </tr>
- <tr>
- <td width="30%">
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr valign="top">
- <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
- <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
- <!--{loop $new_post_threadlist $nthread}-->
- <!--{if $nthread[replies]}-->
- <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新帖子 {LF}所在論壇: $nthread[forumname]{LF}主題標題: $nthread[subject] {LF}主題作者: $nthread[author]{LF}發表時間: $nthread[date]{LF}瀏覽次數: $nthread[views] 次 {LF}回復次數: $nthread[replies] 次{LF}最後回復: $nthread[lastreplytime]{LF}{lang lastpost}: $nthread[lastposter]'>$nthread[view_subject]</a></div>
- <!--{else}-->
- <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新帖子 {LF}所在論壇: $nthread[forumname]{LF}主題標題: $nthread[subject] {LF}主題作者: $nthread[author]{LF}發表時間: $nthread[date]{LF}瀏覽次數: $nthread[views] 次 {LF}回復次數: $nthread[replies] 次{LF}最後回復: 暫時沒有回復'>$nthread[view_subject]</a></div>
- <!--{/if}-->
- <!--{/loop}-->
- </td>
- </tr>
- </table>
- </td>
- <td width="40%">
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr valign="top">
- <script type="text/javascript">
- var varText = ""
- function addInfo(title,photourl,link){
- if(varText!=""){
- varText+="|||";
- }
- varText+=title+"|_|"+photourl+"|_|"+link;
- }
- linkarr = new Array();
- picarr = new Array();
- textarr = new Array();
- linkarr[1] = "index.php";
- picarr[1] = "http://您的網站地址/images/toplist/toplist_1.jpg";
- textarr[1] = "WOWO論壇圖片宣傳展示";
- linkarr[2] = "index.php";
- picarr[2] = "http://您的網站地址/images/toplist/toplist_2.jpg";
- textarr[2] = "WOWO論壇圖片宣傳展示";
- linkarr[3] = "index.php";
- picarr[3] = "http://您的網站地址/images/toplist/toplist_3.jpg";
- textarr[3] = "WOWO論壇圖片宣傳展示";
- linkarr[4] = "index.php";
- picarr[4] = "http://您的網站地址/images/toplist/toplist_4.jpg";
- textarr[4] = "WOWO論壇圖片宣傳展示";
- linkarr[5] = "index.php";
- picarr[5] = "http://您的網站地址/images/toplist/toplist_5.jpg";
- textarr[5] = "WOWO論壇圖片宣傳展示";
- addInfo(textarr[1],picarr[1],linkarr[1]);
- addInfo(textarr[2],picarr[2],linkarr[2]);
- addInfo(textarr[3],picarr[3],linkarr[3]);
- addInfo(textarr[4],picarr[4],linkarr[4]);
- addInfo(textarr[5],picarr[5],linkarr[5]);
- document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="420" height="210" id="01" align="middle">');
- document.write('<param name="allowScriptAccess" value="sameDomain" />');
- document.write('<param name="movie" value="http://您的網站地址/images/toplist/flash.swf" />');
- document.write('<param name="FlashVars" value="info='+varText+'">');
- document.write('<param name="quality" value="high" />');
- document.write('<param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" />');
- document.write('<embed src="http://您的網站地址/images/toplist/flash.swf" FlashVars="info='+varText+'" quality="high" bgcolor="#ffffff" width="420" height="210" name="01" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
- document.write('</object>');
- </script>
- </tr>
- </table>
- </td>
- <td width="30%">
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr valign="top">
- <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
- <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
- <!--{loop $new_reply_threadlist $rthread}-->
- <div style="overflow: hidden;height: 20px;width: 100%;"><a href="redirect.php?tid=$rthread[tid]&goto=lastpost#lastpost" $rthread['highlight'] title='最新回復 {LF}所在論壇: $rthread[forumname]{LF}主題標題: $rthread[subject]{LF}主題作者: $rthread[author]{LF}發表時間: $rthread[date]{LF}瀏覽次數: $rthread[views] 次{LF}回復次數: $rthread[replies] 次{LF}最後回復: $rthread[lastreplytime]{LF}{lang lastpost}: $rthread[lastposter]'>$rthread[view_subject]</a></div>
- <!--{/loop}-->
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <!--WOWO首頁flash美化END-->
複製代碼 在下方加入第三款)取其一安裝即可~切勿共用!
已經修正到最佳~盡量勿再修改!
演示: http://wowo.slew.org/index.php- <!--WOWO首頁flash美化START-->
- <div class="maintable">
- <div class="mainbox forumlist" style="padding:0;"><table cellspacing="0" cellpadding="0"><thead class="category">
- <tr height="27">
- <td align="center" style="padding:0"><h3>≡ 論壇活動公告 ≡</h3></td>
- <td align="center" style="padding:0"><h3>≡ 最新話題 ≡</h3></td>
- <td align="center" style="padding:0"><h3>≡ 最新回復 ≡</h3></td>
- </tr>
- <tr>
- <td width="28%">
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr valign="top">
- <script type="text/javascript">
- <!--
- var focus_width=390
- var focus_height=210
- var text_height=0
- var swf_height = focus_height+text_height
- /*圖片*/
- var pics='ab/pic1.jpg|ab/pic2.jpg|ab/pic3.jpg|ab/pic4.jpg|ab/pic5.jpg|ab/pic6.jpg'
- /*連接*/
- var links='index.php|index.php|index.php|index.php|index.php|index.php'
- 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="'+ focus_width +'" height="'+ swf_height +'">');
- document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF">');
- document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
- document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
- document.write('<embed src="images/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#FFFFFF" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');document.write('</object>');
- //-->
- </script>
- </tr>
- </table>
- </td>
- <td width="35%">
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr valign="top">
- <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
- <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
- <!--{loop $new_post_threadlist $nthread}-->
- <!--{if $nthread[replies]}-->
- <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新帖子 {LF}所在論壇: $nthread[forumname]{LF}主題標題: $nthread[subject] {LF}主題作者: $nthread[author]{LF}發表時間: $nthread[date]{LF}瀏覽次數: $nthread[views] 次 {LF}回復次數: $nthread[replies] 次{LF}最後回復: $nthread[lastreplytime]{LF}{lang lastpost}: $nthread[lastposter]'>$nthread[view_subject]</a></div>
- <!--{else}-->
- <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新帖子 {LF}所在論壇: $nthread[forumname]{LF}主題標題: $nthread[subject] {LF}主題作者: $nthread[author]{LF}發表時間: $nthread[date]{LF}瀏覽次數: $nthread[views] 次 {LF}回復次數: $nthread[replies] 次{LF}最後回復: 暫時沒有回復'>$nthread[view_subject]</a></div>
- <!--{/if}-->
- <!--{/loop}-->
- </td>
- </tr>
- </table>
- </td>
- <td width="35%">
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr valign="top">
- <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
- <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
- <!--{loop $new_reply_threadlist $rthread}-->
- <div style="overflow: hidden;height: 20px;width: 100%;"><a href="redirect.php?tid=$rthread[tid]&goto=lastpost#lastpost" $rthread['highlight'] title='最新回復 {LF}所在論壇: $rthread[forumname]{LF}主題標題: $rthread[subject]{LF}主題作者: $rthread[author]{LF}發表時間: $rthread[date]{LF}瀏覽次數: $rthread[views] 次{LF}回復次數: $rthread[replies] 次{LF}最後回復: $rthread[lastreplytime]{LF}{lang lastpost}: $rthread[lastposter]'>$rthread[view_subject]</a></div>
- <!--{/loop}-->
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <!--WOWO首頁flash美化END-->
複製代碼 在下方加入第四款)取其一安裝即可~切勿共用!
已經修正到最佳~盡量勿再修改!
演示: http://wowo.byethost13.com/index.php- <!--WOWO首頁flash美化START-->
- <div class="maintable">
- <div class="mainbox forumlist" style="padding:0;"><table cellspacing="0" cellpadding="0"><thead class="category">
- <tr height="27">
- <td align="center" style="padding:0"><h3>≡ 論壇活動公告 ≡</h3></td>
- <td align="center" style="padding:0"><h3>≡ 最新話題 ≡</h3></td>
- <td align="center" style="padding:0"><h3>≡ 最新回復 ≡</h3></td>
- </tr>
- <tr>
- <td width="40%">
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr valign="top">
- <script type="text/javascript">
- var varText = ""
- function addInfo(title,photourl,link){
- if(varText!=""){
- varText+="|||";
- }
- varText+=title+"|_|"+photourl+"|_|"+link;
- }
- linkarr = new Array();
- picarr = new Array();
- textarr = new Array();
- linkarr[1] = "index.php";
- picarr[1] = "http://您的網站地址/images/toplist/toplist_1.jpg";
- textarr[1] = "WOWO論壇圖片宣傳展示";
- linkarr[2] = "index.php";
- picarr[2] = "http://您的網站地址/images/toplist/toplist_2.jpg";
- textarr[2] = "WOWO論壇圖片宣傳展示";
- linkarr[3] = "index.php";
- picarr[3] = "http://您的網站地址/images/toplist/toplist_3.jpg";
- textarr[3] = "WOWO論壇圖片宣傳展示";
- linkarr[4] = "index.php";
- picarr[4] = "http://您的網站地址/images/toplist/toplist_4.jpg";
- textarr[4] = "WOWO論壇圖片宣傳展示";
- linkarr[5] = "index.php";
- picarr[5] = "http://您的網站地址/images/toplist/toplist_5.jpg";
- textarr[5] = "WOWO論壇圖片宣傳展示";
- addInfo(textarr[1],picarr[1],linkarr[1]);
- addInfo(textarr[2],picarr[2],linkarr[2]);
- addInfo(textarr[3],picarr[3],linkarr[3]);
- addInfo(textarr[4],picarr[4],linkarr[4]);
- addInfo(textarr[5],picarr[5],linkarr[5]);
- document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="420" height="210" id="01" align="middle">');
- document.write('<param name="allowScriptAccess" value="sameDomain" />');
- document.write('<param name="movie" value="http://您的網站地址/images/toplist/flash.swf" />');
- document.write('<param name="FlashVars" value="info='+varText+'">');
- document.write('<param name="quality" value="high" />');
- document.write('<param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" />');
- document.write('<embed src="http://您的網站地址/images/toplist/flash.swf" FlashVars="info='+varText+'" quality="high" bgcolor="#ffffff" width="420" height="210" name="01" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
- document.write('</object>');
- </script>
- </tr>
- </table>
- </td>
- <td width="30%">
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr valign="top">
- <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
- <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
- <!--{loop $new_post_threadlist $nthread}-->
- <!--{if $nthread[replies]}-->
- <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新帖子 {LF}所在論壇: $nthread[forumname]{LF}主題標題: $nthread[subject] {LF}主題作者: $nthread[author]{LF}發表時間: $nthread[date]{LF}瀏覽次數: $nthread[views] 次 {LF}回復次數: $nthread[replies] 次{LF}最後回復: $nthread[lastreplytime]{LF}{lang lastpost}: $nthread[lastposter]'>$nthread[view_subject]</a></div>
- <!--{else}-->
- <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新帖子 {LF}所在論壇: $nthread[forumname]{LF}主題標題: $nthread[subject] {LF}主題作者: $nthread[author]{LF}發表時間: $nthread[date]{LF}瀏覽次數: $nthread[views] 次 {LF}回復次數: $nthread[replies] 次{LF}最後回復: 暫時沒有回復'>$nthread[view_subject]</a></div>
- <!--{/if}-->
- <!--{/loop}-->
- </td>
- </tr>
- </table>
- </td>
- <td width="30%">
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr valign="top">
- <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
- <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
- <!--{loop $new_reply_threadlist $rthread}-->
- <div style="overflow: hidden;height: 20px;width: 100%;"><a href="redirect.php?tid=$rthread[tid]&goto=lastpost#lastpost" $rthread['highlight'] title='最新回復 {LF}所在論壇: $rthread[forumname]{LF}主題標題: $rthread[subject]{LF}主題作者: $rthread[author]{LF}發表時間: $rthread[date]{LF}瀏覽次數: $rthread[views] 次{LF}回復次數: $rthread[replies] 次{LF}最後回復: $rthread[lastreplytime]{LF}{lang lastpost}: $rthread[lastposter]'>$rthread[view_subject]</a></div>
- <!--{/loop}-->
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <!--WOWO首頁flash美化END-->
複製代碼 3.上傳附件包至相關位置(提供4款式附件下載)選其一配套即可!
PS1: 安裝第一款&第三款請下載附件 NO.1
PS2: 安裝第二款&第四款請下載附件 NO.2
內附詳細安裝說明!!純粹分享!!感謝支持!
4.附件圖檔一定要jpg(小寫) 非JPG ,否則圖片將無法顯示哦!
PS1:第一款圖檔大小 390X210 以內否則易發生錯誤哦!
PS2:第二款圖檔大小 306X200 以內否則易發生錯誤哦!
5.圖片請自行更換~檔名開頭只要相同即可,上傳覆蓋原檔!
PS:小弟第一次發帖哦!如有不對?還請各位前輩指正賜教!
如安裝使用成功~覺得還不錯~還請大家能回復鼓勵給予支持一下~感謝!
http://sas.tw/sas/upfiles/net/NO.1.rar
http://sas.tw/sas/upfiles/net/NO.2.rar
備份http://sas.tw/sas/upfiles/net/NO.3.rar |