1var tablink_idname = new Array("tablink") 2//Set the id name of your tabcontentarea (without a number at the end) 3var tabcontent_idname = new Array("tabcontent") 4//Set the number of your tabs 5var tabcount = new Array("2") 6//Set the Tab wich should load at start (In this Example:Tab 2 visible on load) 7var loadtabs = new Array("2") 8//Set the Number of the Menu which should autochange (if you dont't want to have a change menu set it to 0) 9var autochangemenu = 1; 10//the speed in seconds when the tabs should change 11var changespeed = 2; 12//should the autochange stop if the user hover over a tab from the autochangemenu? 0=no 1=yes 13var stoponhover = 0; 14 15/*Swich EasyTabs Functions - no need to edit something here*/ 16function easytabs(menunr, active) { 17 if (menunr === autochangemenu) { 18 currenttab = active; 19 } 20 if ((menunr === autochangemenu) && (stoponhover === 1)) { 21 stop_autochange() 22 } 23 else if ((menunr === autochangemenu) && (stoponhover === 0)) { 24 counter = 0; 25 } 26 menunr = menunr - 1; 27 for (i = 1; i <= tabcount[menunr]; i++) { 28 document.getElementById(tablink_idname[menunr] + i).className = 'tab' + i; document.getElementById(tabcontent_idname[menunr] + i).style.display = 'none'; 29 } 30 document.getElementById(tablink_idname[menunr] + active).className = 'tab' + active + ' tabactive'; 31 document.getElementById(tabcontent_idname[menunr] + active).style.display = 'block'; 32} 33var timer; counter = 0; 34var totaltabs = tabcount[autochangemenu - 1]; 35var currenttab = loadtabs[autochangemenu - 1]; 36function start_autochange() { 37 counter = counter + 1; timer = setTimeout("start_autochange()", 2000); 38 if (counter === changespeed + 1) { 39 currenttab++; 40 if (currenttab > totaltabs) { 41 currenttab = 1 42 } 43 easytabs(autochangemenu, currenttab); 44 restart_autochange(); 45 } 46} 47function restart_autochange() { 48 clearTimeout(timer); counter = 0; start_autochange(); 49} 50function stop_autochange() { 51 clearTimeout(timer); counter = 0; 52} 53window.onload = function () { 54 var menucount = loadtabs.length; var a = 0; var b = 1; do { easytabs(b, loadtabs[a]); a++; b++; } while (b <= menucount); 55 if (autochangemenu !== 0) { start_autochange(); } 56}
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.