📄 common.js
字号:
var currentpos,timer;
function initialize()
{
timer=setInterval("scrollwindow()",50);
}
function sc()
{
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos != document.body.scrollTop)
{
sc();
}
}
document.onmousedown=sc
document.ondblclick=initialize
//双击自动滚屏代码结束
//网页路径
function Path(str)
{
document.write('<table width="776" border="0" align="center" cellpadding="0" cellspacing="0" runat="server" class="maintable">');
document.write('<tr>');
document.write('<td height="5"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td height="25" bgcolor="#EFEFEF">');
document.write('<table width="100%" border="0" cellspacing="2" cellpadding="0">');
document.write('<tr>');
document.write('<td width="4%" align="center"><img src="../../Images/icon/class_ar.gif" width="13" height="13"></td>');
document.write('<td width="96%" height="20">您当前的位置:');
tmpB=str.split('$');
for(j=0;j<tmpB.length;j++)
{
document.write(tmpB[j]);
if(j<tmpB.length-1)
{
document.write(" → ");
}
}
document.write('</td>');
document.write('</tr>');
document.write('</table></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td height="1" bgcolor="D9D9D9"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td height="5"></td>');
document.write('</tr>');
document.write('</table>');
}
//显示网页讨论form
function BBSForm(ID,Url)
{
var selectface=1;
document.write('<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#CCCCCC">');
document.write('<form name="frm_BBS_'+ID+'" method="post" action="../../Article_Comment_Post.aspx" onSubmit="return Validator.Validate(this,3)">');
document.write('<input name="ArticleID" type="hidden" value='+ID+'>');
document.write('<input name="Url" type="hidden" value='+Url+'>');
document.write('<tr>');
document.write('<td width="60" align="right" bgcolor="#FFFFFF">昵称</td>');
document.write('<td bgcolor="#FFFFFF"><input title="昵称不为空!" maxlength="20" name="Name" class="input" dataType="Require" msg="昵称不为空!"/></td>');
document.write('<tr>');
document.write('<td align="right" bgcolor="#FFFFFF">打分</td>');
document.write('<td bgcolor="#FFFFFF"><input type="radio" name="Score" value="0">0分 ');
document.write('<input type="radio" name="Score" value="50">50分 ');
document.write('<input type="radio" name="Score" value="60">60分 ');
document.write('<input type="radio" name="Score" value="70">70分 ');
document.write('<input type="radio" name="Score" value="80" checked>80分 ');
document.write('<input type="radio" name="Score" value="90">90分 ');
document.write('<input type="radio" name="Score" value="100">100分');
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align="right" bgcolor="#FFFFFF">心情</td>');
document.write('<td bgcolor="#FFFFFF">');
for(i=1;i<=10;i++)
{
if(i==selectface)
{
document.write('<input value="'+i+'" name="faceID" type="radio" checked><img src="../../Images/icon/'+i+'.gif" height="15" width="15"> ');
}
else
{
document.write('<input value="'+i+'" name="faceID" type="radio"><img src="../../Images/icon/'+i+'.gif" height="15" width="15"> ');
}
}
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align="right" bgcolor="#FFFFFF">评论内容</td>');
document.write('<td bgcolor="#FFFFFF"><textarea class="input" title="内容不为空!" name="content" rows="8" cols="48" dataType="Require" msg="内容不为空!"></textarea>');
editor_generate('content');
document.write('</td>');
document.write('</tr>');
document.write('<TR >');
document.write('<TD bgColor="#FFFFFF" align="right">验证码:</TD>');
document.write('<TD bgcolor="#FFFFFF">');
document.write('<input name="tbxPasscode" type="text" maxlength="4" size="4" id="tbxPasscode" class="input" dataType="Require" msg="验证码不为空" style="width:60px;" /> ');
document.write('<img src="../../Gif.aspx" width="50" height="18" border="0" align="absmiddle" />');
document.write('');
document.write('</TD>');
document.write('</TR>');
document.write('<Tr><Td bgcolor="#FFFFFF"></td>');
document.write('<Td bgcolor="#FFFFFF"><input name="submit" type="submit" value="我要发表" class="button1" /></td></tr>');
document.write('</form>');
document.write('</table>');
}
//动画新闻
function flashNews(focus_width,focus_height,text_height,swf_height,f_pics,f_links,f_texts)
{
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">');
document.write('<param name="movie" value="images/pixviewer.swf">');
document.write('<param name="quality" value="high">');
document.write('<param name="bgcolor" value="#ffffff">');
document.write('<param name="menu" value="false">');
document.write('<param name="wmode" value="opaque">');
document.write('<param name="FlashVars" value="pics='+f_pics+'&links='+f_links+'&texts='+f_texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="images/pixviewer.swf" wmode="opaque" FlashVars="pics='+f_pics+'&links='+f_links+'&texts='+f_texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#ffffff" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -