演示:看本贴http://cnzoz.com/bbs/viewthread.php?tid=376&extra=page%3D1
内说话气泡显示(可选择楼层显示)FORDZ6.1
可以自定义 哪些楼层使用气泡
1楼不使用气泡 后面使用
演示:http://www.cnzoz.com 看本贴http://cnzoz.com/bbs/viewthread.php?tid=376&extra=page%3D1
修改方法:
1.打开模板 viewthread.htm文件
查找- <div id="postmessage_$post[pid]" class="t_msgfont">$post[message]</div>
复制代码 替换成- <!--{if $post['number'] == 1}-->
- <table cellspacing=0 cellpadding=0 border=0 >
- <tr >
- <td width=14><img height=8 src=images/plus/top_l.gif width=14/></td>
- <td width:=auto background=images/plus/top_c.gif></td>
- <td width=16><img height=8 src=images/plus/top_r.gif width=16/></td>
- </tr>
- <tr>
- <td valign=top width=14 background=images/plus/center_l.gif></td>
- <td bgColor=#fffff1> <div id="postmessage_$post[pid]" class="t_msgfont">$post[message]</div> </td>
- <td valign=top width=16 background=images/plus/center_r.gif></td>
- </tr>
- <tr>
- <td vAlign=top width=14><img height=42 src=images/plus/foot_l1.gif width=14/></td>
- <td background=images/plus/foot_c.gif><img height=42 src=images/plus/foot_l3.gif width=36/></td>
- <td align=right width=16><img height=42 src=images/plus/foot_r.gif width=16/></td>
- </tr>
- </table>
- <SCRIPT language="JavaScript">
- <!--
- today=new Date();
- jran=today.getTime();
- function rnd() {
- ia=9301;
- ic=49297;
- im=233280;
- jran = (jran*ia+ic) % im;
- return jran/(im*1.0);
- };
- function rand(number) {
- return Math.ceil(rnd()*number);
- };
- document.write("<div>");
- for(i=1;i<=1;i++) {
- myNum=(rand(10)); //改成你要随机显示的图片数;
- if(myNum == 1) document.write("<img src='images/plus/face1.gif'>");
- if(myNum == 2) document.write("<img src='images/plus/face2.gif'>"); //图片路径,可用http://
- if(myNum == 3) document.write("<img src='images/plus/face3.gif'>");
- if(myNum == 4) document.write("<img src='images/plus/face4.gif'>");
- if(myNum == 5) document.write("<img src='images/plus/face5.gif'>");
- if(myNum == 6) document.write("<img src='images/plus/face6.gif'>");
- if(myNum == 7) document.write("<img src='images/plus/face7.gif'>");
- if(myNum == 8) document.write("<img src='images/plus/face8.gif'>");
- if(myNum == 9) document.write("<img src='images/plus/face9.gif'>");
- if(myNum == 10) document.write("<img src='images/plus/face10.gif'>");
- else {
- document.write();
- }
- };
- document.write(" $post[author]说:</div>");
- //-->
- </SCRIPT>
- <br>
- <!--{else}-->
- <div id="postmessage_$post[pid]" class="t_msgfont">$post[message]</div>
- <!--{/if}-->
复制代码
2.打开模板css_common.htm
找到- .mainbox tbody th, .mainbox tbody td { border-top: 1px solid {BGBORDER}; padding: 5px; }
复制代码 删除
应用
这里的if $post['number'] == 1 1楼使用气泡
if $post['number'] >= 2 2楼以下使用气泡(包括2楼)
if $post['number'] <= 2 2楼以上使用气泡(包括2楼)
自己修改哦
把images覆盖你的论坛,更新缓存!
OK完成
下载地址:
[ 本帖最后由 czdos 于 2008-8-7 16:11 编辑 ] |