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

浙公网安备 33010602011771号