似是而非

导航

随笔分类 -  JavaScript

JavaScript学习
摘要:1)点击文字改变内容JS代码代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1functionMode(){2vareHand=document.getElementById('hand');3if(eHand.innerHTML=='手动')4... 阅读全文

posted @ 2010-03-31 11:10 似是而非 阅读(149) 评论(0) 推荐(0)

javascript页面跳转常用代码
摘要:按钮式: <INPUTname="pclog"type="button"value="/GO"onClick="location.href='http://www.itpx.net/'">链接式:<ahref="javascript:history.go(-1)">返回上一步</a><ahref="<%=Request.ServerVariables... 阅读全文

posted @ 2009-11-25 14:59 似是而非 阅读(162) 评论(0) 推荐(0)

有用的JS判断
摘要:function OrtTrimString (strVal){ var reVal; var strTmp; strTmp = strVal + ""; if (strTmp.length == 0) return (strTmp); reVal = /^(\s| )*/; strTmp = strTmp.replace (reVal, ''); reVal = /(\s| )*$/; retu... 阅读全文

posted @ 2009-11-25 14:59 似是而非 阅读(220) 评论(0) 推荐(0)