1function swapMap(imgpath) { 2 document.getElementById('mapImage').src = imgpath; 3} 4 5function initMapURL(dirpath) { 6 var aMap = document.getElementsByTagName('a'); 7 var urls = new Array(); 8 for( var i=0; i<aMap.length; i++ ) { 9 if (aMap[i].className == 'areatag') { 10 urls[urls.length] = aMap[i].getAttribute('href'); 11 } 12 } 13 14 var litag = document.getElementsByTagName('li'); 15 for( var i=0; i<litag.length; i++ ) { 16 if (litag[i].className == 'a1') { 17 litag[i].onmouseover = function() { 18 swapMap(dirpath+'map_tohoku.gif'); 19 } 20 litag[i].onmouseout = function() { 21 swapMap(dirpath+'shim.gif'); 22 } 23 litag[i].onclick = function() { 24 location.href = urls[0]; 25 } 26 litag[i].style.cursor = 'pointer'; 27 document.getElementById('area1').onmouseover = function() { 28 swapMap(dirpath+'map_tohoku.gif'); 29 } 30 document.getElementById('area1').onmouseout = function() { 31 swapMap(dirpath+'shim.gif'); 32 } 33 document.getElementById('area1').onclick = function() { 34 location.href = urls[0]; 35 } 36 } 37 if (litag[i].className == 'a2') { 38 litag[i].onmouseover = function() { 39 swapMap(dirpath+'map_kanto.gif'); 40 } 41 litag[i].onmouseout = function() { 42 swapMap(dirpath+'shim.gif'); 43 } 44 litag[i].onclick = function() { 45 location.href = urls[1]; 46 } 47 litag[i].style.cursor = 'pointer'; 48 document.getElementById('area2').onmouseover = function() { 49 swapMap(dirpath+'map_kanto.gif'); 50 } 51 document.getElementById('area2').onmouseout = function() { 52 swapMap(dirpath+'shim.gif'); 53 } 54 document.getElementById('area2').onclick = function() { 55 location.href = urls[1]; 56 } 57 } 58 if (litag[i].className == 'a3') { 59 litag[i].onmouseover = function() { 60 swapMap(dirpath+'map_hokushinetsu.gif'); 61 } 62 litag[i].onmouseout = function() { 63 swapMap(dirpath+'shim.gif'); 64 } 65 litag[i].onclick = function() { 66 location.href = urls[2]; 67 } 68 litag[i].style.cursor = 'pointer'; 69 document.getElementById('area3').onmouseover = function() { 70 swapMap(dirpath+'map_hokushinetsu.gif'); 71 } 72 document.getElementById('area3').onmouseout = function() { 73 swapMap(dirpath+'shim.gif'); 74 } 75 document.getElementById('area3').onclick = function() { 76 location.href = urls[2]; 77 } 78 } 79 if (litag[i].className == 'a4') { 80 litag[i].onmouseover = function() { 81 swapMap(dirpath+'map_tokai.gif'); 82 } 83 litag[i].onmouseout = function() { 84 swapMap(dirpath+'shim.gif'); 85 } 86 litag[i].onclick = function() { 87 location.href = urls[3]; 88 } 89 litag[i].style.cursor = 'pointer'; 90 document.getElementById('area4').onmouseover = function() { 91 swapMap(dirpath+'map_tokai.gif'); 92 } 93 document.getElementById('area4').onmouseout = function() { 94 swapMap(dirpath+'shim.gif'); 95 } 96 document.getElementById('area4').onclick = function() { 97 location.href = urls[3]; 98 } 99 } 100 if (litag[i].className == 'a5') { 101 litag[i].onmouseover = function() { 102 swapMap(dirpath+'map_kansai.gif'); 103 } 104 litag[i].onmouseout = function() { 105 swapMap(dirpath+'shim.gif'); 106 } 107 litag[i].onclick = function() { 108 location.href = urls[4]; 109 } 110 litag[i].style.cursor = 'pointer'; 111 document.getElementById('area5').onmouseover = function() { 112 swapMap(dirpath+'map_kansai.gif'); 113 } 114 document.getElementById('area5').onmouseout = function() { 115 swapMap(dirpath+'shim.gif'); 116 } 117 document.getElementById('area5').onclick = function() { 118 location.href = urls[4]; 119 } 120 } 121 if (litag[i].className == 'a6') { 122 litag[i].onmouseover = function() { 123 swapMap(dirpath+'map_chugoku.gif'); 124 } 125 litag[i].onmouseout = function() { 126 swapMap(dirpath+'shim.gif'); 127 } 128 litag[i].onclick = function() { 129 location.href = urls[5]; 130 } 131 litag[i].style.cursor = 'pointer'; 132 document.getElementById('area6').onmouseover = function() { 133 swapMap(dirpath+'map_chugoku.gif'); 134 } 135 document.getElementById('area6').onmouseout = function() { 136 swapMap(dirpath+'shim.gif'); 137 } 138 document.getElementById('area6').onclick = function() { 139 location.href = urls[5]; 140 } 141 }
142 if (litag[i].className == 'a7') { 143 litag[i].onmouseover = function() { 144 swapMap(dirpath+'map_kyushu.gif'); 145 } 146 litag[i].onmouseout = function() { 147 swapMap(dirpath+'shim.gif'); 148 } 149 litag[i].onclick = function() { 150 location.href = urls[6]; 151 } 152 litag[i].style.cursor = 'pointer'; 153 document.getElementById('area7').onmouseover = function() { 154 swapMap(dirpath+'map_kyushu.gif'); 155 } 156 document.getElementById('area7').onmouseout = function() { 157 swapMap(dirpath+'shim.gif'); 158 } 159 document.getElementById('area7').onclick = function() { 160 location.href = urls[6]; 161 }; 162 } 163 } 164}
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.