修改Extmail天氣信息代碼

在網上找到一個更好的天氣信息查詢的代碼,大伙分享下:

1、修改 /var/www/extsuite/extmail/html/default/welcome.html 文件,修改以下這些代碼:

  1. <TD?width=230px?valign=top?style="">??
  2. ?????????????<div?class="panelout">??
  3. ????????????????<div?class="paneltit">?<%weatherinfo%></div>??
  4. ????????????????<div?class="panelin">??
  5. ????????????????</div>??
  6. ????????????????<!--?INCLUDE?'../plugins/weather.html'?-->??
  7. ?????????????</div>??
  8. ???????</TD>??

2、然后在 /var/www/extsuite/extmail/html/plugins/ 下添加文件weather.html,將下面代碼復制到文件內。

  1. <!DOCTYPE?html?PUBLIC?"-//W3C//DTD?XHTML?1.0?Transitional//EN"?"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">??
  2. <html?xmlns="http://www.w3.org/1999/xhtml">??
  3. <head>??
  4. <meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/>??
  5. </head>??
  6. <iframe?src="http://www.thinkpage.cn/weather/weather.aspx?uid=&cid=101210101&l=zh-CHS&p=CMA&a=0&u=C&s=1&m=1&x=1&d=3&fc=&bgc=&bc=&ti=1&in=1&li=2&ct=iframe"?frameborder="0"?scrolling="no"?width="200"?height="250"?allowTransparency="true"></iframe>??
  7. <body>??
  8. </body>??
  9. </html>??

20130604135640

天氣樣式可以根據自己喜好到 http://www.thinkpage.cn/weather/widget.aspx 生成!

發表評論

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: