足球游戏_中国足彩网¥体育资讯$

仿163注册提示
来源:易贤网 阅读:516 次 日期:2016-06-17 09:42:17
温馨提示:易贤网小编为您整理了“仿163注册提示”,方便广大网友查阅!

<html>

<head>

<title>仿163注册提示显示-网站制作学习网</title>

<script language=javascript>

var forasp = new object;

forasp.f = function(obj,h)//obj是检测的text文本框,h是自定义要显示提示层距顶部的高度差,可以自行调节。

{var t = document.getelementbyid(forasp_cn);

t.style.top = 12 + h +px;

t.innerhtml=obj.title;//将显示的title放到层里面

t.style.display=;

}

forasp.cl = function(obj)

{

var t = document.getelementbyid(forasp_cn);

if (obj.value.replace(/[^\x00-\xff]/g,**).length > obj.l);//将中文替换为两个字符

{alert(obj.title+长度过长!);obj.value=;obj.focus();}

t.style.display=none;

}

</script>

</head>

<body>

<p><input type=text size = 25 onfocus=forasp.f(this,0); onblur=forasp.cl(this) l=10 title=请输入用户名><br><!--l表示内容字符的长度,title是显示的内容-->

<input type=text size = 25 onfocus=forasp.f(this,22);  onblur=forasp.cl(this) l=10 title=网站制作学习网><br>

<input type=text size = 25 onfocus=forasp.f(this,45);  onblur=forasp.cl(this) l=10 title=要求的宽><br>

<input type=text size = 25 onfocus=forasp.f(this,68);  onblur=forasp.cl(this) l=10 title=要求的高><br>

<input type=text size = 25 onfocus=forasp.f(this,91);  onblur=forasp.cl(this) l=10 title=要求的长度><br></p><br>

<div id=forasp_cn style=border: 3px solid rgb(127, 157, 185); padding: 1px 1px 1px 1px; position: absolute; z-index: 999; background-color: rgb(242, 242, 242);  height: 18px; top: 270px; left: 200px;display:none; >这里是隐藏的一个层,主要用来显示提示内容</div>

</body>

</html>

中国足彩网信息请查看脚本栏目
下一篇:获得选中文本
易贤网手机网站地址:仿163注册提示
由于各方面情况的不断调整与变化,易贤网提供的所有考试信息和咨询回复仅供参考,敬请考生以权威部门公布的正式信息和咨询为准!
关于我们 | 联系我们 | 人才招聘 | 网站声明 | 网站帮助 | 非正式的简要咨询 | 简要咨询须知 | 加入群交流 | 手机站点 | 投诉建议
工业和信息化部备案号:滇ICP备2023014141号-1 足球游戏_中国足彩网¥体育资讯$ 滇公网安备53010202001879号 人力资源服务许可证:(云)人服证字(2023)第0102001523号
云南网警备案专用图标
联系电话:0871-65317125(9:00—18:00) 获取招聘考试信息及咨询关注公众号:hfpxwx
咨询QQ:526150442(9:00—18:00)版权所有:易贤网
云南网警报警专用图标