[更新10.5] 移位的问题 50搂的,是aicainiao 的方法
55楼 的 是笑申方法
你还可以把这个附件分别放到相应的模板,对应的修改啊
我改了这个都要测试了一个下午(不包括javascript脚本)[/quote]
代码贴出来:高手帮帮看看
- <table id=hot_topic_board border="0" cellspacing="0" cellpadding="0" width="{TABLEWIDTH}" bgcolor="{BORDERCOLOR}" align="center"><tr><td>
- </td></tr></table>
- <br>
- <table onmouseover=show_hot_topic(hot_topic,1) border="0" cellspacing="1" cellpadding="1" height="26" width="{TABLEWIDTH}" bgcolor="{BORDERCOLOR}" align="center">
- <tr class="header">
- <td width="16%" align="center">论坛会员发贴排行</td>
- <td width="28%" align="center">论坛最新发表主题</td>
- <td width="28%" align="center">论坛浏览最多主题</td>
- <td width="28%" align="center">论坛回复最多主题</td>
- </tr>
- </table>
- <div id=hot_topic style='position:absolute;visibility:hidden' >
- <br><table cellspacing="0" cellpadding="0" border="0" width="{TABLEWIDTH}" align="center" bgcolor="{BORDERCOLOR}"><tr><td>
- <table border="0" cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" style="table-layout: fixed; word-wrap: break-word" >
- <tr>
- <td width="16%" bgcolor="{ALTBG2}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
- <!--{loop $_DCACHE['toppostnum'] $member}-->
- <a href="viewpro.php?username=$member[username]">$member[username]</a><font color=red> $member[postnum]</font>
- <br><!--{/loop}--></td>
- <td width="28%" bgcolor="{ALTBG2}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
- <!--{loop $hack_newthreads_threadlist $thread}-->
- <a href="viewthread.php?tid=$thread[tid]" title="主题:$thread[subject0]{LF}作者$thread[author]{LF}浏览$thread[views]{LF}回复$thread[replies]">$thread[subject]</a>
- <!--{if $thread[creditsrequire]}--> - [{lang credit_title}<span class="bold">$thread[creditsrequire]</span>{lang credit_unit}] <!--{/if}-->
- $thread[multipage]
- <br><!--{/loop}--></td>
- <td width="28%" bgcolor="{ALTBG2}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
- <!--{loop $_DCACHE['topview'] $thread}-->
- <a href="viewthread.php?tid=$thread[tid]" title="主题:$thread[subject0]{LF} 作者$thread[author]{LF}浏览$thread[views]{LF}回复$thread[replies]">$thread[subject]</a>
- <!--{if $thread[creditsrequire]}--> - [{lang credit_title}<span class="bold">$thread[creditsrequire]</span>{lang credit_unit}] <!--{/if}-->
- $thread[multipage]
- <br><!--{/loop}--></td>
- <td width="28%" bgcolor="{ALTBG2}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
- <!--{loop $_DCACHE['topreply'] $thread}-->
- <a href="viewthread.php?tid=$thread[tid]" title="主题:$thread[subject0]{LF}作者$thread[author]{LF}浏览$thread[views]{LF}回复$thread[replies]">$thread[subject]</a>
- <!--{if $thread[creditsrequire]}--> - [{lang credit_title}<span class="bold">$thread[creditsrequire]</span>{lang credit_unit}] <!--{/if}-->
- $thread[multipage]
- <br><!--{/loop}--></td>
- </tr>
- </table></td></tr></table></div>
- <script language=javascript>
- var objname = "";
- var H1Visible = 0;
- hot_topic.style.left=hot_topic_board.offsetLeft
- function show_hot_topic(objname,showmethod){
- if (objname != ""){
- if (showmethod==1){
- objname.style.visibility="visible";
- H1Visible = 1;}
- else{
- objname.style.visibility="hidden";
- H1Visible = 0; }
- }
- }
- </script>
- <script language="javascript">
- var where = "";
- function checkwhere(e) {
- if (document.layers){
- xCoord = e.x;
- yCoord = e.y;
- }
- else if (document.all){
- xCoord = event.clientX;
- yCoord = event.clientY;
- }
- else if (document.getElementById){
- xCoord = e.clientX;
- yCoord = e.clientY;
- }
- yCoord=yCoord+document.body.scrollTop;
- if ((xCoord<hot_topic_board.offsetLeft || xCoord> hot_topic_board.offsetWidth+hot_topic_board.offsetLeft || yCoord<hot_topic_board.offsetTop || yCoord> hot_topic.offsetTop+hot_topic.offsetHeight) & H1Visible)
- show_hot_topic(hot_topic,0);
- }
- document.onmousemove = checkwhere;
- if(document.captureEvents) {document.captureEvents(Event.MOUSEMOVE);}
- </script>
复制代码
安装方法:
用附件覆盖原来的就可以了
太简单了
哈哈
截图
[ 本帖最后由 lu5266 于 2005-10-18 22:20 编辑 ] |