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>
解决方案 »
- 超简单问题,送分
- window.Option.create 存在兼容性吗
- 为什么图片不能重叠?大家帮忙改下
- jquery 怎样取得html,load后的对象?
- 不明白
- javascript中字符串匹配问题
- 请教,如何用CSS或者JS方式把列表分段?
- 大家给一个loading页面加载的示例吧,简单点的好像是没加载完之前先显示一个div,加载完后把这个div隐藏掉,是这样吧,但我还不会啊,帮我一把
- 概念小问题,分数多多~~~~~~(这样应该有人回答了吧,:))
- <INPUT TYPE="FILE" NAME="FILE1" SIZE="50">,请问如何用js判断浏览选中的文件是.doc文件
- 求教调用桌面快捷方式的方法
- 如何获得“图片随意移动”特效中的图片坐标??在线等,马上结帖!!
<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>