Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[经验] 免费的实时天气代码

[复制链接]
movie0772 发表于 2009-6-28 22:47:34 | 显示全部楼层 |阅读模式
UCHome插件
语言编码:  
插件名称:
插件作者:
适用版本:
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2. "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  6. <title>天气</title>
  7. <script src="http://mat1.qq.com/minisite/js/mini_v4.6.2008.js"></script>
  8. <script>
  9. /*hummerTest*/
  10. var hum_s0 = MiniSite.Cookie.get("X-TENCENT-TM2");
  11. var hum_d0 = 0;
  12. if (hum_s0 != null)
  13. {
  14. hum_d0 = parseInt(hum_s0);
  15. }
  16. else
  17. {
  18. hum_d0 = new Date();
  19. }
  20. var hum_tPoints=new Array(7);
  21. var hum_imgSendTimePoint;
  22. hum_tPoints[0]=new Date();
  23. </script>

  24. <style>
  25. .absolute{position:absolute;}
  26. body,td,th {
  27. font-size: 12px;
  28. }
  29. body {
  30. background-color: #d0e8d0;
  31. }
  32. a:link {
  33. text-decoration: none;
  34. }
  35. a:visited {
  36. text-decoration: none;
  37. }
  38. a:hover {
  39. text-decoration: underline;
  40. }
  41. a:active {
  42. text-decoration: none;
  43. }
  44. </style>

  45. </HEAD>
  46. <BODY>
  47. <div id="Wealth" style="position:absolute; left:2px; top:3px; width:176px; height:21px; z-index:1"></div>

  48. <script>
  49. MiniSite.Weather.print("Wealth");
  50. </script>

  51. </body>
  52. </html>
复制代码


直接使用,不用作修改了。

演示地址:http://www.bbs996.com/
8460 发表于 2009-6-28 22:55:39 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

arnol 发表于 2009-6-28 23:46:41 | 显示全部楼层
路过看看~~~~~~~~~
回复

使用道具 举报

 楼主| movie0772 发表于 2009-6-30 19:56:51 | 显示全部楼层
<iframe src="http://www.bbs996.com/996/tool/weather.htm " frameborder="0" width="130" height="20" marginheight="0" marginwidth="0" scrolling="no"></iframe>
可以用上这段代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-16 06:03 , Processed in 0.101495 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表