1// JavaScript Document 2 3function pulisciBox() { 4 if (document.forms[0].query.value == "Inserisci parole da cercare") { 5 document.forms[0].query.value = ""; 6 } 7} 8 9function altroSito(url, target, features) { 10 var theWindow = window.open(url, '_blank2'); 11 window.blur(); 12 window.focus(); 13 theWindow.focus(); 14 return theWindow; 15} 16 17function scorriDoc(direzione) { 18 if (direzione == "avanti") { 19 document.forms[1].pagina.value++; 20 } 21 else { 22 document.forms[1].pagina.value--; 23 } 24 document.forms[1].submit(); 25} 26 27 28function dataOggi() { 29 giorni = new Array ("Domenica", "Lunedi", "Martedi", "Mercoledi", "Giovedi", "Venerdi", "Sabato"); 30 mesi = new Array ("Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"); 31 oggi = new Date; 32 33 document.write(giorni[oggi.getDay()] + ", " + oggi.getDate() + " " + oggi.getMonth() + " " + oggi.getYear() + " - " + oggi.getHours() + ":"); 34 minuti = oggi.getMinutes(); 35 if (minuti < 10 ) 36 minuti = "0" + minuti; 37 document.write(minuti); 38} 39 40 41 42 43function azzeraRicerca() { 44 document.forms[2].pagina.value = 1; 45 document.forms[2].submit(); 46} 47 48var _POPUP_FEATURES = "location='0, statusbar=0, menubar=0, scrollbars=1, resizable=1, width=800, height=600"; 49 50function raw_popup(url, target, features) { 51 var theWindow = window.open(url, '_blank', _POPUP_FEATURES); 52 window.blur(); 53 window.focus(); 54 theWindow.focus(); 55 return theWindow; 56} 57 58function externalLinks() { 59 if (!document.getElementsByTagName) return; 60 var anchors = document.getElementsByTagName("a"); for (var i=0; i<anchors.length; i++) { 61 var anchor = anchors[i]; 62 if (anchor.getAttribute("href") && (anchor.getAttribute("rel") == "external") || (anchor.getAttribute("class") == "external")) anchor.target = "_blank"; 63 } 64} 65 66function disattivaModulo() { 67 for (i=2; i<document.forms[1].length;i++) { 68 document.forms[1].elements[i].disabled = "disabled"; 69 } 70} 71 72function attivaModulo() { 73 for (i=0; i<document.forms[1].length;i++) { 74 document.forms[1].elements[i].disabled = null; 75 } 76 77} 78 79function setFontSize(size) { 80 var body = document.getElementsByTagName('body')[0]; 81 var percentuale = "100%"; // default 82 if (size == 1) percentuale = "80%"; 83 if (size == 2) percentuale = "100%"; 84 if (size == 3) percentuale = "120%"; 85 body.style.fontSize = percentuale; 86} 87 88function percorso() { 89 if ((document.forms[2].luogo.value != "inserisci partenza") && (document.forms[2].luogo.value != "")) { 90 path = "http://maps.google.it/maps?f=d&hl=it&geocode=&saddr=" + document.forms[2].luogo.value + "&daddr=Atzara+NU"; 91 window.open(path,"percorso","location='0, statusbar=0, menubar=0, scrollbars=1, resizable=1, width=1024, height=768"); 92 } 93 else { 94 alert("Inserisci un luogo corretto!"); 95 } 96 return false; 97} 98 99function inviaForm() { 100 document.forms[1].submit(); 101} 102 103function accendi(canali){ 104 if(canali.charAt(canali.length-1)==',') 105 canali=canali.substr(0,canali.length-1); 106 if(canali=='') 107 canali='null'; 108 if(canali!='null'){ 109 var a=canali.split(','); 110 for(i=0;i<a.length;i++){ 111 var b=document.getElementById(a[i]).src; 112 var c=b.split('/').pop(); 113 document.getElementById(a[i]).src=b.replace(c,'on_'+c); 114 } 115 } 116} 117function spegni(canali){ 118 if(canali.charAt(canali.length-1)==',') 119 canali=canali.substr(0,canali.length-1); 120 if(canali=='') 121 canali='null'; 122 if(canali!='null'){ 123 var a=canali.split(','); 124 for(i=0;i<a.length;i++){ 125 var b=document.getElementById(a[i]).src; 126 document.getElementById(a[i]).src=b.replace('on_',''); 127 } 128 } 129} 130 131function vaiAlComune() { 132 if (document.getElementById('campoComune').value != '-') { 133 var theWindow = window.open(document.getElementById('campoComune').value, '_blank'); 134 window.blur(); 135 window.focus(); 136 theWindow.focus(); 137 } 138} 139 140function illumina (canale) { 141 var a = canale.getElementsByTagName('img')[0].getAttribute('src'); 142 if(a.indexOf('on_')==-1) { 143 var b = a.split('/').pop(); 144 canale.getElementsByTagName('img')[0].setAttribute('src', a.replace(b, 'on_'+b)); 145 canale.getElementsByTagName('img')[0].setAttribute('rel', 'funzione'); 146 } 147} 148 149function oscura (canale) { 150 var a = canale.getElementsByTagName('img')[0].getAttribute('src') 151 var b = canale.getElementsByTagName('img')[0].getAttribute('rel'); 152 if(b=='funzione') 153 canale.getElementsByTagName('img')[0].setAttribute('src', a.replace('on_', '')); 154} 155 156function init () { 157 var a = document.getElementsByTagName('a'); 158 for (var i = 0; i < a.length; i++) 159 if (a[i].getAttribute('rel') == 'canale') { 160 if (a[i].addEventListener) { 161 a[i].addEventListener('mouseover', function () { illumina(this); }, false); 162 a[i].addEventListener('mouseout', function () { oscura(this); }, false); 163 } else if (a[i].attachEvent) { 164 a[i].attachEvent('onmouseover', function () { illumina(this); }); 165 a[i].attachEvent('onmouseout', function () { oscura(this); }); 166 } 167 } 168}
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.