2006年4月27日

常用JavaScript小技巧

摘要: 1. 检查一段字符串是否全由数字组成 1<scriptlanguage="Javascript">2<!--3functioncheckNum(str)4{5returnstr.match(//D/)==null6}7alert(checkNum("1232142141"))8alert(checkNum("123214214a1"))9-->10</script&g... 阅读全文

posted @ 2006-04-27 13:37 客家浪子 阅读(230) 评论(0) 推荐(0) 编辑

input高级限制级用法

摘要: 1.取消按钮按下时的虚线框 在input里添加属性值 hideFocus 或者 HideFocus=true 2.只读文本框内容 在input里添加属性值 readonly 3.防止退后清空的TEXT文档(可把style内容做做为类引用) <INPUT style=behavior:url(#default#savehistory); type=text id=oPersistInput&g... 阅读全文

posted @ 2006-04-27 13:02 客家浪子 阅读(374) 评论(0) 推荐(0) 编辑

导航