📄 replyjs.js
字号:
var msg = '您还没有登陆,目前只能以游客身份发表评论!';function comment(){if(document.all.message.value==msg||document.all.message.value.length==0){ alert('请填写内容!'); return false;}document.frmComment.action = "http://article.pchome.net/scripts/comment.php?action=add";document.frmComment.submit();}function ctlent(obj){ if((event.ctrlKey && window.event.keyCode == 13) || (event.altKey && window.event.keyCode == 83)) { comment(); } }function comment_quote(id){ comment_clear(); document.frmComment.message.focus(); document.frmComment.message.value+="[quote]"+id+"[/quote]\n"; document.frmComment.message.focus();}function comment_setDialog(URLStr) { window.showModelessDialog(URLStr,window,'dialogWidth:500px;dialogHeight:250px;status:no;scroll:no;help:no;');}function comment_report(userid,commentid,articleid){ window.open("http://game.pchome.net/scripts/report.php?userid="+userid+"&commentid="+commentid+"&articleid="+articleid,"","height=250,width=500,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,status=no,location=no");}function comment_clear(){ if (document.frmComment.message.value == msg){ document.frmComment.message.value = ""; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -