1if (document.all){ 2 window.attachEvent('onload',function(){ 3 4 commentBox(); 5 editorRec(); 6 backTop(); 7 video() 8 9 10 });//对äºIE 11}else{ 12 window.addEventListener('load',function(){ 13 14 commentBox(); 15 editorRec(); 16 backTop(); 17 video() 18 19 },false);//对äºFireFox 20} 21 22 23function getStyle(obj,name){ 24 if(obj.currentStyle){ 25 return obj.currentStyle[name]; 26 }else{ 27 return getComputedStyle(obj,false)[name]; 28 } 29} 30 31 32function editorRec(){ 33 var oeditorRec=document.getElementById('editorRec'); 34 var aeditorRecLi=oeditorRec.getElementsByTagName('li'); 35 36 for(var i=0;i<aeditorRecLi.length;i++){ 37 38 39 //ç§»å ¥åè² 40 aeditorRecLi[i].onmouseover=function(){ 41 oldColor=this.style.background; 42 this.style.background='#F4F4F4'; 43 } 44 aeditorRecLi[i].onmouseout=function(){ 45 this.style.background='#FFF'; 46 } 47 } 48} 49 50//commentBox 51function commentBox(){ 52 var oCBox=document.getElementById('cBox'); 53 /* æç´¢æ¡è·åå失å»ç¦ç¹ */ 54 oCBox.onfocus=function(){ 55 this.style.borderColor='#D9D9D9'; 56 this.style.background="#FFF" 57 if(this.value=='ææ¥è¯´ä¸¤å¥â¦â¦'){
58 this.value=''; 59 } 60 }; 61 oCBox.onblur=function(){ 62 this.style.borderColor='#EFEFEF'; 63 this.style.background="#F7F7F7"; 64 if(this.value==''){ 65 this.value='ææ¥è¯´ä¸¤å¥â¦â¦'; 66 } 67 }; 68} 69 70//editorRec 71function editorRec(){ 72 var oeditorRec=document.getElementById('editorRec'); 73 var aeditorRecLi=oeditorRec.getElementsByTagName('li'); 74 75 for(var i=0;i<aeditorRecLi.length;i++){ 76 77 78 //ç§»å ¥åè² 79 aeditorRecLi[i].onmouseover=function(){ 80 oldColor=this.style.background; 81 this.style.background='#F4F4F4'; 82 } 83 aeditorRecLi[i].onmouseout=function(){ 84 this.style.background='#FFF'; 85 } 86 } 87} 88 89function video(){ 90 var oVideo=document.getElementById('video'); 91 var aVideoLi=oVideo.getElementsByTagName('li'); 92 93 for(var i=0;i<aVideoLi.length;i++){ 94 aVideoLi[i].onmouseover=function(){ 95 var oPlay=getByClass(this,'play')[0]; 96 startMove(oPlay,{opacity:100},10); 97 } 98 aVideoLi[i].onmouseout=function(){ 99 var oPlay=getByClass(this,'play')[0]; 100 startMove(oPlay,{opacity:60},10); 101 } 102 103 } 104}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.