部分天气预报脚本

http://www.tianqi123.com/main/small_page.html?url=http://www.tianqi123.com/tianqi/chengshi_153.html&city_name=合肥

<iframe src="http://www.tianqi123.com/small_page/chengshi_153.html?c0=red&c1=D96C00&bg=F4FFF4&w=178&h=20&text=yes" width=178 height=21 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no align=center id=url></iframe>


修改后
<iframe src="http://www.tianqi123.com/small_page/chengshi_153.html?c0=gray&c1=D96C00&bg=f2f2f2&w=278&h=20&text=yes" width=278 height=21 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no align=center id=url></iframe></td>
       <td width="75" style="width:18"><img src="../images/zxdttb.gif" />

 

如果您会HTML语言,您还可以在iframe代码中的url后面加参数,如:
chengshi_321.html?c0=F9DC68&c1=white&c2=FEFCE0&t1=red&bg=white&w=178&h=250&text=no
 
其中 c0 表示 表格第一行背景颜色,c1,c2表示表格其他行间隔的背景颜色,t1表示 标题颜色,bg 表示页面北京颜色,w表示表格宽度 h 表示表格高度
 
当 text=yes 时,将会出现滚动的天气文字,建议您自己调试看看,如:
chengshi_321.html??c0=red&c1=FF9900&bg=F4FFF4&w=178&h=20&text=yes
 
注意:颜色请不要加 # 符号,如 #FF9900 请写成 FF9900

 


<iframe id=image_frame_weather name=image_frame_weather src=http://weather.china.com.cn/city/58321_pic2.html width=189 height=30 scrolling=no frameborder=0  style=border:0px allowtransparency=true></iframe>

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值