一个漂亮实用的时间和天气预报的代码

作者:我就是个世界 发表于:2008-12-01
[img][attach]148[/attach][/img]

[quote][code]
<div id="datetime">
  <SCRIPT language=javascript><!--
    function getFullYear(d) {    //d is a date object
      yr=d.getYear();if(yr<1000)
      yr+=1900;return yr;
    }
    document.write("<div width='285'>");//don't delete this line
    document.write("&nbsp;"+getFullYear(today)+"年"+isnMonths[today.getMonth()]+""+today.getDate()+"日&nbsp;"+isnDays[today.getDay()]);
    document.writeln("<iframe allowTransparency=true src=\'http:\/\/weather.cn.yahoo.com\/cframe.html\' scrolling=no border=0 frameborder=0 marginwidth=1 marginheight=1 height=\'30\' width=\'170\' style=\"margin-top:-2px; margin-bottom:-7px; padding-bottom:0px;\")><\/iframe>")
    document.write("</div>"); // don't delete this line
    //-->
  </SCRIPT>
</div>
[/code][/quote]

分享:

扫一扫在手机阅读、分享本文

请发表您的评论