1//Timeout your Mouseovers (http://www.pjhyett.com/articles/2006/07/05/timeout-your-mouseovers) 2 3var menu_1 = { 4 timeout : null, 5 showPopup : function(){ 6 clearTimeout(this.timeout); 7 if($('menu_1').style.display == 'none'){ 8 this.timeout = setTimeout(function(){new Effect.BlindDown('menu_1', {duration:.3, fps:40})},400); 9 } 10 }, 11 hidePopup : function(){ 12 if($('menu_1').style.display == 'none'){ 13 clearTimeout(this.timeout); 14 }else{ 15 this.timeout = setTimeout(function(){new Effect.BlindUp('menu_1', {duration:.3, fps:40})},300); 16 } 17 } 18} 19 20var menu_2 = { 21 timeout : null, 22 showPopup : function(){ 23 clearTimeout(this.timeout); 24 if($('menu_2').style.display == 'none'){ 25 this.timeout = setTimeout(function(){new Effect.BlindDown('menu_2', {duration:.3, fps:40})},400); 26 } 27 }, 28 hidePopup : function(){ 29 if($('menu_2').style.display == 'none'){ 30 clearTimeout(this.timeout); 31 }else{ 32 this.timeout = setTimeout(function(){new Effect.BlindUp('menu_2', {duration:.3, fps:40})},300); 33 } 34 } 35} 36 37var menu_3 = { 38 timeout : null, 39 showPopup : function(){ 40 clearTimeout(this.timeout); 41 if($('menu_3').style.display == 'none'){ 42 this.timeout = setTimeout(function(){new Effect.BlindDown('menu_3', {duration:.3, fps:40})},400); 43 } 44 }, 45 hidePopup : function(){ 46 if($('menu_3').style.display == 'none'){ 47 clearTimeout(this.timeout); 48 }else{ 49 this.timeout = setTimeout(function(){new Effect.BlindUp('menu_3', {duration:.3, fps:40})},300); 50 } 51 } 52}
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.