📄 smallpic.vbs
字号:
dim lcountmx_sp
lcountmx_sp = 0
function dodel_sp(l)
if MsgBox("您确定要删除吗?",1,"操作提示")=1 then
dim Str
execute("Str = document.editor.sp"&Cstr(l)&".value")
If Str<>"" Then
document.editor.attach.value=document.editor.attach.value &","& Str
End if
tab_sp.deleteRow document.getElementById("tr_sp" & l).rowindex
add_sp
end if
end function
function add_sp()
lcountmx_sp = lcountmx_sp+1
dim oRow,oCell,ii
dim sss
set oRow=tab_sp.insertRow
orow.id="tr_sp" & lcountmx_sp
set ocell=orow.insertcell
ocell.classname="ListCellRow"
sss="<input type=file name=sp"&lcountmx_sp&" style='width:340px'>"
sss = sss & "<input type=hidden name=sp"& lcountmx_sp &" value=''>"
ocell.innerhtml= sss
end function
function add_spvalue(AttachUrlValue,AttachValue)
lcountmx_sp = lcountmx_sp+1
dim oRow,oCell,ii
dim sss
set oRow=tab_sp.insertRow
orow.id="tr_sp" & lcountmx_sp
set ocell=orow.insertcell
ocell.classname="ListCellRow"
ocell.width="50"
sss="<input type=hidden name=sp[] value="&AttachValue&">"&AttachUrlValue
sss=sss & " <button onclick=vbscript:dodel_sp(" & lcountmx_sp &") style=cursor:hand>-</button>"
sss = sss & "<input type=hidden name=sp"& lcountmx_sp &" value="&AttachValue&">"
ocell.innerhtml=sss
end function
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -