帖內發言樞框美化代碼帶動態圖2013年修正
lai378418041 :: 【私人儲物渡假村】 :: 《私人儲物室》
第1頁(共1頁)
帖內發言樞框美化代碼帶動態圖2013年修正
打开模板文件viewthread_node.htm
查找:
- 代碼:
<table cellspacing="0" cellpadding="0"><tr><td class="t_msgfont" id="postmessage_$post[pid]">$post[message]</td></tr></table>
替换成:
- 代碼:
<table cellspacing=0 cellpadding=0 border=0 >
<tr>
<td width=14><img height=8 src=http://i15.servimg.com/u/f15/17/35/74/21/top_l10.gif width=14/></td>
<td width:=auto background=http://i15.servimg.com/u/f15/17/35/74/21/top_c210.gif></td>
<td width=16><img height=8 src=http://i15.servimg.com/u/f15/17/35/74/21/top_3r10.gif width=16/></td>
</tr>
<tr>
<td valign=top width=14 background=http://i15.servimg.com/u/f15/17/35/74/21/center11.gif></td>
<td bgColor=#fffff1> <div id="postmessage_$post[pid]" class="t_msgfont">$post[message]</div> </td>
<td valign=top width=16 background=http://i15.servimg.com/u/f15/17/35/74/21/center12.gif></td>
</tr>
<tr>
<td vAlign=top width=14><img height=42 src=http://i15.servimg.com/u/f15/17/35/74/21/foot_l16.gif width=14/></td>
<td background=http://i15.servimg.com/u/f15/17/35/74/21/foot_710.gif><img height=42 src=http://i15.servimg.com/u/f15/17/35/74/21/foot_l17.gif width=36/></td>
<td align=right width=16><img height=42 src=http://i15.servimg.com/u/f15/17/35/74/21/foot_r11.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(21)); //改成你要随机显示的图片数;
if(myNum == 1) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face111.gif'>");
if(myNum == 2) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face211.gif'>"); //图片路径,可用http://
if(myNum == 3) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face311.gif'>");
if(myNum == 4) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face411.gif'>");
if(myNum == 5) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face511.gif'>");
if(myNum == 6) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face611.gif'>");
if(myNum == 7) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face711.gif'>");
if(myNum == 8) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face811.gif'>");
if(myNum == 9) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face911.gif'>");
if(myNum == 10) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face1011.gif'>");
if(myNum == 11) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face111.gif'>");
if(myNum == 12) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face211.gif'>");
if(myNum == 13) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face311.gif'>");
if(myNum == 14) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face411.gif'>");
if(myNum == 15) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face511.gif'>");
if(myNum == 16) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face611.gif'>");
if(myNum == 17) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face711.gif'>");
if(myNum == 18) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face811.gif'>");
if(myNum == 19) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face911.gif'>");
if(myNum == 20) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face1011.gif'>");
if(myNum == 21) document.write("<img src='http://i13.servimg.com/u/f13/17/48/58/27/face211.gif'>");
else {
document.write();
}
};
document.write(" $post[author]:說</div>");
//-->
</SCRIPT>
<br>
lai378418041 :: 【私人儲物渡假村】 :: 《私人儲物室》
第1頁(共1頁)
這個論壇的權限:
您 無法 在這個版面回復文章