function user_login(){
var l
createDlg("dlgLogin","用户登录",260,170)
l="
"
insHtm("dlgLogin",l)
oFocu(document.fmLogin.FUid)
$('dlgLogin').clickOk=function(){
document.fmLogin.btSubmit.click()
}
document.fmLogin.onload=function(xml){
location.reload(true)
}
}
function user_reg(){
var l
createDlg("dlgReg","用户注册",320,260)
l="
"
insHtm("dlgReg",l)
oFocu(document.fmReg.FUid)
$('dlgReg').clickOk=function(){
document.fmReg.btSubmit.click()
}
document.fmReg.onload=function(xml){
oDel('dlgReg')
location.reload(true)
}
}
function user_logout(){
loadXml("handle_user.asp?cmd=logout",function(xml){
location.reload(true)
})
}
function editor_setLink(win){
var v
win.focus()
if(document.all)
v=window.showModalDialog("lib/input.htm","请输入超链接路径|http://","dialogwidth:354px;dialogheight:152px;status:no;help:no")
else
v=prompt("请输入超链接路径","http://")
if(v==null)
return
if(v!=""&&v!="http://")
win.document.execCommand("createlink",false,v)
else
win.document.execCommand("unlink",false,null)
}
function editor_insImg(win){
var v
win.focus()
if(document.all)
v=window.showModalDialog("lib/input.htm","请输入图片路径|http://","dialogwidth:354px;dialogheight:152px;status:no;help:no")
else
v=prompt("请输入图片路径","http://")
if(v==null)
return
if(!/\.(gif|jpg)/i.test(v))
return
win.document.execCommand("insertimage",false,v)
}
function editor_insJs(win){
win.focus()
l="
"
l+="◇ 测试程序 - >> 运行下面的js
|
"
l+="
<script><br><br></script>
|
"
l+="
"
editor_paste(win,l)
}
function jsCode_run(ee){
var data,w
data=ee.parentNode.parentNode.nextSibling.innerText
w=window.open("", "_blank","")
w.document.write(data)
w.document.close()
if(/<script> w.location.reload(true) <BR>} <BR>function thread_save(tid){ <BR> var dlgID="dlgThread",dlg,fm,win,btImg,bxFile <BR> if(myName=="") <BR> return alert("您还没有登录,请先登录!") <BR> createDlg(dlgID,tid==null?"发布新贴":"修改贴子",640,480) <BR> l="<form name="+dlgID+"_fm method=post action='handle_thread.asp?cmd=thread_save'>" <BR> l+="<input type=hidden name=tid value='"+(tid||"")+"'>" <BR> l+="<input type=hidden name=FContent>" <BR> l+="<span style=position:absolute;left:18;top:35> 标题:<input name=FTitle caption='标题' checkRule='notnull/max-50' style=width:540>" <BR> l+="<span onclick=\"$('"+dlgID+"').clickOk()\" type=button pos='230,442,58,22' bg='images/panel/btYes.gif'>" <BR> l+="<span onclick=\"oDel('"+dlgID+"')\" type=button pos='320,442,58,22' bg='images/panel/btNo.gif'>" <BR> l+="<div style='position:absolute;left:67;top:65;width:540;height:350;overflow:hidden;border:2px inset'>" <BR> l+="<div style='height:21;border-bottom:1px solid #808080;background:#d4d0c8'></script>