夜隼

RYSZ

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  Javascript

摘要:如:<script async src="js/cm.js" onload="load()"></script>async 表示异步方式运行,一旦下载完成就开始执行(在window的onload之前),这意味着这些script 可能不会按它们出现在页面中的顺序来执行,如果你的脚本互相依赖并和执行顺序相关,就有很大的可能出问题,例如变量或者函数未定义之类的错误。<script defer src="js/cm.js" onload="load()"></script>而 阅读全文
posted @ 2012-12-14 17:46 夜隼 阅读(305) 评论(0) 推荐(0)

摘要:UserName : Password : Email : Mobile : Birthday : JS类库 /*---功能:自定义Js组件 Date:2007-8-30 Author:yesun --------------------------------------------*/ var Yesun =... 阅读全文
posted @ 2007-08-30 16:27 夜隼 阅读(797) 评论(0) 推荐(0)

摘要://document.getElementById('selCatalog').remove(i);以前都是这样用的,可是今天不知道为什么无效了,估计和xhtml有关,采用下面方法可以document.getElementById('selCatalog').options[i].removeNode(true); 阅读全文
posted @ 2006-10-04 10:30 夜隼 阅读(1983) 评论(0) 推荐(0)

摘要:解决方法一:Transformiix不支持disable-output-escaping的解决方法 最近写了一个多浏览器兼容的XSLT程序,主要问题集中在disable-output-escaping的支持上,发表一下看法,大家一起讨论。 我接触到的内嵌在浏览器中的XSLT Processor主要是两种:MSIE的MSXML;包括Netscape、Mozilla、Firefox等浏览器用的都是... 阅读全文
posted @ 2006-08-24 18:04 夜隼 阅读(1305) 评论(0) 推荐(0)

摘要:421wtai://wp/mc;http:// 部分代码 阅读全文
posted @ 2006-08-24 12:37 夜隼 阅读(734) 评论(1) 推荐(0)

摘要:使用xslt解析xml的时候,需要把xml中的参数传到javascript中,可以用xslt作为中转,xsl:xsl javascript:document.getElementById("param").value //取得参数 阅读全文
posted @ 2006-08-23 10:24 夜隼 阅读(747) 评论(0) 推荐(0)

摘要:怎么用javascript进行拖拽 本文译自:http://www.webreference.com/programming/javascript/mk/column2/index.html 所有版权归原文所有 由sohotx.com雪山老人翻译整理,转载请标明 Javascript的特点是dom的处理与网页效果,大多数情况我们只用到了这个语言的最简单的功能,比如制作图片轮播/网页的tab等等,这... 阅读全文
posted @ 2006-08-21 17:58 夜隼 阅读(471) 评论(0) 推荐(0)

摘要://设置freetextbox的content var ed; //兼容IE/FireFox ed = document.all?eval("myTextBox_designEditor"):document.getElementById("myTextBox_designEditor").contentWindow ;//; ed.document.open(); ed.d... 阅读全文
posted @ 2006-08-19 09:44 夜隼 阅读(951) 评论(0) 推荐(0)

摘要:代码如下 //IE下没有问题,在FireFox下,第一次,取列表没问题,点击取子列表,就取不到数据了,可以肯定后台程序已经返回xml,但是prototype.js没有接收到!!!!!有没有人知道什么原因马? 阅读全文
posted @ 2006-08-18 07:03 夜隼 阅读(1834) 评论(2) 推荐(0)

摘要:document.getElementById('divList').getAtrribute("style")设置同理,document.getElementById('divList').setAttribute("style","width:100%") 阅读全文
posted @ 2006-08-11 16:09 夜隼 阅读(186) 评论(0) 推荐(0)

摘要:if(CheckBrowser() == "IE") { var diagReturn = showModalDialog("admin_calendar_add.jsp?date="+currentDate+"&hour="+hour,'','dialogWidth:700px;dialogHeight:700px;help:No;resizable:No;'); if(diagRet... 阅读全文
posted @ 2006-08-11 15:42 夜隼 阅读(455) 评论(0) 推荐(0)

摘要:可以使用window.top.document.getElementById("mainFrame").cols 阅读全文
posted @ 2006-08-11 15:11 夜隼 阅读(1793) 评论(0) 推荐(0)

摘要:以下以 IE 代替 Internet Explorer,以 MF 代替 Mozzila Firefox 1. document.form.item 问题 (1)现有问题: 现有代码中存在许多 document.formName.item("itemName") 这样的语句,不能在 MF 下运行 (2)解决方法: 改用 document.formName.el... 阅读全文
posted @ 2006-08-11 15:01 夜隼 阅读(374) 评论(0) 推荐(0)

摘要:可以使用document.getElementById('divList').setAttribute("style","CSS"); 阅读全文
posted @ 2006-08-11 12:21 夜隼 阅读(1918) 评论(3) 推荐(0)

摘要:可以使用cursor:pointer; 这个在IE/Firefox下都支持 阅读全文
posted @ 2006-08-11 12:07 夜隼 阅读(1725) 评论(1) 推荐(1)

摘要:以前一直写的是originalRequest.responseTEXT,才发现在FireFox下应该写成originalRequest.responseText; 阅读全文
posted @ 2006-08-11 12:04 夜隼 阅读(632) 评论(0) 推荐(0)

摘要:if(objXml.getElementsByTagName("msg")[0].firstChild.nodeValue.indexOf("验证码")>-1) { //刷新RND document.getElementById('imgRnd').src = "../rnd.do?type=admin_rnd&"+Math.random(); } 阅读全文
posted @ 2006-08-11 11:46 夜隼 阅读(866) 评论(0) 推荐(0)

摘要:prototype.js 1.4版开发者手册(强烈推荐) prototype.js开发者手册 对应版本1.4.0 original article by sp('Sergio Pereira') Sergio Pereira last update: March 30th 2006 中文版:THIN 最后更新:2006-3-31 看到一个很好的东西在国内没有被很多人使用起... 阅读全文
posted @ 2006-08-10 17:44 夜隼 阅读(377) 评论(0) 推荐(0)

摘要: 阅读全文
posted @ 2006-07-13 17:26 夜隼 阅读(1619) 评论(0) 推荐(0)

摘要:function checkPassword(pwd){ var objLow=document.getElementById("pwdLow"); var objMed=document.getElementById("pwdMed"); var objHi=document.getElementById("pwdHi"); if(pwd.length<4){ obj... 阅读全文
posted @ 2006-06-27 11:08 夜隼 阅读(388) 评论(0) 推荐(0)