我有一个网站,我希望天气预报显示,但以非常具体的方式。假设一个访问者访问我的网站,在我的天气预报文本框中搜索“孟买”。然后,他将得到未来几天的“孟买”天气预报。同样的情况也应该发生在其他城市。
有人能帮我解决这个问题吗?
发布于 2011-07-20 18:49:15
用小部件..。
<iframe marginheight="0" marginwidth="0" name="wxButtonFrame" id="wxButtonFrame" height="110" src="http://btn.weather.ca/weatherbuttons/template5.php?placeCode=INXX0026&category0=Cities&containerWidth=150&btnNo=&backgroundColor=blue&multipleCity=0&citySearch=1&celsiusF=C" align="top" frameborder="0" width="150" scrolling="no" allowTransparency="true"></iframe>c/o http://www.theweathernetwork.com/
也许你想看看如何使用天气网络服务:
因为你还没有真正表达你想要一个与这个问题相结合的数据库.这是我给你的最好的!
你真的不需要存储数据除非你有上百万的请求.此时,缓存结果是个好主意.
https://stackoverflow.com/questions/6766796
复制相似问题