<SCRIPT>
function getcookie(name) {
var my_cookie = document.cookie;
var start = my_cookie.indexOf(name + "@weather.qq.com" + "=");
if (start == -1) return '';
start += name.length + 16; //1 stands of '='
var end = my_cookie.indexOf(";" ,start);
if (end == -1) end = my_cookie.length;
return my_cookie.substr(start, end - start);
}
       var v=getcookie('default_city');
       if (v == '') v=80;
       document.write("<IFRAME ID='ifm2' WIDTH='175' HEIGHT='210' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' SRC='http://weather.qq.com/inc/ss" + 125 + ".htm'></IFRAME>");
</SCRIPT>
放入<body></body>之间即可
posted on 2006-04-27 18:47  独蠢无双  阅读(397)  评论(0编辑  收藏  举报