WOWO Toplist for 6.1 utf8 ติดตั้งง่าย สวยด้วย
http://img.thzhost.com/i/85/7demo.pnghttp://img.thzhost.com/i/pv/sixss.jpg
http://img.thzhost.com/i/uv/sssssss.jpg
http://img.thzhost.com/i/dj/fvrss.jpg
http://img.thzhost.com/i/ld/sssssss.jpg
http://img.thzhost.com/i/o3/5main.jpg
ที่มา
http://img.thzhost.com/i/ep/umgss.jpg
http://www.alan888.com/Discuz/viewthread.php?tid=143821&highlight=Flash
ที่จริงแล้วสังเกตดูที่ รูปจากกระดานตัว flash ของมันไม่ได้ไปดึงเอารูปจากกระดานมาแสดงนะครับ เป็นการจับรูปไปวางในโฟลเดอร์ที่กำหนด และก็ใส่ลิงค์ ใส่อะไรต่อยุ่งมากนะ
แต่ตัวนี้ผมปรับใหม่แล้ว ให้มันไปดึงรูปจากกระดาน ที่กำหนดไว้มาแสดง โดยใช้ IE โพสนะรูปถึงจะขึ้น
วิธีติดตั้งนั้นง่ายๆ มากๆ แค่ 2ไฟล์ คือ index.php และ discuz.htm หวังว่าคงรูปนะว่าไฟล์ไหนอยู่ตรงไหน
เปิดไฟล์ index.php ขึ้นมาแล้วหา$newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;วางโค้ดนี้ด้านล้าง//----WOWO首頁六格代碼開始BY:WOWO
$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
//最新主題
$hack_cut_str = 50; //標題字數
$hack_cut_strauthor = 10;
$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 AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.dateline DESC LIMIT 0, 10");
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 + ($timeoffset * 3600));
if($nthread['highlight']) {
$string = sprintf('%02d', $nthread['highlight']);
$stylestr = sprintf('%03b', $string);
$nthread['highlight'] = 'style="';
$nthread['highlight'] .= $stylestr ? 'font-weight: bold;' : '';
$nthread['highlight'] .= $stylestr ? 'font-style: italic;' : '';
$nthread['highlight'] .= $stylestr ? 'text-decoration: underline;' : '';
$nthread['highlight'] .= $string ? 'color: '.$colorarray[$string] : '';
$nthread['highlight'] .= '"';
} else {
$nthread['highlight'] = '';
}
$new_post_threadlist[] = $nthread;
}
//最新回復
$hack_cut_str = 50; //標題字數
$hack_cut_strauthor = 10;
$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.fidAND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.lastpost DESC LIMIT 0, 10");
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 + ($timeoffset * 3600));
if($rthread['highlight']) {
$string = sprintf('%02d', $rthread['highlight']);
$stylestr = sprintf('%03b', $string);
$rthread['highlight'] = 'style="';
$rthread['highlight'] .= $stylestr ? 'font-weight: bold;' : '';
$rthread['highlight'] .= $stylestr ? 'font-style: italic;' : '';
$rthread['highlight'] .= $stylestr ? 'text-decoration: underline;' : '';
$rthread['highlight'] .= $string ? 'color: '.$colorarray[$string] : '';
$rthread['highlight'] .= '"';
} else {
$rthread['highlight'] = '';
}
$new_reply_threadlist[] = $rthread;
}
//一周熱門帖
$hack_cut_str = 70; //標題字數
$hack_cut_strauthor = 10;
$new_hot_threadlist = array();
$mthread = array();
$ctime=$timestamp-3600*24*7;//最后7是天數為本周
$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fidAND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND t.dateline>$ctime AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.replies DESC LIMIT 0, 10");
while($mthread = $db->fetch_array($query)) {
$mthread['forumname'] = ereg_replace('<[^>]*>','',$mthread['name']);
$mthread['view_subject'] = cutstr($mthread['subject'],$hack_cut_str);
$mthread['view_lastposter'] = cutstr($mthread['lastposter'],$hack_cut_strauthor);
$mthread['date']= gmdate("$dateformat $timeformat", $mthread['dateline'] + $timeoffset * 3600);
$mthread['lastreplytime']= gmdate("$dateformat $timeformat", $mthread + ($timeoffset * 3600));
if($mthread['highlight']) {
$string = sprintf('%02d', $mthread['highlight']);
$stylestr = sprintf('%03b', $string);
$mthread['highlight'] = 'style="';
$mthread['highlight'] .= $stylestr ? 'font-weight: bold;' : '';
$mthread['highlight'] .= $stylestr ? 'font-style: italic;' : '';
$mthread['highlight'] .= $stylestr ? 'text-decoration: underline;' : '';
$mthread['highlight'] .= $string ? 'color: '.$colorarray[$string] : '';
$mthread['highlight'] .= '"';
} else {
$mthread['highlight'] = '';
}
$new_hot_threadlist[] = $mthread;
}
//隨機精華帖
$hack_cut_str = 70; //標題字數
$hack_cut_strauthor = 10;
$new_digest_threadlist = array();
$dthread = array();
$dtime=$timestamp-3600*24*30;//最后30是天數為本月
$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fidAND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND t.dateline>$dtime AND t.digest in (1,2,3) AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.replies DESC LIMIT 0, 10");
while($dthread = $db->fetch_array($query)) {
$dthread['forumname'] = ereg_replace('<[^>]*>','',$dthread['name']);
$dthread['view_subject'] = cutstr($dthread['subject'],$hack_cut_str);
$dthread['view_lastposter'] = cutstr($dthread['lastposter'],$hack_cut_strauthor);
$dthread['date']= gmdate("$dateformat $timeformat", $dthread['dateline'] + $timeoffset * 3600);
$dthread['lastreplytime']= gmdate("$dateformat $timeformat", $dthread + ($timeoffset * 3600));
if($dthread['highlight']) {
$string = sprintf('%02d', $dthread['highlight']);
$stylestr = sprintf('%03b', $string);
$dthread['highlight'] = 'style="';
$dthread['highlight'] .= $stylestr ? 'font-weight: bold;' : '';
$dthread['highlight'] .= $stylestr ? 'font-style: italic;' : '';
$dthread['highlight'] .= $stylestr ? 'text-decoration: underline;' : '';
$dthread['highlight'] .= $string ? 'color: '.$colorarray[$string] : '';
$dthread['highlight'] .= '"';
} else {
$dthread['highlight'] = '';
}
$new_digest_threadlist[] = $dthread;
}
//本月發帖排行
$today = array();
$query = $db->query("SELECT uid, username, posts FROM {$tablepre}members ORDER BY posts DESC LIMIT 10");
while($variable = $db->fetch_array($query)) {
$today[] = array('uid'=>$variable['uid'], 'username'=>$variable['username'], 'posts'=>$variable);
}
//----WOWO首頁六格代碼結束BY:WOWOเปิดไฟล์ discuz.htm ที่อยู่ใน templates\สกินที่คุณใช้งานปัจจุบัน
หา<!--{else}--><div id="ad_text"></div><!--{/if}-->วางโค้ดนี้ด้านล้าง{template foruminfo}Save อัพโหลดไฟล์ขึ้นโฮสต์ อัพเดทแคช เรียบร้อยครับง่ายๆ
มาดูโค้ดที่ผมแก้ไขในไฟล์ foruminfo.htm
ต้นฉบับ<!-- WO WO首頁六格代碼開始 -->
<script language="javascript">
function view(a) {
document.getElementById('top1').style.display='none';
document.getElementById('top2').style.display='none';
document.getElementById('top3').style.display='none';
document.getElementById('top4').style.display='none';
document.getElementById('top'+a).style.display='block';
document.getElementById('tab1').className='';
document.getElementById('tab2').className='';
document.getElementById('tab3').className='';
document.getElementById('tab4').className='';
document.getElementById('tab'+a).className='current';
}
</script>
<div class="mainbox">
<span class="headactions"></span>
<h3><a href="/" title="論壇主題推薦專區">論壇主題推薦專區</a></h3>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="35%" align="center"style="padding: 5px 0px 0px 5px">
<div class="mainbox">
<ul class="tabs">
<li class="current"><span style="padding:0 5px;"><FONT color=#FF0000>論壇活動</FONT></span></li>
</ul>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="padding:1px; border-top:0px"><span style="margin-top:-13">
<script type="text/javascript">
<!--
var focus_width=350
var focus_height=198
var text_height=0
var swf_height = focus_height+text_height
/*圖片*/
var pics='images/wowo/ab/pic1.jpg|images/wowo/ab/pic2.jpg|images/wowo/ab/pic3.jpg|images/wowo/ab/pic4.jpg|images/wowo/ab/pic5.jpg|images/wowo/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/wowo/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000">');
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/wowo/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#000000" 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>
</span>
</td>
</tr>
</table>
</div>
</td>
<td width="45%" style="padding: 5px 0px 0px 5px">
<div class="mainbox">
<ul class="tabs">
<li id="tab1" class="current" ><span style="padding:0 8px;" onMouseOver="javascript:view(1);"><FONT color=#FF0000>最新主題</FONT></span></li>
<li id="tab2" class="" ><span style="padding:0 8px;" onMouseOver="javascript:view(2);"><FONT color=#33CCFF>最新回復</FONT></span></li>
<li id="tab3" class="" ><span style="padding:0 8px;" onMouseOver="javascript:view(3);"><FONT color=#00FF00>本周熱門</FONT></span></li>
<li id="tab4" class="" ><span style="padding:0 8px;" onMouseOver="javascript:view(4);"><FONT color=#FF00FF>隨機精華</FONT></span></li>
</ul>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td width="24" style="padding:0;border-top:0px;"><img src="images/wowo/list.gif" border="0" /></td>
<td background="images/wowo/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat" width="100%">
<div id="top1" style="display:block;">
<!--{loop $new_post_threadlist $nthread}-->
<!--{if $nthread}-->
<div style="overflow: hidden;height: 20px;width: 100%;"><em style="float:right; padding-top:2px;"><a href="space.php?uid=$nthread" title="查看$nthread的詳細資料" target="_blank">$nthread</a></em><span style="float:left;"><a href="viewthread.php?tid=$nthread" $nthread['highlight'] title='最新話題 {LF}所在論壇: $nthread{LF}主題標題: $nthread {LF}主題作者: $nthread{LF}發表時間: $nthread{LF}瀏覽次數: $nthread 次 {LF}回復次數: $nthread 次{LF}最後回復: $nthread{LF}{lang lastpost}: $nthread'>$nthread</a></span></div><div style="clear:both;"></div>
<!--{else}-->
<div style="overflow: hidden;height: 20px;width:100%;"><em style="float:right; padding-top:2px;"><a href="space.php?uid=$nthread" title="查看$nthread的詳細資料" target="_blank">$nthread</a></em><span style="float:left;"><a href="viewthread.php?tid=$nthread" $nthread['highlight'] title='最新話題 {LF}所在論壇: $nthread{LF}主題標題: $nthread {LF}主題作者: $nthread{LF}發表時間: $nthread{LF}瀏覽次數: $nthread 次 {LF}回復次數: $nthread 次{LF}最後回復: 暫時沒有回復'>$nthread</a></span></div><div style="clear:both;"></div>
<!--{/if}-->
<!--{/loop}-->
</div>
<div id="top2" style="display:none;">
<!--{loop $new_reply_threadlist $rthread}-->
<div style="overflow: hidden;height: 20px;width: 100%;"><em style="float:right; padding-top:2px;"><a href="space.php?username=$rthread" title="查看$rthread的詳細資料" target="_blank">$rthread</a></em><span style="float:left;"><a href="redirect.php?tid=$rthread&goto=lastpost#lastpost" $rthread['highlight'] title='最新回復 {LF}所在論壇: $rthread{LF}主題標題: $rthread{LF}主題作者: $rthread{LF}發表時間: $rthread{LF}瀏覽次數: $rthread 次{LF}回復次數: $rthread 次{LF}最後回復: $rthread{LF}{lang lastpost}: $rthread'>$rthread</a></span></div><div style="clear:both;"></div>
<!--{/loop}-->
</div>
<div id="top3" style="display:none;">
<!--{loop $new_hot_threadlist $mthread}-->
<div style="overflow: hidden;height: 20px;width: 100%;"><em style="float:right; padding-top:2px;"><a href="space.php?uid=$mthread" title="查看$mthread的詳細資料" target="_blank">$mthread</a></em><span style="float:left;"><a href="viewthread.php?tid=$mthread" $mthread['highlight'] title='本周熱門 {LF}所在論壇: $mthread{LF}主題標題: {echo strip_tags($mthread)}{LF}主題作者: $mthread{LF}發表時間: $mthread{LF}瀏覽次數: $mthread 次{LF}回復次數: $mthread 次{LF}最後回復: $mthread{LF}{lang lastpost}: $mthread'>$mthread</a></span></div><div style="clear:both;"></div>
<!--{/loop}-->
</div>
<div id="top4" style="display:none;">
<!--{loop $new_digest_threadlist $dthread}-->
<div style="overflow: hidden;height: 20px;width: 100%;"><em style="float:right; padding-top:2px;"><a href="space.php?uid=$dthread" title="查看$dthread的詳細資料" target="_blank">$dthread</a></em><span style="float:left;"><a href="viewthread.php?tid=$dthread" $dthread['highlight'] title='隨機精華 {LF}所在論壇: $dthread{LF}主題標題: $dthread{LF}主題作者: $dthread{LF}發表時間: $dthread{LF}瀏覽次數: $dthread 次{LF}回復次數: $dthread 次{LF}最後回復: $dthread{LF}{lang lastpost}: $dthread'>$dthread</a></span></div><div style="clear:both;"></div>
<!--{/loop}-->
</div>
</table>
</div>
</td>
<td width="20%" style="padding: 5px 5px 0px 5px">
<div class="mainbox">
<ul class="tabs">
<li class="current"><span style="padding:0 5px;"><FONT color=#FF0000>論壇發帖榮譽榜</FONT></span></li>
</ul>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td width="24" style="padding:0;border-top:0px;"><img src="images/wowo/list.gif" border="0" /></td>
<td background="images/wowo/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat" width="100%">
<div>
<!--{loop $today $member}-->
<div style="overflow: hidden;height: 20px;width: 100%;"><em style="float:right; padding-top:2px;">$member</em><a href="space.php?uid=$member" title="查看$member的個人空間">$member</a></div>
<!--{/loop}-->
</div>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<!-- WO WO首頁六格代碼結束 -->เปลี่ยนเป็น<!-- WO WO首頁六格代碼開始 -->
<script language="javascript">
function view(a) {
document.getElementById('top1').style.display='none';
document.getElementById('top2').style.display='none';
document.getElementById('top3').style.display='none';
document.getElementById('top4').style.display='none';
document.getElementById('top'+a).style.display='block';
document.getElementById('tab1').className='';
document.getElementById('tab2').className='';
document.getElementById('tab3').className='';
document.getElementById('tab4').className='';
document.getElementById('tab'+a).className='current';
}
</script>
<div class="mainbox">
<span class="headactions"></span>
<h3><a href="$indexname" title="หน้าแรก">สถิติการใช้งานกระดานข่าวและรูปจากกระดาน</a></h3>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="26%" align="center"style="padding: 5px 0px 0px 5px">
<div class="mainbox">
<ul class="tabs">
<li class="current"><span style="padding:0 5px;">รูปจากกระดาน</span></li>
</ul>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<script type="text/javascript" src="pic.php"></script>
</table>
</div>
</td>
<td width="45%" style="padding: 5px 0px 0px 5px">
<div class="mainbox">
<ul class="tabs">
<li id="tab1" class="current" ><span style="padding:0 8px;" onMouseOver="javascript:view(1);">กระทู้ล้าสุด</span></li>
<li id="tab2" class="" ><span style="padding:0 8px;" onMouseOver="javascript:view(2);">ตอบกลับล่าสุด</span></li>
<li id="tab3" class="" ><span style="padding:0 8px;" onMouseOver="javascript:view(3);">กระทู้ร้อนแรง</span></li>
<li id="tab4" class="" ><span style="padding:0 8px;" onMouseOver="javascript:view(4);">กระทู้สำคัญ</span></li>
</ul>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td width="24" style="padding:0;border-top:0px;"><img src="images/wowo/list.gif" border="0" /></td>
<td background="images/wowo/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat" width="100%">
<div id="top1" style="display:block;">
<!--{loop $new_post_threadlist $nthread}-->
<!--{if $nthread}-->
<div style="overflow: hidden;height: 20px;width: 100%;"><em style="float:right; padding-top:2px;"><a href="space.php?uid=$nthread" title="查看$nthread的詳細資料" target="_blank">$nthread</a></em><span style="float:left;"><a href="viewthread.php?tid=$nthread" $nthread['highlight'] title='最新話題 {LF}所在論壇: $nthread{LF}主題標題: $nthread {LF}主題作者: $nthread{LF}發表時間: $nthread{LF}瀏覽次數: $nthread 次 {LF}回復次數: $nthread 次{LF}最後回復: $nthread{LF}{lang lastpost}: $nthread'>$nthread</a></span></div><div style="clear:both;"></div>
<!--{else}-->
<div style="overflow: hidden;height: 20px;width:100%;"><em style="float:right; padding-top:2px;"><a href="space.php?uid=$nthread" title="查看$nthread的詳細資料" target="_blank">$nthread</a></em><span style="float:left;"><a href="viewthread.php?tid=$nthread" $nthread['highlight'] title='最新話題 {LF}所在論壇: $nthread{LF}主題標題: $nthread {LF}主題作者: $nthread{LF}發表時間: $nthread{LF}瀏覽次數: $nthread 次 {LF}回復次數: $nthread 次{LF}最後回復: 暫時沒有回復'>$nthread</a></span></div><div style="clear:both;"></div>
<!--{/if}-->
<!--{/loop}-->
</div>
<div id="top2" style="display:none;">
<!--{loop $new_reply_threadlist $rthread}-->
<div style="overflow: hidden;height: 20px;width: 100%;"><em style="float:right; padding-top:2px;"><a href="space.php?username=$rthread" title="查看$rthread的詳細資料" target="_blank">$rthread</a></em><span style="float:left;"><a href="redirect.php?tid=$rthread&goto=lastpost#lastpost" $rthread['highlight'] title='最新回復 {LF}所在論壇: $rthread{LF}主題標題: $rthread{LF}主題作者: $rthread{LF}發表時間: $rthread{LF}瀏覽次數: $rthread 次{LF}回復次數: $rthread 次{LF}最後回復: $rthread{LF}{lang lastpost}: $rthread'>$rthread</a></span></div><div style="clear:both;"></div>
<!--{/loop}-->
</div>
<div id="top3" style="display:none;">
<!--{loop $new_hot_threadlist $mthread}-->
<div style="overflow: hidden;height: 20px;width: 100%;"><em style="float:right; padding-top:2px;"><a href="space.php?uid=$mthread" title="查看$mthread的詳細資料" target="_blank">$mthread</a></em><span style="float:left;"><a href="viewthread.php?tid=$mthread" $mthread['highlight'] title='本周熱門 {LF}所在論壇: $mthread{LF}主題標題: {echo strip_tags($mthread)}{LF}主題作者: $mthread{LF}發表時間: $mthread{LF}瀏覽次數: $mthread 次{LF}回復次數: $mthread 次{LF}最後回復: $mthread{LF}{lang lastpost}: $mthread'>$mthread</a></span></div><div style="clear:both;"></div>
<!--{/loop}-->
</div>
<div id="top4" style="display:none;">
<!--{loop $new_digest_threadlist $dthread}-->
<div style="overflow: hidden;height: 20px;width: 100%;"><em style="float:right; padding-top:2px;"><a href="space.php?uid=$dthread" title="查看$dthread的詳細資料" target="_blank">$dthread</a></em><span style="float:left;"><a href="viewthread.php?tid=$dthread" $dthread['highlight'] title='隨機精華 {LF}所在論壇: $dthread{LF}主題標題: $dthread{LF}主題作者: $dthread{LF}發表時間: $dthread{LF}瀏覽次數: $dthread 次{LF}回復次數: $dthread 次{LF}最後回復: $dthread{LF}{lang lastpost}: $dthread'>$dthread</a></span></div><div style="clear:both;"></div>
<!--{/loop}-->
</div>
</table>
</div>
</td>
<td width="20%" style="padding: 5px 5px 0px 5px">
<div class="mainbox">
<ul class="tabs">
<li class="current"><span style="padding:0 5px;">สมาชิกใช้งานวันนี้</span></li>
</ul>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td width="24" style="padding:0;border-top:0px;"><img src="images/wowo/list.gif" border="0" /></td>
<td background="images/wowo/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat" width="100%">
<div>
<!--{loop $today $member}-->
<div style="overflow: hidden;height: 20px;width: 100%;"><em style="float:right; padding-top:2px;">$member</em><a href="space.php?uid=$member" title="查看$member的個人空間">$member</a></div>
<!--{/loop}-->
</div>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<!-- WO WO首頁六格代碼結束 -->
[ แก้ไขล่าสุด mastergtx เมื่อ 2008-6-15 11:33 ] นิดนึงนะ หรือเปลี่ยนจาก<h3><a href="$indexname" title="หน้าแรก">สถิติการใช้งานกระดานข่าวและรูปจากกระดาน</a></h3>เป็น<h3><a href="$indexname" title="$bbname">$bbname</a></h3>มันก็จะขึ้นชื่อเว็บเลย:lol
include/javascript/common.js เพิ่มโค้ดนี้ด้านล้างvar sPop = null;
var postSubmited = false;
document.write("<style type='text/css'id='defaultPopStyle'>");
document.write(".cPopText { font-family: Verdana, Tahoma; background-color: #DDEEFF; border: 1px #8899AA dashed; font-size: 12px; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; visibility: hidden; filter: Alpha(Opacity=80)}");
document.write("</style>");
document.write("<div id='popLayer' style='position:absolute;z-index:1000;' class='cPopText'></div>");
function showPopupText(event) {
if(event.srcElement) o = event.srcElement; else o = event.target;
if(!o) {
return;
}
MouseX = event.clientX;
MouseY = event.clientY;
if(o.alt != null && o.alt != '') {
o.pop = o.alt;
o.alt = '';
}
if(o.title != null && o.title != '') {
o.pop = o.title;
o.title = '';
}
if(o.pop != sPop) {
sPop = o.pop;
if(sPop == null || sPop == '') {
$('popLayer').style.visibility = "hidden";
} else {
popStyle = o.dyclass != null ? o.dyclass : 'popupmenu_popup';
$('popLayer').style.visibility = "visible";
showIt();
}
}
}
function showIt() {
$('popLayer').className = popStyle;
$('popLayer').innerHTML = sPop.replace(/</g,"<").replace(/>/g,">").replace(/\n/g,"<br>");
var bodySL, bodyST;
if(window.pageXOffset){
bodySL=window.pageXOffset;
}else if(document.documentElement&&document.documentElement.scrollLeft){
bodySL=document.documentElement.scrollLeft;
}else if(document.body){
bodySL=document.body.scrollLeft; //author: meizz
}
if(window.pageYOffset){
bodyST=window.pageYOffset;
}else if(document.documentElement&&document.documentElement.scrollTop){
bodyST=document.documentElement.scrollTop;
}else if(document.body){
bodyST=document.body.scrollTop;
}
var bodyCW, bodyCH;
if(window.innerWidth){
bodyCW=window.innerWidth;
}else if(document.documentElement&&document.documentElement.clientWidth){
bodyCW=document.documentElement.clientWidth;
}else if(document.body){
bodyCW=document.body.clientWidth; //author: meizz
}
if(window.innerHeight){
bodyCH=window.innerHeight;
}else if(document.documentElement&&document.documentElement.clientHeight){
bodyCH=document.documentElement.clientHeight;
}else if(document.body){
bodyCH=document.body.clientHeight;
}
if($('popLayer').clientWidth>300){
var popWidth = 300;
}else{
var popWidth = $('popLayer').clientWidth;
}
var popWidth = $('popLayer').clientWidth;
var popHeight = $('popLayer').clientHeight;
var popLeftAdjust = MouseX + 12 + popWidth > bodyCW ? -popWidth - 24 : 0;
var popTopAdjust = MouseY + 12 + popHeight > bodyCH ? -popHeight - 24 : 0;
$('popLayer').style.left = (MouseX + 12 + bodySL + popLeftAdjust) + 'px';
$('popLayer').style.top = (MouseY + 12 + bodyST + popTopAdjust) + 'px';
}
if(!document.onmouseover) {
document.onmouseover = function(e) {
var event = e ? e : window.event;
showPopupText(event);
};
}
//www.chenhailm.comALT
function quickpost(event){
if((event.ctrlKey && event.keyCode == 13) || (event.altKey && event.keyCode == 83)){
document.FORM.Submit.click();
}
}หรือ อีกตัว ที่มีขอบเป็นเส้นปะ แก้ให้เข้ากับ 6.1 หรือ 6.0 แล้ว
var sPop = null;
var postSubmited = false;
document.write("<style type='text/css'>");
document.write(".cPopText { font-family: Tahoma, Verdana; background-color: #FFFFFF; border: 1px #666666 dotted; font-size: 11px; padding-right: 4px; padding-left: 4px; line-height: 13px; padding-top: 2px; padding-bottom: 2px; visibility: hidden; filter: Alpha(Opacity=80); opacity: 0.8;}");
document.write("</style>");
document.write("<div id='popLayer' style='position:absolute;z-index:1000' class='cPopText'></div>")
function showPopupText(event) {
if(event.srcElement) o = event.srcElement; else o = event.target;
if(!o) {
return;
}
MouseX = event.clientX;
MouseY = event.clientY;
if(o.alt != null && o.alt != '') {
o.pop = o.alt;
o.alt = '';
}
if(o.title != null && o.title != '') {
o.pop = o.title;
o.title = '';
}
if(o.pop != sPop) {
sPop = o.pop;
if(sPop == null || sPop == '') {
$('popLayer').style.visibility = "hidden";
} else {
popStyle = o.dyclass != null ? o.dyclass : 'cPopText';
$('popLayer').style.visibility = "visible";
showIt();
}
}
}
function showIt() {
$('popLayer').className = popStyle;
$('popLayer').innerHTML = sPop.replace(/</g,"<").replace(/>/g,">").replace(/\n/g,"<br>");
var bodySL, bodyST;
if(window.pageXOffset){
bodySL=window.pageXOffset;
}else if(document.documentElement&&document.documentElement.scrollLeft){
bodySL=document.documentElement.scrollLeft;
}else if(document.body){
bodySL=document.body.scrollLeft; //author: meizz
}
if(window.pageYOffset){
bodyST=window.pageYOffset;
}else if(document.documentElement&&document.documentElement.scrollTop){
bodyST=document.documentElement.scrollTop;
}else if(document.body){
bodyST=document.body.scrollTop;
}
var bodyCW, bodyCH;
if(window.innerWidth){
bodyCW=window.innerWidth;
}else if(document.documentElement&&document.documentElement.clientWidth){
bodyCW=document.documentElement.clientWidth;
}else if(document.body){
bodyCW=document.body.clientWidth; //author: meizz
}
if(window.innerHeight){
bodyCH=window.innerHeight;
}else if(document.documentElement&&document.documentElement.clientHeight){
bodyCH=document.documentElement.clientHeight;
}else if(document.body){
bodyCH=document.body.clientHeight;
}
if($('popLayer').clientWidth>300){
var popWidth = 300;
}else{
var popWidth = $('popLayer').clientWidth;
}
var popWidth = $('popLayer').clientWidth;
var popHeight = $('popLayer').clientHeight;
var popLeftAdjust = MouseX + 12 + popWidth > bodyCW ? -popWidth - 24 : 0;
var popTopAdjust = MouseY + 12 + popHeight > bodyCH ? -popHeight - 24 : 0;
$('popLayer').style.left = (MouseX + 12 + bodySL + popLeftAdjust) + 'px';
$('popLayer').style.top = (MouseY + 12 + bodyST + popTopAdjust) + 'px';
}
if(!document.onmouseover) {
document.onmouseover = function(e) {
var event = e ? e : window.event;
showPopupText(event);
};
}
[ แก้ไขล่าสุด mastergtx เมื่อ 2008-6-15 12:04 ] ขอบคุณมากๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆ ขอบคุณครับ :handshake ของผมไม่โชรูปอะคับเป็นแบบนี้ในรูป
ขอบคุณมากมายเลยครับ ขอบคุณมากๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆ:loveliness:
หน้า:
[1]