2012年9月12日
摘要: html{*overflow:auto;_overflow-y:scroll;}body{cursor:default;-webkit-text-size-adjust:none;font-size:12px;font-family:Arial;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{padding:0;margin:0;}table{border-collapse:collapse;border-spaci 阅读全文
posted @ 2012-09-12 09:55 somesayss 阅读(200) 评论(0) 推荐(0) 编辑
  2012年9月1日
摘要: URL : http://www.html5china.com/js/jsbase/20111124_2923.html 鼠标滚轮URL: http://www.qianduan.net/zen-coding-for-dreamweaver-plug-in-tutorial.html zen coding 阅读全文
posted @ 2012-09-01 09:48 somesayss 阅读(158) 评论(0) 推荐(0) 编辑
  2012年8月27日
摘要: 判断NaNisNaN(x)停止页面的加载window.stop ? window.stop() : document.execCommand("Stop");代替alert()console.log();获取浏览器的宽高function winHeight(){return window.innerHeight || document.documentElement.clientHeight; }function winWidth(){ return window.innerWidth || document.documentElement.clientWidth;}获取浏 阅读全文
posted @ 2012-08-27 15:59 somesayss 阅读(348) 评论(0) 推荐(0) 编辑
  2012年8月23日
摘要: $.ajax({ url:"http://hq.sinajs.cn/list=s_sz399001", dataType:"script", cache:"false", type:"GET", success:function(a){ alert(hq_str_s_sz399001) } }); 阅读全文
posted @ 2012-08-23 16:58 somesayss 阅读(1048) 评论(0) 推荐(0) 编辑
  2012年8月22日
摘要: 深成指: <script type="text/javascript" src="http://hq.sinajs.cn/list=sz399001" charset="gb2312"></script>上证指: <script type="text/javascript" src="http://hq.sinajs.cn/list=sh000001" charset="gb2312"></script>道琼斯: <scr 阅读全文
posted @ 2012-08-22 11:25 somesayss 阅读(2840) 评论(0) 推荐(0) 编辑
  2012年8月10日
摘要: NO.1:数字. var str = "124a56" var rex = /^\d+$/; var result = rex.test(str); document.write(result);NO.2:身份证 var rex = /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{4}$/;NO.3:首字符必须为英文字母 长度6-20位 仅限英文 数字 下划线 var rex = /^[a-zA-Z]\w{5,19}$/; var rex = /^[a-zA-Z][a-zA-Z0-9_]{5,19}$ 阅读全文
posted @ 2012-08-10 22:14 somesayss 阅读(1181) 评论(0) 推荐(0) 编辑
摘要: NO.1: 创建一个无边框的ifream. <iframe src="ifream.html" frameborder="0" width="300" height="150" id="myframe1">NO.2:设置ifream的背景. 在ifream.html里面写样式设置body的背景.NO.3:使ifream的高度自适应. 在ifream.html内定义一个高度为250的DIV. .main{background:#F00;height:200px} <div id= 阅读全文
posted @ 2012-08-10 22:05 somesayss 阅读(634) 评论(0) 推荐(0) 编辑
  2012年7月31日
摘要: IE6: (!!window.ActiveXObject&&!window.XMLHttpRequest);IE6&&IE7: (!+"\v1" && !document.querySelector) || (!document.querySelector&&!window.Element);IE6&&IE7&&IE8: (!+"\v1");IE: (!!window.attachEvent && !window.opera) 阅读全文
posted @ 2012-07-31 14:17 somesayss 阅读(160) 评论(0) 推荐(0) 编辑
  2012年7月25日
摘要: /*jq*/var cascade_JQ = function(a){ this.option = a; this.base(); this.resize(); }cascade_JQ.prototype = { base:function(){ this.begin(); }, begin:function(){ var main = $(this.option.box); var mainli = main.find(this.option.node); var blank = this.option.blank; var index = this.index; var nu... 阅读全文
posted @ 2012-07-25 22:14 somesayss 阅读(1320) 评论(0) 推荐(0) 编辑
  2012年7月18日
摘要: /*JQ*/var arr = { "选着省":{ "选着市":["选着区"] }, "浙江省":{ "杭州市":["上城区","下城区","西湖区","拱墅区","江干区","滨江区"], "宁波市":["海曙","江东","江北","鄞州","镇海",&q 阅读全文
posted @ 2012-07-18 20:45 somesayss 阅读(1614) 评论(0) 推荐(0) 编辑