}
function fileid7()
{
attach.innerHTML = ' <span style= "font-size:10pt; "> <input id= "fileid7 " type= "file " name= "fileid7 " /> </span> <span class= "l " onclick= "javascript:delattachment(this); " style= "font-size:10pt; "> 删除 </span> ';
}
function fileid8()
{
attach.innerHTML = ' <span style= "font-size:10pt; "> <input id= "fileid8 " type= "file " name= "fileid8 " /> </span> <span class= "l " onclick= "javascript:delattachment(this); " style= "font-size:10pt; "> 删除 </span> ';
}
function fileid9()
{
attach.innerHTML = ' <span style= "font-size:10pt; "> <input id= "fileid9 " type= "file " name= "fileid9 " /> </span> <span class= "l " onclick= "javascript:delattachment(this); " style= "font-size:10pt; "> 删除 </span> ';
}
function delattachment(me)
{
var attach = me.parentNode;
var att = attach.parentNode;
if(att.id != 'att ')
return;
att.removeChild(attach);
VT_attachments -- ;
if(VT_attachments == 0)
{
Ohidden(gObId( 'aa '));
Oshow(gObId( 'ia '));
}else if(VT_attachments < MAX_attachments)
Oshow(gObId( 'aa '));
}
//Elements Operations
function Oshow(e)
{
e.style.display = " ";
}
function Ohidden(e)
{
e.style.display = "none ";
}
function gObId(id)
{
try{
return document.getElementById(id);
}
catch(e){
return null;
}
}
function isOshow(e)
{
return !(e.style.display == 'none ');
}
//-->
</script>
用法:
<script type= "text/javascript "> Attachment(10); </script>