CSS样式上传域的美化
来源:互联网 发布:薛之谦淘宝店铺名字 编辑:程序博客网 时间:2024/06/09 17:10
<style>
*{font-size:12px;cursor:default}
.hand{cursor:hand;cursor:pointer}
</style>
<body>
<form name=fm1>
<div id=bxAttList>
<div id=bxAtt onmouseover="$('bxAtt1').style.textDecoration='underline'" onmouseout="$('bxAtt1').style.textDecoration=''" style=float:left;width:60>
<span id=bxAtt1 style='position:absolute;padding-top:3;cursor:hand;font-family:宋体'>@添加附件</span>
<span id=bxAtt2 onmouseover=this.scrollLeft=100 style=position:absolute;width:60;overflow:hidden;filter:alpha(opacity=0);-moz-opacity:0></span>
</div>
</div>
</form>
</body>
<script>
file_create()
function file_create(){
$("bxAtt2").innerHTML="<input onchange=file_change(this) hidefocus type=file name=file1 size=1 class=hand>"
}
function file_change(tx){
var sName,o
sName=tx.value.replace(////g,"/").replace(/(.*//)(.*)/,"$2")
o=document.createElement("nobr")
o.style.cssText="float:left;margin-right:6;padding-top:3;color:darkgreen"
o.innerHTML="□"+sName+"<font onclick=$('bxAttList').removeChild(this.parentNode);file_repos() class=hand style=color:red;font-weight:bold>"+unescape("×")+"</font>"
tx.style.display="none"
o.appendChild(tx)
$("bxAttList").insertBefore(o,$("bxAtt"))
file_repos()
file_create()
}
function file_repos(){
$("bxAttList").appendChild($("bxAtt"))
}
function $(obj){
return typeof(obj)=="object"?obj:document.getElementById(obj)
}
</script>
*{font-size:12px;cursor:default}
.hand{cursor:hand;cursor:pointer}
</style>
<body>
<form name=fm1>
<div id=bxAttList>
<div id=bxAtt onmouseover="$('bxAtt1').style.textDecoration='underline'" onmouseout="$('bxAtt1').style.textDecoration=''" style=float:left;width:60>
<span id=bxAtt1 style='position:absolute;padding-top:3;cursor:hand;font-family:宋体'>@添加附件</span>
<span id=bxAtt2 onmouseover=this.scrollLeft=100 style=position:absolute;width:60;overflow:hidden;filter:alpha(opacity=0);-moz-opacity:0></span>
</div>
</div>
</form>
</body>
<script>
file_create()
function file_create(){
$("bxAtt2").innerHTML="<input onchange=file_change(this) hidefocus type=file name=file1 size=1 class=hand>"
}
function file_change(tx){
var sName,o
sName=tx.value.replace(////g,"/").replace(/(.*//)(.*)/,"$2")
o=document.createElement("nobr")
o.style.cssText="float:left;margin-right:6;padding-top:3;color:darkgreen"
o.innerHTML="□"+sName+"<font onclick=$('bxAttList').removeChild(this.parentNode);file_repos() class=hand style=color:red;font-weight:bold>"+unescape("×")+"</font>"
tx.style.display="none"
o.appendChild(tx)
$("bxAttList").insertBefore(o,$("bxAtt"))
file_repos()
file_create()
}
function file_repos(){
$("bxAttList").appendChild($("bxAtt"))
}
function $(obj){
return typeof(obj)=="object"?obj:document.getElementById(obj)
}
</script>
- CSS样式上传域的美化
- 文件上传域美化CSS
- 一张图片的CSS样式美化
- css美化Div边框的样式实例
- css美化Div边框的样式实例
- css美化Div边框的样式实例
- css input[type=file] 样式美化,input上传按钮美化
- css input[type=file] 样式美化,input上传按钮美化
- css input[type=file] 样式美化,input上传按钮美化
- css input[type=file] 样式美化,input上传按钮美化
- css input[type=file] 样式美化,input上传按钮美化
- css input[type=file] 样式美化,input上传按钮美化
- css input[type=file] 样式美化,input上传按钮美化
- css input[type=file] 样式美化,input上传按钮美化
- css input[type=file] 样式美化,input上传按钮美化
- css点击上传美化
- css input[type=file] 样式美化(input上传文件样式 )
- 文件上传框样式美化
- 需求分析的20条法则
- Hibernate条件查询
- 如何制作一張讓TOM相冊認可的數字照片
- javaScript通用数据类型校验
- 关于Servlet、Jsp中的多国语言显示
- CSS样式上传域的美化
- 计算机软件质量保证计划规范
- JSP技术生成动态web页面
- .net remoting范例
- 您可能不知道的Asp.Net2.0技巧(转载vs2005.com)
- 法师aoe
- Jsp与Mysql连接探究查错
- 星座-测测你的嘴贱指数到底有多高?
- 深入剖析JSP和Servlet对中文的处理