随笔分类 -  javascript

js判断上传文件大小
该文被密码保护。
posted @ 2013-08-26 11:20 网宗 阅读(1) 评论(0) 推荐(0)
处理mouseover and mouseout 抖动问题
摘要:在IE6下,给元素绑定mouseover事件时,当元素的子元素之间有空隙,在鼠标滑过元素与子元素时,会触发mouseover事件,当出现抖动现象,可以使用mouseenter代替mouseover,即可使鼠标在元素内滑动时,不再触发mouseover事件,同样,要使用mouseleave代替mouseout事件. 阅读全文
posted @ 2013-08-12 08:56 网宗 阅读(1175) 评论(0) 推荐(0)
firefox无法window.close()的解决方法
摘要:windows.opener = null; //为了不出现弹窗windows.close(); //再关闭 阅读全文
posted @ 2013-01-11 15:08 网宗 阅读(155) 评论(0) 推荐(0)
jquery_simpleform_v3 表单验证插件(原创)
摘要:自写表单验证插件jquery_simpleform_v3插件发布了1.内置了一些常用的验证正则,只需要调用2.非常简单,比目前任何一个表单验证插件都来得简单3.可以自己写正则表达式,自定义4.免费的插件下载地址:http://www.phpcx.com/jquery_simpleform_v3.html我是在不知道在那里可以上传附件啊,抱歉啊,能告诉我么,这个博客真是悲剧的很呢 阅读全文
posted @ 2012-03-28 19:23 网宗 阅读(169) 评论(0) 推荐(0)
javascirpt学习(2)局部变量全局变量
摘要:<script language="javascript"> var b = 1;//全局变量 function fun(){ c = 2; //局部变量 }</script> 阅读全文
posted @ 2011-09-06 10:08 网宗 阅读(228) 评论(1) 推荐(0)
javascirpt学习(1)中9种类型分别是:
摘要:未定义(Undefined)空(NULL)布尔(boolean)字符串(string)数值(Number)对象(object)引用(reference)列表(list)完成(completion) 阅读全文
posted @ 2011-09-06 09:37 网宗 阅读(165) 评论(0) 推荐(0)
php + jquery+json for ie8的缓存处理
摘要:1 <script language="javascript">2 $("#php").load("php.php",{lev:$(this).attr("alt")});3 $.getJSON("php.php",function(json){ 4 $("#cont_img").html('<img src="'+json.sex+'" width="200" height="265 阅读全文
posted @ 2011-08-12 10:02 网宗 阅读(184) 评论(0) 推荐(0)
原创JS幻灯片效果,超少代码
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>哈哈</title> <style type="text/css"> .slider{ wid 阅读全文
posted @ 2011-08-10 10:37 网宗 阅读(285) 评论(0) 推荐(0)
getElementById取不到,为什么呢?
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>哈哈</title> <script type="text/javascript"> docu 阅读全文
posted @ 2011-08-10 08:49 网宗 阅读(509) 评论(2) 推荐(0)


糗乐网-糗事|乐事|天下事