Input.htm
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title></title>
<style>
input{behavior:url('Input.htc')}
</style>
</head><body>
<input type=text value="文本">
<input type=button value="按钮">
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title></title>
<style>
input{behavior:url('Input.htc')}
</style>
</head><body>
<input type=text value="文本">
<input type=button value="按钮">
</body></html>
解决方案 »
- js怎么动态取得多个div的值呢?
- 请教用js做类似confirm()函数的层
- 多重弹出窗口位置问题? js
- 正则表达式 /(.*?)\s*$/ 中的 .*? 是惰性量词吗?
- 如何在页面中对分区进行动态定位
- 在一个页面里面许多个checkbox,有些classname一样,有些不一样,怎样获取classname为'cb'且已经被打钩的checkbox
- 太笨了,这该怎么弄!!!
- JavaScript调试工具
- 怎样利用javascript控制刷新?
- 微软已经不支持java,那javascipt是否还支持?
- 求教调用桌面快捷方式的方法
- 如何获得“图片随意移动”特效中的图片坐标??在线等,马上结帖!!
<script language=javascript>
switch(type)
{
case 'text':
case 'password':
style.border="1px solid #000000";
style.backgroundColor="#FFFFFF";
style.height="18px";
style.font="normal 12px 宋体";
style.color="#000000";
break;
case 'submit':
case 'reset':
case 'button':
style.border="1px solid #000000";
style.backgroundColor="#CCCCCC";
style.height="18px";
style.font="normal 12px 宋体";
style.color="#000000";
break;
default:;
};
;
onmousedown=function()
{
style.color="#0000FF";
};
onmouseover=function()
{
style.color="#0000FF";
};
onmouseout=function()
{
if(type=="submit")
{style.color="#FF0000";}
else
{style.color="#000000";}
};
onkeydown=function()
{
window.confirm("OnKeyDown");
}
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title></title>
<script language=javascript>
switch(type){
case 'text':
case 'password':
style.border="1px solid #000000";
style.backgroundColor="#FFFFFF";
style.height="18px";
style.font="normal 12px 宋体";
style.color="#000000";
break;
case 'submit':
case 'reset':
case 'button':
style.border="1px solid #000000";
style.backgroundColor="#CCCCCC";
style.height="18px";
style.font="normal 12px 宋体";
style.color="#000000";
break;
default:;
};
onkeydown=function(){window.confirm("OnKeyDown");}
onmousedown=function(){style.color="#0000FF";};
onmouseover=function(){style.color="#0000FF";};
onmouseout=function(){
if(type=="submit"){style.color="#FF0000";}
else{style.color="#000000";}
};
</script>
</head>
<body>
<input type="text" value="文本">
<input type="button" value="按钮">
</body>
</html>