![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
文章平均质量分 84
yuexiaowen02
这个作者很懒,什么都没留下…
展开
-
js做的树
javascript-1*{padding:0px;margin:0px;}.cd{ width:200px;}.cd_title{ cursor:hand; width:100%;}.cd_main{ margin-left:30px; width:100%; filter:blendTrans(Duration=0.5);}u...原创 2009-03-10 15:42:23 · 100 阅读 · 0 评论 -
js 做货币验证
function isMoney(obj){ var regu="/^(\d{1,3},?)+(\.\d+)?$/"; var re=new RegExp(regu); if(re.test(obj)){ return true; }else{ return true; }} js关闭浏览器 (不弹出提示框)关键字: window.close javascript...2009-10-13 12:02:01 · 298 阅读 · 0 评论 -
过滤特殊字符
public static String StringFilter(String str) throws PatternSyntaxException { // 只允许字母和数字 // String regEx = "[^a-zA-Z0-9]"; ...2009-11-04 10:12:02 · 80 阅读 · 0 评论 -
ie8不认识window.confirm
在ie8下面为什么不认识alert,confirm2009-11-12 11:43:20 · 225 阅读 · 0 评论 -
js最常用的55个经典例子
1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键 <table border oncontextmenu=return(false)> <td>no </table> 可用于Table 2. <body onselectstart="return false"> 取...原创 2009-12-17 09:03:29 · 775 阅读 · 0 评论 -
IE不确认关闭窗口
window.opener=null;window.close();在IE6正常,在IE7/IE8下就弹出要关闭窗口前的提示。解决方法如下: <a href="#" onclick="window.opener=null;window.open('','_self');window.close();">不确认关闭 </a>...原创 2010-01-12 14:22:37 · 74 阅读 · 0 评论 -
Javascript从父页面获取子页面的值
Javascript从父页面获取子页面的值2010-10-20 11:56之前还真没做过类似的东西,,top页面获取子页面的document。。在百度搜了下即找到这个东东,还好,能用。主要就是使用contentWindow方法,获取子页面的所有document,再做处理。原文地址: http://student.csdn.net/space.php?uid=40568&d...原创 2011-04-30 08:48:14 · 873 阅读 · 0 评论