1var tarayici= navigator.appName; 2 3function responseWeather(response) 4{ 5 var delimiter = { 0: '' }; 6 delimiter = response.split(";"); 7 8 current_temp_c = delimiter[0]; 9 tomorrow_temp_low_c = delimiter[1]; 10 tomorrow_temp_high_c = delimiter[2]; 11 12 document.getElementById('weather1').innerHTML = current_temp_c + '° '; 13 document.getElementById('weather2').innerHTML = tomorrow_temp_high_c + '° ' + tomorrow_temp_low_c + '°'; 14} 15 16function showimage() 17{ 18 var d = new Date(), n = d.getTime(), src_list = document.havaform.il; 19 i = src_list.selectedIndex; 20 document.images.preview1.src = 'https://www.mgm.gov.tr/sunum/tahmin-show-2.aspx?m=' + src_list.options[i].value + '&basla=1&bitir=2&rC=111&rZ=fff'; 21} 22 23function getSelectedValue( frmName, srcListName ) 24{ 25 var form = eval( 'document.' + frmName ); 26 var srcList = eval( 'form.' + srcListName ); 27 i = srcList.selectedIndex; 28 if (i != null && i > -1) { 29 return srcList.options[i].value; 30 } 31 else { 32 return null; 33 } 34} 35 36function MM_swapImgRestore() { //v3.0 37 38 var i,x,a=document.MM_sr; 39 40 for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) 41 42 x.src=x.oSrc; 43 44} 45 46function MM_preloadImages() { //v3.0 47 var d=document; 48 49 if(d.images) 50 { 51 if(!d.MM_p) 52 53 d.MM_p=new Array(); 54 55 var i,j=d.MM_p.length,a=MM_preloadImages.arguments; 56 57 for(i=0; i<a.length; i++) 58 59 if (a[i].indexOf("#")!=0) 60 { 61 62 d.MM_p[j]=new Image; d.MM_p[j++].src=a[i]; 63 64 } 65 } 66} 67 68function MM_findObj(n, d) { //v4.01 69 70 var p,i,x; 71 72 if(!d) 73 74 d=document; 75 76 if((p=n.indexOf("?"))>0&&parent.frames.length) 77 { 78
79 d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p); 80 81 } 82 83 if(!(x=d[n])&&d.all) x=d.all[n]; 84 85 for (i=0;!x&&i<d.forms.length;i++) 86 87 x=d.forms[i][n]; 88 89 for(i=0;!x&&d.layers&&i<d.layers.length;i++) 90 91 x=MM_findObj(n,d.layers[i].document); 92 93 if(!x && d.getElementById) 94 95 x=d.getElementById(n); 96 97 return x; 98} 99 100function MM_swapImage() { //v3.0 101 102 var i,j=0,x,a=MM_swapImage.arguments; 103 104 document.MM_sr=new Array; 105 106 for(i=0;i<(a.length-2);i+=3) 107 108 if ((x=MM_findObj(a[i]))!=null) 109 { 110 111 document.MM_sr[j++]=x; 112 113 if(!x.oSrc) 114 115 x.oSrc=x.src; 116 x.src=a[i+2]; 117 118 } 119} 120 121var popUpWin=0; 122 123function mClick(URLStr,sayfaname,left,top,width,height) 124{ 125 var lleft = (screen.width/2)-(width/2); 126 var ltop = (screen.height/2)-(height/2); 127 128 if(popUpWin) 129 { 130 var tarayici= navigator.appName; 131 132 if(!popUpWin.closed) 133 { 134 if (tarayici=="Netscape") 135 popUpWin.close(); 136 if (tarayici=="Microsoft Internet Explorer") 137 popUpWin.Close(); 138 } 139 140 } 141 popUpWin = open(URLStr, sayfaname,'scrollbars=yes,width='+width+',height='+height+',left='+lleft+', top='+ltop+',screenX='+left+',screenY='+top); 142} 143 144function findPosX(obj) 145{ 146 var curleft = 0; 147 148 if(obj.offsetParent) 149 150 while(1) 151 { 152 curleft += obj.offsetLeft; 153 if(!obj.offsetParent) 154 break; 155 obj = obj.offsetParent; 156 } 157 158 else if(obj.x) 159 curleft += obj.x; 160 161 return curleft; 162} 163 164 165function findPosY(obj) 166{ 167 var curtop = 0; 168 if(obj.offsetParent) 169 while(1) 170 { 171 curtop += obj.offsetTop; 172 if(!obj.offsetParent) 173 break; 174 obj = obj.offsetParent; 175 } 176 else if(obj.y) 177 curtop += obj.y; 178 return curtop; 179} 180 181 182function Hand(src) 183{ 184 if (tarayici=="Netscape") 185 src.style.cursor="pointer"; 186 if (tarayici=="Microsoft Internet Explorer") 187 src.style.cursor="hand"; 188} 189 190function menubarOvr(src) 191{ 192 src.className="MenuBarOver"; 193 Hand(src); 194} 195 196function menubarOut(src) 197{ 198 src.className = "MenuBar"; 199} 200 201function textCounter(field,cntfield,maxlimit) 202{ 203 if (field.value.length > maxlimit) 204 field.value = field.value.substring(0, maxlimit); 205 else 206 cntfield.value = maxlimit - field.value.length; 207 if (field.value.length == 0) 208 cntfield.value = ""; 209} 210/***************************** XmlHttpRequest ***************************** 211 212Author: Luke Breuer, [email protected] 213Created: 4/19/05 214Modified: 11/14/06 215Documentation: http://luke.breuer.com/xmlhttprequest.aspx 216*/ 217 218function xmlhttpPost(strURL, func_name) 219{ 220 var xmlHttpReq = false; 221 // Mozilla/Safari 222 if (window.XMLHttpRequest) 223 { 224 225 xmlHttpReq = new XMLHttpRequest(); 226 227 if (xmlHttpReq.overrideMimeType) 228 { 229 xmlHttpReq.overrideMimeType('text/xml'); 230 // See note below about this line 231 } 232 // IE 233 } else if (window.ActiveXObject) { // IE 234 235 try { 236 237 xmlHttpReq = new ActiveXObject("Msxml2.XMLHTTP"); 238 239 } catch (e) { 240 241 try { 242 243 xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP"); 244 245 } catch (e) {} 246 247 } 248 } 249 250 if (!xmlHttpReq) 251 { 252 return false; 253 } 254 255 xmlHttpReq.open('GET', strURL, true); 256 257 xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); 258 259 xmlHttpReq.onreadystatechange = function() 260 { 261 callBackFunction(xmlHttpReq, func_name); 262 }; 263 264 xmlHttpReq.send(""); 265} 266 267function callBackFunction(http_request, func_name) 268{ 269 if (http_request.readyState == 4) 270 { 271 if (http_request.status == 200) 272 { 273 eval(func_name+"(http_request.responseText)"); 274 275 } 276 } 277} 278
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.