📄 draw_admtb.js
字号:
<script type="text/javascript" language="JavaScript">
var n=0
function draw_table(id,title,author,gtnum,clicknum,sj,cool,face,all,area_id,area_nick,area_link,check_box)
{
if (n==1){
ss="<tr bgcolor='#F6F6F6' >" ;
n=1-n;
}
else {ss="<tr >";
n=1-n;}
if (gtnum >= 3){
gtstr="<font color='red'>"+gtnum+"</font>";
}
else{ gtstr=gtnum;
}
if (clicknum>20){
clickstr="<font color='red'>"+clicknum+"</font>";
}
else{ clickstr=clicknum;
}
numstr=gtstr+"/"+clickstr;
if (cool==1){
cool_sign="<font face='Comic Sans MS' color='#FF0000'><small><strong>cool!</strong></small></font> ";
}else{
cool_sign="";
}
switch(face){
case 1:
mood="m1.gif";
break;
case 2:
mood="m2.gif";
break;
case 3:
mood="m3.gif";
break;
case 4:
mood="m4.gif";
break;
default:
mood="gd.gif"
}
moodpic="<img src='images/"+mood+" ' width='20' height='20'>";
document.write(ss)
if (all==1){
if (area_nick==""){
document.write("<td align='center'>Public</td>");}
else{
document.write("<td align='center'><a href='board.asp?idget="+area_id+"&area_name="+area_link+"' target=main>"+area_nick+"</a></td>");
}
}
document.write("<td>"+check_box+moodpic+cool_sign);
document.write("<a href='readtxt.jsp?idget=",id,"'>"+title+"</a>");
document.write("</td><td nowrap align='center'>");
document.write("<a href='intramail.jsp?receiver=",author,"'>",author,"</a>");
document.write("</td><td align='center'>");
document.write(numstr);
document.write("</td><td nowrap align='center'>");
document.write(sj);
document.write("</td></tr>");
}
function KillSpace(x){
while((x.length>0) && (x.charAt(0)==' '))
x = x.substring(1,x.length)
while((x.length>0) && (x.charAt(x.length-1)==' '))
x = x.substring(0,x.length-1)
return x
}
function CheckForm()
{
document.PostDoc.title.value=KillSpace(document.PostDoc.title.value);
document.PostDoc.content.value=KillSpace(document.PostDoc.content.value);
if(document.PostDoc.title.value.length == 0)
{
alert('\nPlease Input title!!')
return false
}
if(document.PostDoc.content.value.length == 0)
{
alert('\nPlease Input content!!')
return false
}
return true
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -