home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 April / Chip_2003-04_cd1.bin / sharewar / menu / smmk.exe / 1045 / BINARY / 111 / docs / weather.js < prev    next >
Encoding:
Text File  |  2003-02-19  |  10.8 KB  |  99 lines

  1. var bBrowserOK; bBrowserOK = 0;if(parseFloat(navigator.appVersion)>=4) if(navigator.appName == 'Microsoft Internet Explorer') bBrowserOK = 1;document.write('<STYLE>');document.write('a.MN22234237 {text-decoration:none; color:#000000; font-weight: 700; font-family: Verdana; font-size: 12px; font-style:normal;} ');
  2. document.write('a.MN22234237:hover {text-decoration:none; color:#FFFFFF; }');
  3. document.write('a.SMN22234237 {text-decoration:none; color:#000000; font-weight: 400; font-family: Verdana; font-size: 11px; font-style:normal;} ');
  4. document.write('a.SMN22234237:hover {text-decoration:none; color:#FFDD00; }');
  5. document.write('table.MT22234237 {background:#A0CAE5; border:1 solid #000000; }');
  6. document.write('td.MTD22234237 {padding-left:4; padding-right:4; background:#76A5E8; border:2 outset #76A5E8; }');
  7. document.write('.MTI22234237 {color:#000000; font-weight: 700; font-family: Verdana; font-size: 12px; font-style:normal;}');
  8. document.write('.MSI22234237 {color:#000000; font-weight: 400; font-family: Verdana; font-size: 11px; font-style:normal;}');
  9. document.write('</STYLE>');
  10. function OpenMenu(MenuId){    MenuId.style.visibility = 'visible'; }
  11. function CloseMenu(MenuId){    MenuId.style.visibility = 'hidden';}
  12. function HLT22234237(TDId,AId){    TDId.style.background = '#517389';    if(AId) AId.style.color = '#FFDD00';}
  13. function UHLT22234237(TDId,AId){    TDId.style.background = '#76A5E8';    if(AId) AId.style.color = '#000000';}
  14. function THLT22234237(TDId,AId){    TDId.style.background = '#517389';    if(AId) AId.style.color = '#FFFFFF';}
  15. function TUHLT22234237(TDId,AId){    TDId.style.background = '#A0CAE5';    if(AId) AId.style.color = '#000000';}
  16. function WSBV22234237(MenuId){
  17. document.write('<span id=' + MenuId + ' STYLE="position:absolute; visibility:hidden; zorder:1; ">');
  18. document.write('<table class="MT22234237" cellspacing=2 cellpadding=2 onMouseOut="CloseMenu(' + MenuId + ');" onMouseOver="OpenMenu(' + MenuId + ');">');} 
  19. function WSIV22234237(ItemID,ItemName,ItemURL,MenuID,ItemTitle,ItemTarget){
  20. document.write('<tr><td NOWRAP id="X' + ItemID + '" class="MTD22234237" onMouseOver="HLT22234237(X' + ItemID + ',' + ItemID + ');" onMouseOut="UHLT22234237(X' + ItemID + ',' + ItemID + ');">');
  21. document.write('<span NOWRAP><a href="' + ItemURL + '" title="' + ItemTitle + '" class="SMN22234237" target="' + ItemTarget + '" id="' + ItemID + '">' + ItemName + '</a></span></td></tr>');}
  22. function WSFV22234237(ItemID,ItemFree){
  23. document.write('<tr><td NOWRAP id="X' + ItemID + '" class="MTD22234237" onMouseOver="HLT22234237(X' + ItemID + ',' + ItemID + ');" onMouseOut="UHLT22234237(X' + ItemID + ',' + ItemID + ');">');
  24. document.write('<span id="' + ItemID + '" class="MSI22234237" NOWRAP>' + ItemFree + '</span></td></tr>');}
  25. function CloseSubBoxV(){document.write('</table></span>');}
  26. function WTIV22234237(MenuID,MenuName,MenuURL,MenuTitle,MenuTarget){
  27. document.write('<tr id="X' + MenuID + '" onMouseOver="OpenMenu(' + MenuID + ');THLT22234237(X' + MenuID + ',T' + MenuID + ');" onMouseOut="CloseMenu(' + MenuID + ');TUHLT22234237(X' + MenuID + ',T' + MenuID + ');"><td ALIGN=LEFT><span STYLE="position:relative;" class="MTI22234237" ><a id="T' + MenuID + '" href="' + MenuURL + '" title="' + MenuTitle + '" target="' + MenuTarget + '" class="MN22234237">' + MenuName + '</a></span>');
  28. document.write('</td><td> ');}function WTFV22234237(MenuID,MenuFree){
  29. document.write('<tr id="X' + MenuID + '" onMouseOver="OpenMenu(' + MenuID + ');THLT22234237(X' + MenuID + ',T' + MenuID + ');" onMouseOut="CloseMenu(' + MenuID + ');TUHLT22234237(X' + MenuID + ',T' + MenuID + ');"><td ALIGN=LEFT><span id="T' + MenuID + '" STYLE="position:relative;" class="MTI22234237">' + MenuFree + '</span>');
  30. document.write('</td><td> ');}function CloseTopItemV(){document.write('</td></tr>');}
  31. function WTHV22234237(MenuName,MenuURL,MenuTitle,MenuTarget){
  32. document.write('<tr><td ALIGN=LEFT><span STYLE="position:relative;" class="MTI22234237" ><a href="' + MenuURL + '" target="' + MenuTarget + '" title="' + MenuTitle + '" class="MN22234237">' + MenuName + '</a></span>');
  33. document.write('</td><td> </td></tr>');}function WTHFV22234237(MenuName,MenuFree){
  34. document.write('<tr><td ALIGN=LEFT><span STYLE="position:relative;" class="MTI22234237">' + MenuFree + '</span>');
  35. document.write('</td><td> </td></tr>');}document.write('<SPAN NOWRAP STYLE="position:relative; vertical-align:bottom; visibility:visible; background-color:#A0CAE5; border:1 solid #000000; font-weight: 700; font-family: Verdana; font-size:12px; height:18px">');
  36. document.write('<TABLE cellspacing=0 cellpadding=5 border=0 bgcolor=#A0CAE5><TR><TD><TABLE cellspacing=0 cellpadding=0 border=0>');WTHV22234237('Weather.com','','Since 1982, The Weather Channel has brought timely weather information to the world. ','_self');
  37. if(bBrowserOK==1) {
  38. WTIV22234237('MI22236423','North America','/search/drilldown/?geoCd=5&geoCdChild=4&itemCd=NAM&countryCd=US&itemName=North%20America&countryName=*&what=WeatherCity&letter=U','','_self');
  39. WSBV22234237('MI22236423');
  40. WSIV22234237('MI22254270','Atlanta','/weather/local/USGA0028','MI22236423','','_self');
  41. if(MI22254270) MI22254270.style.color = '#000000';WSIV22234237('MI22248575','Chicago','/weather/local/USIL0225','MI22236423','','_self');
  42. if(MI22248575) MI22248575.style.color = '#000000';WSIV22234237('MI22257657','Denver','/weather/local/USCO0105','MI22236423','','_self');
  43. if(MI22257657) MI22257657.style.color = '#000000';WSIV22234237('MI22253321','Los Angeles','/weather/local/USCA0638','MI22236423','','_self');
  44. if(MI22253321) MI22253321.style.color = '#000000';WSIV22234237('MI22245974','Miami','/weather/local/USFL0316','MI22236423','','_self');
  45. if(MI22245974) MI22245974.style.color = '#000000';WSIV22234237('MI22229031','New York','/weather/local/USNY0996','MI22236423','','_self');
  46. if(MI22229031) MI22229031.style.color = '#000000';WSIV22234237('MI22250493','San Francisco','/weather/local/USCA0987','MI22236423','','_self');
  47. if(MI22250493) MI22250493.style.color = '#000000';CloseSubBoxV();
  48. CloseTopItemV();
  49. }
  50. else
  51. WTHV22234237('North America','/search/drilldown/?geoCd=5&geoCdChild=4&itemCd=NAM&countryCd=US&itemName=North%20America&countryName=*&what=WeatherCity&letter=U','','_self');
  52. if(bBrowserOK==1) {
  53. WTIV22234237('MI22233933','South America','/search/drilldown/?geoCd=5&geoCdChild=4&itemCd=SAMER&countryCd=US&itemName=South+America&countryName=*&what=WeatherCity','','_self');
  54. WSBV22234237('MI22233933');
  55. WSFV22234237('MI22240469','This item is free coded<br>You can use any HTML tags<br>allowed inside BODY tag<p><b><a href="/search/drilldown/?geoCd=5&geoCdChild=4&itemCd=SAMER&countryCd=US&itemName=South+America&countryName=*&what=WeatherCity"><font color=red>Browse South America</font></a></b>');
  56. if(MI22240469) MI22240469.style.color = '#000000';CloseSubBoxV();
  57. CloseTopItemV();
  58. }
  59. else
  60. WTHV22234237('South America','/search/drilldown/?geoCd=5&geoCdChild=4&itemCd=SAMER&countryCd=US&itemName=South+America&countryName=*&what=WeatherCity','','_self');
  61. if(bBrowserOK==1) {
  62. WTIV22234237('MI22258177','Europe','/search/drilldown/?geoCd=5&geoCdChild=4&itemCd=EUR&countryCd=US&itemName=Europe&countryName=*&what=WeatherCity','','_self');
  63. WSBV22234237('MI22258177');
  64. WSIV22234237('MI22250659','Amsterdam','/weather/local/NLXX0002','MI22258177','','_self');
  65. if(MI22250659) MI22250659.style.color = '#000000';WSIV22234237('MI22233090','Berlin','/weather/local/GMXX0007','MI22258177','','_self');
  66. if(MI22233090) MI22233090.style.color = '#000000';WSIV22234237('MI22259461','Brussels','/weather/local/BEXX0005','MI22258177','','_self');
  67. if(MI22259461) MI22259461.style.color = '#000000';WSIV22234237('MI22252999','Frankfurt','/weather/local/GMXX0185','MI22258177','','_self');
  68. if(MI22252999) MI22252999.style.color = '#000000';WSIV22234237('MI22249611','Lisbon','/weather/local/POXX0016','MI22258177','','_self');
  69. if(MI22249611) MI22249611.style.color = '#000000';WSIV22234237('MI22246354','London','/weather/local/UKXX0085','MI22258177','','_self');
  70. if(MI22246354) MI22246354.style.color = '#000000';WSIV22234237('MI22258994','Madrid','/weather/local/SPXX0050','MI22258177','','_self');
  71. if(MI22258994) MI22258994.style.color = '#000000';WSIV22234237('MI22238629','Oslo','/weather/local/NOXX0029','MI22258177','','_self');
  72. if(MI22238629) MI22238629.style.color = '#000000';WSIV22234237('MI22246408','Paris','/weather/local/FRXX0076','MI22258177','','_self');
  73. if(MI22246408) MI22246408.style.color = '#000000';WSIV22234237('MI22233437','Rome','/weather/local/ITXX0067','MI22258177','','_self');
  74. if(MI22233437) MI22233437.style.color = '#000000';WSIV22234237('MI22243537','Vienna','/weather/local/AUXX0025','MI22258177','','_self');
  75. if(MI22243537) MI22243537.style.color = '#000000';WSIV22234237('MI22239560','Warsaw','/weather/local/PLXX0028','MI22258177','','_self');
  76. if(MI22239560) MI22239560.style.color = '#000000';WSIV22234237('MI22234076','Zurich','/weather/local/SZXX0033','MI22258177','','_self');
  77. if(MI22234076) MI22234076.style.color = '#000000';CloseSubBoxV();
  78. CloseTopItemV();
  79. }
  80. else
  81. WTHV22234237('Europe','/search/drilldown/?geoCd=5&geoCdChild=4&itemCd=EUR&countryCd=US&itemName=Europe&countryName=*&what=WeatherCity','','_self');
  82. WTHV22234237('Asia','/search/drilldown/?geoCd=5&geoCdChild=4&itemCd=ASIA&countryCd=US&itemName=Asia&countryName=*&what=WeatherCity','','_self');
  83. if(bBrowserOK==1) {
  84. WTIV22234237('MI22249830','Australia','/search/drilldown/?geoCd=4&geoCdChild=1&itemCd=AS&countryCd=US&itemName=Australia&countryName=Australia&what=WeatherCity','','_self');
  85. WSBV22234237('MI22249830');
  86. WSIV22234237('MI22233913','Melbourne','/weather/local/ASXX0075','MI22249830','','_self');
  87. if(MI22233913) MI22233913.style.color = '#000000';WSIV22234237('MI22226242','Perth','/weather/local/ASXX0089','MI22249830','','_self');
  88. if(MI22226242) MI22226242.style.color = '#000000';WSIV22234237('MI22232653','Sydney','/weather/local/ASXX0112','MI22249830','','_self');
  89. if(MI22232653) MI22232653.style.color = '#000000';CloseSubBoxV();
  90. CloseTopItemV();
  91. }
  92. else
  93. WTHV22234237('Australia','/search/drilldown/?geoCd=4&geoCdChild=1&itemCd=AS&countryCd=US&itemName=Australia&countryName=Australia&what=WeatherCity','','_self');
  94. WTHV22234237('Africa','/search/drilldown/?geoCd=5&geoCdChild=4&itemCd=AFR&countryCd=US&itemName=Africa&countryName=*&what=WeatherCity','','_self');
  95. WTHFV22234237('MI22233193','<font size=1><a href="http://my.weather.com/myweather/preferences">My Weather</a> Preferences</font>');
  96. document.write('<tr><td><span STYLE="position:relative;" class="MTI22234237"><hr size=1><FORM METHOD="post" ACTION="http://www.weather.com/search/search"><font color=#8050F0>Choose an outlook:<br><SELECT NAME="what"><OPTION VALUE="WeatherCity">Local Outlook</OPTION><OPTION VALUE="SkiPlanner">Ski Outlook</OPTION></SELECT><br>Enter city or zip:<br><INPUT TYPE="text" NAME="where" SIZE="10"><INPUT TYPE=SUBMIT NAME="Go" VALUE="Go"></FORM></span></TD><td> </TD></tr>');
  97. document.write('</table></td></tr>');
  98. document.write('</table></SPAN>');
  99.