MyException - 我的异常网
当前位置:我的异常网» Java Web开发 » 怎么实现这个功能啊

怎么实现这个功能啊(3)

www.MyException.Cn  网友分享于:2013-12-16  浏览:10次

}
function fileid7()
{
attach.innerHTML = '&nbsp;&nbsp; <span style= "font-size:10pt; "> &nbsp; <input id= "fileid7 " type= "file " name= "fileid7 " /> &nbsp; </span> <span class= "l " onclick= "javascript:delattachment(this); " style= "font-size:10pt; "> 删除 </span> ';
}
function fileid8()
{
attach.innerHTML = '&nbsp;&nbsp; <span style= "font-size:10pt; "> &nbsp; <input id= "fileid8 " type= "file " name= "fileid8 " /> &nbsp; </span> <span class= "l " onclick= "javascript:delattachment(this); " style= "font-size:10pt; "> 删除 </span> ';
}
function fileid9()
{
attach.innerHTML = '&nbsp;&nbsp; <span style= "font-size:10pt; "> &nbsp; <input id= "fileid9 " type= "file " name= "fileid9 " /> &nbsp; </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>

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有