01 2015 档案

摘要:function getNextElement(node){ var nextNode=node.nextSibling; if(nextNode){ if(nextNode.nodeType==1){ return nextNode; }else{ return getNextElement(n... 阅读全文
posted @ 2015-01-05 09:52 PLDaily 阅读(229) 评论(0) 推荐(0)
摘要:/*---------------HTML----------------------*/something/*-----------------javascript---------------*/var quotes=document.getElementsByTagName("blockquo... 阅读全文
posted @ 2015-01-04 11:20 PLDaily 阅读(226) 评论(0) 推荐(0)
摘要:var defs=new Array();defs[somethingA]=somethingB;for(somethingA in defs){ var somethingB=defs[somethingA]; ........} 阅读全文
posted @ 2015-01-04 11:03 PLDaily 阅读(122) 评论(0) 推荐(0)
摘要:function insertAfter(newElement,targetElement){ var parent=targetElement.parentNode; if(parent.lastChild==targetElement){ parent.appendChild(newEleme... 阅读全文
posted @ 2015-01-02 11:15 PLDaily 阅读(208) 评论(0) 推荐(0)
摘要:function addLoadEvent(func){ var oldonload=window.onload; if(typeof window.onload!='function'){ window.onload=func; } else{ window.onload=function(){ 阅读全文
posted @ 2015-01-01 16:01 PLDaily 阅读(99) 评论(0) 推荐(0)
摘要:1、在Firefox地址栏里输入“about:config”。2、在搜索栏输入“javascript.enabled”查找到首选项。3、点击鼠标右键选择“切换”,把“javascript.enabled”键值改为“false”这样就能禁止JavaScript的运行了 --------贴吧 阅读全文
posted @ 2015-01-01 15:40 PLDaily 阅读(2594) 评论(0) 推荐(0)
摘要:1.平稳退化fengxz//HTMLfunction popPup(winURL){ window.open(winURL); }//JavaScript即使JavaScript已被禁用,这个链接也是可用的。2.渐进增强fengxz//HTMLwindow.onload=prepareLink;f... 阅读全文
posted @ 2015-01-01 15:38 PLDaily 阅读(256) 评论(0) 推荐(0)