当前页面: 开发资料首页 → Javascript 专题 → 根据IP自动获取所在地天气预报
摘要: 根据IP自动获取所在地天气预报
265天气预报代码:
<textarea class=fm id=code1 style="WIDTH: 491px; HEIGHT: 101px" rows=6 cols=78><iframe src="http://weather.265.com/weather.htm" width="168" height="54" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
<iframe src="http://www.webjx.com/" width="100%" height="100%" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></textarea>
<input style="CURSOR: hand" onfocus=this.blur() onclick="runEx('code1')" type=button value=运行代码> <input style="WIDTH: 95px; CURSOR: hand" onfocus=this.blur() onclick=cycode(code1) type=button value=复制到剪贴板 name=Submit> <input style="CURSOR: hand" onfocus=this.blur() onclick=svcode(code1) type=button value=另存代码> [Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
QQ天气预报代码(一):
<textarea class=fm id=code2 style="WIDTH: 491px; HEIGHT: 118px" rows=8 cols=78><iframe width="145" height="130" border="0" align="center" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="http://minisite.qq.com/Weather/news_new.h tml" allowTransparency="true"></iframe>
<iframe src="http://www.webjx.com/" width="100%" height="100%" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></textarea>
<input style="CURSOR: hand" onfocus=this.blur() onclick="runEx('code2')" type=button value=运行代码> <input style="WIDTH: 95px; CURSOR: hand" onfocus=this.blur() onclick=cycode(code2) type=button value=复制到剪贴板 name=Submit> <input style="CURSOR: hand" onfocus=this.blur() onclick=svcode(code2) type=button value=另存代码> [Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
QQ天气预报代码(二)
<textarea class=fm id=code3 style="WIDTH: 491px; HEIGHT: 111px" rows=7 cols=78><iframe ID='ifm2' WIDTH='189' HEIGHT='190' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' SRC='http://weather.qq.com/inc/ss258.htm'></iframe>
<iframe src="http://www.webjx.com/" width="100%" height="100%" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></textarea>
<input style="CURSOR: hand" onfocus=this.blur() onclick="runEx('code3')" type=button value=运行代码> <input style="WIDTH: 95px; CURSOR: hand" onfocus=this.blur() onclick=cycode(code3) type=button value=复制到剪贴板 name=Submit> <input style="CURSOR: hand" onfocus=this.blur() onclick=svcode(code3) type=button value=另存代码> [Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
新浪天气预报代码:
<textarea class=fm id=code style="WIDTH: 491px; HEIGHT: 91px" rows=6 cols=78><iframe ID='ifm2' WIDTH='260' HEIGHT='70' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' src="http://news.sina.com.cn/iframe/weather/130101.html"></iframe> <iframe src="http://www.webjx.com/" width="100%" height="100%" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></textarea>
<input style="CURSOR: hand" onfocus=this.blur() onclick="runEx('code')" type=button value=运行代码> <input style="WIDTH: 95px; CURSOR: hand" onfocus=this.blur() onclick=cycode(code) type=button value=复制到剪贴板 name=Submit> <input style="CURSOR: hand" onfocus=this.blur() onclick=svcode(code) type=button value=另存代码> [Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
</td> </tr> </table>