复制代码 代码如下:
function createDlg(dlgID,title,w,h,isSetPos){
var l,i,p,dlg
if($(dlgID)!=null)
$(dlgID).outerHTML=""
$sys.dlgDepth=($sys.dlgDepth||9000)
l="<div id='"+dlgID+"' style=position:absolute;z-index:"+$sys.dlgDepth+";left:"+(document.body.clientWidth/2-w/2)+";top:"+(document.body.clientHeight/2-h/2+document.body.scrollTop)+";width:"+w+";height:"+h+">"
l+="<table onmousedown=focuDlg(this.parentNode) cellpadding=0 cellspacing=0 width=100% height=100% style=position:absolute>"
for(i=0;i<3;i++){
p=i==0?"t":(i==1?"m":"b")
l+="<tr "+(i!=1?"height=1":"")+"><td><table cellpadding=0 cellspacing=0 width=100% "+(i==1?"height=100%":"")+"><tr>"
l+="<td width=1 style='"+getPngBg("images/panel/dlg_"+p+"_l.png")+"'><img src='images/panel/dlg_"+p+"_l.png' style=visibility:hidden></td>"
l+="<td style='"+getPngBg("images/panel/dlg_"+p+"_c.png")+"'><img src='images/panel/dlg_"+p+"_c.png' style=visibility:hidden></td>"
l+="<td width=1 style='"+getPngBg("images/panel/dlg_"+p+"_r.png")+"'><img src='images/panel/dlg_"+p+"_r.png' style=visibility:hidden></td>"
l+="</tr></table></td></tr>"
}
l+="</table>"
l+="<div align=center style=position:absolute;top:5;width:100%;color:white>"+(title||"")+" </div>"
l+="<input onmousedown=\"startDrag('"+dlgID+"',event)\" readOnly style=cursor:default;position:absolute;width:100%;height:22;border:0;background:url(images/blank.gif)>"
l+="<span onclick=\"oDel('"+dlgID+"')\" type='button' pos='"+(w-27)+",5,14,14' bg='images/panel/btdlgclose.gif'></span>"
l+="</div>"
insHtm(document.body,l)
dlg=$(dlgID)
focuDlg(dlg)
dlg.onselectstart=dlg.onmousedown=dlg.ondragstart=dlg.oncontextmenu=function(e){
var ee
e=e||event
ee=e.srcElement
if(isSetPos&&e.type=="mousedown"&&isIE)
window.clipboardData.setData("text",($x(ee,this)+e.offsetX)+","+($y(ee,this)+e.offsetY))
if(ee.tagName!="INPUT"&&ee.tagName!="TEXTAREA")
return false
if(ee.readOnly==true)
return false
}
}
function focuDlg(dlg){
dlg=$(dlg)
if($sys.currentDlg==dlg)
return
$sys.dlgDepth++
dlg.style.zIndex=$sys.dlgDepth
$sys.currentDlg=dlg
}
function fmCheck(fm){
var ar=[],$caption,$checkRule,$value,sTip,i,j,$n
ar.push(["notnull","$value==''","$caption不能为空!"])
ar.push(["uid","!/^[_a-zA-Z0-9\\u4E00-\\u9FA5\\uF900-\\uFA2D]{2,16}$/.test($value)","昵称只能由2到16个汉字、英文、数字或下划线组成!"])
ar.push(["pwd","!/^[_a-zA-Z0-9]{6,12}$/.test($value)","密码只能由6到12个英文、数字或下划线组成!"])
ar.push(["cpwd","fm[i].value!=fm[i-1].value","密码确认不一致!"])
ar.push(["eml","!/^([\\w-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([\\w-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$/.test($value)","邮箱格式不正确!"])
ar.push(["max-","$n=/max\\-(\\d+)/.exec($checkRule)[1]*1;$value.length>$n","$caption最多只能输入$n个字符!"])
ar.push(["min-","$n=/min\\-(\\d+)/.exec($checkRule)[1]*1;$value.length<$n","$caption最少必须输入$n个字符!"])
for(i=0;i<fm.length;i++){
$caption=fm[i].getAttribute("caption")
$checkRule=fm[i].getAttribute("checkRule")
if($checkRule==null)
continue
$value=fm[i].value=fm[i].value.trim()
for(j=0;j<ar.length;j++){
if(new RegExp("\\b"+ar[j][0]+"\\b").test($checkRule)&&eval(ar[j][1])){
sTip=fm[i].getAttribute("tip_"+ar[j][0])
if(sTip==null)
sTip=ar[j][2].replace(/\$\w+/g,function($0){return eval($0)})
alert(sTip)
oFocu(fm[i])
return false
}
}
}
return true
}
function editor_paste(w,html){
if(document.all)
w.document.selection.createRange().pasteHTML(html)
else{
var ol,i,r=w.document.createRange()
w.document.execCommand("insertimage",false,"http://temp_obj/")
ol=w.document.getElementsByTagName("img")
for(i=0;i<ol.length;i++){
if(ol[i].src=="http://temp_obj/"){
r.setStartBefore(ol[i])
ol[i].parentNode.insertBefore(r.createContextualFragment(html),ol[i])
ol[i].parentNode.removeChild(ol[i])
}
}
}
}
function editor_getVal(win){
var sContent
try{
sContent=win.document.body.innerHTML
sContent=sContent.replace(/<script[^>]*>[^>]*>/gi,"")
}
catch(e){
sContent=""
}
sContent=sContent.trim()
return sContent
}
function createDlg(dlgID,title,w,h,isSetPos){
var l,i,p,dlg
if($(dlgID)!=null)
$(dlgID).outerHTML=""
$sys.dlgDepth=($sys.dlgDepth||9000)
l="<div id='"+dlgID+"' style=position:absolute;z-index:"+$sys.dlgDepth+";left:"+(document.body.clientWidth/2-w/2)+";top:"+(document.body.clientHeight/2-h/2+document.body.scrollTop)+";width:"+w+";height:"+h+">"
l+="<table onmousedown=focuDlg(this.parentNode) cellpadding=0 cellspacing=0 width=100% height=100% style=position:absolute>"
for(i=0;i<3;i++){
p=i==0?"t":(i==1?"m":"b")
l+="<tr "+(i!=1?"height=1":"")+"><td><table cellpadding=0 cellspacing=0 width=100% "+(i==1?"height=100%":"")+"><tr>"
l+="<td width=1 style='"+getPngBg("images/panel/dlg_"+p+"_l.png")+"'><img src='images/panel/dlg_"+p+"_l.png' style=visibility:hidden></td>"
l+="<td style='"+getPngBg("images/panel/dlg_"+p+"_c.png")+"'><img src='images/panel/dlg_"+p+"_c.png' style=visibility:hidden></td>"
l+="<td width=1 style='"+getPngBg("images/panel/dlg_"+p+"_r.png")+"'><img src='images/panel/dlg_"+p+"_r.png' style=visibility:hidden></td>"
l+="</tr></table></td></tr>"
}
l+="</table>"
l+="<div align=center style=position:absolute;top:5;width:100%;color:white>"+(title||"")+" </div>"
l+="<input onmousedown=\"startDrag('"+dlgID+"',event)\" readOnly style=cursor:default;position:absolute;width:100%;height:22;border:0;background:url(images/blank.gif)>"
l+="<span onclick=\"oDel('"+dlgID+"')\" type='button' pos='"+(w-27)+",5,14,14' bg='images/panel/btdlgclose.gif'></span>"
l+="</div>"
insHtm(document.body,l)
dlg=$(dlgID)
focuDlg(dlg)
dlg.onselectstart=dlg.onmousedown=dlg.ondragstart=dlg.oncontextmenu=function(e){
var ee
e=e||event
ee=e.srcElement
if(isSetPos&&e.type=="mousedown"&&isIE)
window.clipboardData.setData("text",($x(ee,this)+e.offsetX)+","+($y(ee,this)+e.offsetY))
if(ee.tagName!="INPUT"&&ee.tagName!="TEXTAREA")
return false
if(ee.readOnly==true)
return false
}
}
function focuDlg(dlg){
dlg=$(dlg)
if($sys.currentDlg==dlg)
return
$sys.dlgDepth++
dlg.style.zIndex=$sys.dlgDepth
$sys.currentDlg=dlg
}
function fmCheck(fm){
var ar=[],$caption,$checkRule,$value,sTip,i,j,$n
ar.push(["notnull","$value==''","$caption不能为空!"])
ar.push(["uid","!/^[_a-zA-Z0-9\\u4E00-\\u9FA5\\uF900-\\uFA2D]{2,16}$/.test($value)","昵称只能由2到16个汉字、英文、数字或下划线组成!"])
ar.push(["pwd","!/^[_a-zA-Z0-9]{6,12}$/.test($value)","密码只能由6到12个英文、数字或下划线组成!"])
ar.push(["cpwd","fm[i].value!=fm[i-1].value","密码确认不一致!"])
ar.push(["eml","!/^([\\w-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([\\w-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$/.test($value)","邮箱格式不正确!"])
ar.push(["max-","$n=/max\\-(\\d+)/.exec($checkRule)[1]*1;$value.length>$n","$caption最多只能输入$n个字符!"])
ar.push(["min-","$n=/min\\-(\\d+)/.exec($checkRule)[1]*1;$value.length<$n","$caption最少必须输入$n个字符!"])
for(i=0;i<fm.length;i++){
$caption=fm[i].getAttribute("caption")
$checkRule=fm[i].getAttribute("checkRule")
if($checkRule==null)
continue
$value=fm[i].value=fm[i].value.trim()
for(j=0;j<ar.length;j++){
if(new RegExp("\\b"+ar[j][0]+"\\b").test($checkRule)&&eval(ar[j][1])){
sTip=fm[i].getAttribute("tip_"+ar[j][0])
if(sTip==null)
sTip=ar[j][2].replace(/\$\w+/g,function($0){return eval($0)})
alert(sTip)
oFocu(fm[i])
return false
}
}
}
return true
}
function editor_paste(w,html){
if(document.all)
w.document.selection.createRange().pasteHTML(html)
else{
var ol,i,r=w.document.createRange()
w.document.execCommand("insertimage",false,"http://temp_obj/")
ol=w.document.getElementsByTagName("img")
for(i=0;i<ol.length;i++){
if(ol[i].src=="http://temp_obj/"){
r.setStartBefore(ol[i])
ol[i].parentNode.insertBefore(r.createContextualFragment(html),ol[i])
ol[i].parentNode.removeChild(ol[i])
}
}
}
}
function editor_getVal(win){
var sContent
try{
sContent=win.document.body.innerHTML
sContent=sContent.replace(/<script[^>]*>[^>]*>/gi,"")
}
catch(e){
sContent=""
}
sContent=sContent.trim()
return sContent
}
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
暂无评论...
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。
更新日志
2024年11月30日
2024年11月30日
- 窦唯《八段锦》(上海音像)[WAV+CUE]
- DJ动力100%《堵在路上的解闷high曲》[FLAC/MP3][948M]
- 节奏炸裂《抖音最嗨 DJ 舞曲大合集》[FLAC/MP3][2G]
- 群星《百代No.1精选》[WAV+CUE][965M]
- 费玉清《中华民GUO》海山专辑[正版原抓WAV+CUE]
- Brahms-PianoConcertoNo.2(KarlBohm-VPO,WilhelmBackhaus-piano,1967)[SACD-WAV]
- ConcertoScirocco-SirensSoldiers.SongswithoutWordsfromtheItalianSeicento(2024)[24B
- 群星《天赐的声音第五季 第12期》[320K/MP3][339.36MB]
- 群星《天赐的声音第五季 第12期》[FLAC/分轨][1.64G]
- 颜人中《这是一张情歌专辑》[320K/MP3][48.9MB]
- Mozart-ViolinConcertosNos.34-FrancescaDego,RoyalScottishNationalOrchestra,SirR
- Mendelssohn,Dvorak-ViolinConcertos-Menuhin,Enescu(2010)FLAC+CUE
- 黑鸭子2006-樱桃女声[首版][WAV+CUE]
- 颜人中《这是一张情歌专辑》[FLAC/分轨][258.76MB]
- 华晨宇《华晨宇日出演唱会特辑》[320K/MP3][101.77MB]