旅途笔记

岂有豪情似旧时,花开花落两由之
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  html/js/css

摘要:Means "I don't know what the hell this is. Please save it as a file, preferably named picture.png". Means "This is a PNG image. Please save it as a fi 阅读全文

posted @ 2016-06-03 11:30 allonkwok 阅读(94) 评论(0) 推荐(0)

摘要:JS中常用的xpath特性 阅读全文

posted @ 2008-03-11 14:27 allonkwok 阅读(293) 评论(0) 推荐(0)

摘要:<script> var widths=282; var heights=164; var counts=6; img1=new Image ();img1.src='UploadFile/jscode/2007729214812897.jpg'; img2=new Image ();img2.sr 阅读全文

posted @ 2008-03-04 18:43 allonkwok 阅读(291) 评论(0) 推荐(0)

摘要:<style> #content,#intro{ font: 13px/25px; width: 200px; height: 40px; background: #eee; padding: 10px; border: 4px #ccc double; border-bottom:0; overf 阅读全文

posted @ 2008-03-04 18:41 allonkwok 阅读(587) 评论(0) 推荐(0)

摘要:object 返回包含的对象。  offscreenBuffering 设置或获取对象在对用户可见之前是否要先在屏幕外绘制。  offsetHeight 获取对象相对于版面或由父坐标 offsetParent 属性指定的父坐标的高度。  offsetLeft 获取对象相对于版面或由 offsetParent 属性指定的父坐标的计算左侧位置。  offsetParent 获取定义对象 offsetTop 和 offsetLeft 属性的容器对象的引用。  offsetTop 获取对象相对于版面或由 offsetTop 属性指定的父坐标的计算顶端位置。  offsetWidth 获取对象相对于版面或由父坐标 offsetParent 属性指定的父坐标的宽度。  offsetX 设置或获取鼠标指针位置相对于触发事件的对象的 x 坐标。  offsetY 设置或获取鼠标指针位置相对于触发事件的对象的 y 坐标。  onLine 获取表明系统是否处于全局脱机模式的值。  opener 设置或获取创 阅读全文

posted @ 2008-03-04 18:38 allonkwok 阅读(247) 评论(0) 推荐(0)

摘要:CSS 兼容要点:DOCTYPE 影响 CSS 处理 FF: div 设置 margin-left, margin-right 为 auto 时已经居中, IE 不行 FF: body 设置 text-align 时, div 需要设置 margin: auto(主要是 margin-left,margin-right) 方可居中 FF: 设置 padding 后, div 会增加 height 和 width, 但 IE 不会, 故需要用 !important 多设一个 height 和 width FF: 支持 !important, IE 则忽略, 可用 !important 为 FF 特别设置样式 阅读全文

posted @ 2008-03-04 18:24 allonkwok 阅读(809) 评论(0) 推荐(0)

摘要:javascript 获取URL参数 阅读全文

posted @ 2007-05-24 15:31 allonkwok 阅读(335) 评论(0) 推荐(0)

摘要:/** * 功能:显示提示窗口 * 作者:申楠 qq:38371354 email:amushen1@yahoo.com.cn http;//amushen.cnblogs.com * 日期:2005-10-26 * 版本:1.1 * 备注:版权没有,随便拷贝,如果用于商业应用请通知本人,同时保留这段注释。 * */ /** * 改造:黑旋风 QQ:23929003 email:lewclear97@163.com * 日期:2006-03-17 * 版本:1.2 * 说明:本人在申楠同志的《显示提示窗口》基础上,将 */ 阅读全文

posted @ 2007-05-23 15:19 allonkwok 阅读(1245) 评论(1) 推荐(0)

摘要:function unicode(s){ var len=s.length; var rs=""; for(var i=0;ivar k=s.substring(i,i+1); rs+="&#"+s.charCodeAt(i)+";"; } return rs; } function runicode(s){ var k=s.split(";"); var r=""; for(var x=0;xvar m=k[x].replace(/&#/,""); r += String.fromCharCode(m); } return r; } 阅读全文

posted @ 2007-05-16 14:52 allonkwok 阅读(2127) 评论(0) 推荐(0)

摘要:javascrip动态时钟 阅读全文

posted @ 2007-05-14 15:04 allonkwok 阅读(406) 评论(1) 推荐(0)

摘要:function h() { document.mobileform.mobile.focus(); } function checkMobile() { var mobile=document.mobileform.mobile.value; var reg0=/^13\d{5,9}$/; //130--139。至少7位 var reg1=/^153\d{4,8}$/; //联通153。至少7位 var reg2=/^159\d{4,8}$/; //移动159。至少7位 var my=false; if (reg0.test(mobile))my=true; if (reg1.test(mobile))my=true; if (reg2.test(mobile))my=true; if (!my){ doc 阅读全文

posted @ 2007-04-24 18:48 allonkwok 阅读(1520) 评论(0) 推荐(0)

摘要: function roundFun(numberRound,roundDigit) //四舍五入,保留位数为roundDigit ,供计算时用 { if (numberRound=0) { var tempNumber = parseInt((numberRound * Math.pow(10,roundDigit)+0.5))/Math.pow(10,roundDigit); return tempNumber; } else { numberRound1=-numberRound var tempNumber = parseInt((numberRound1 * Math.pow(10,roundDigit)+0.5))/Math. 阅读全文

posted @ 2006-07-05 16:25 allonkwok 阅读(992) 评论(0) 推荐(0)