您现在的位置是: 首页 > 天气资讯 天气资讯

天气预报预报html代码_天气预报插件html代码

tamoadmin 2025-01-06 人已围观

简介1.怎么在网页里添加天气预报额2.天气预报代码修改3.如何把天气预报代码添加到淘宝促销区4.求横向不滚动宁波地区的天气预报代码? 急!高分回报!5.求 网站显示天气的代码/*添加天气预报*/#m_mylink1 div.line{background:url(://firetear/weather/weather.aspx?city=%u5BBF%u8FC1&style=1) no-repeat

1.怎么在网页里添加天气预报额

2.天气预报代码修改

3.如何把天气预报代码添加到淘宝促销区

4.求横向不滚动宁波地区的天气预报代码? 急!高分回报!

5.求 网站显示天气的代码

天气预报预报html代码_天气预报插件html代码

/*添加天气预报*/

#m_mylink1 div.line{background:url(://firetear/weather/weather.aspx?city=%u5BBF%u8FC1&style=1) no-repeat bottom;line-height:40px;margin-bottom: 10px;margin-top:5px;padding-bottom: 138px}

先编辑自定义模块,链接地址为://.tq121.cn,然后更换为以上代码,(注意:要把地址换在你所在地的地址,可以到 ://firetear/weather 网站里去找,只需把生成代码里面SRC后面的地址替换以上地址即可)

怎么在网页里添加天气预报额

在添加天气预报之前,你得先添加(自定义面板),然后输入标题,勾选(显示源代码),在空白面板里粘贴如下代码,另外需要注意的是,代码显示可能不是你想要的城市,那么你就需要修改为你的城市的代码。

几段超酷实用的天气预报代码,整理如下:

第一种:

<iframe src=://weather.265/weather.htm width="160" height="54" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

效果: <IFRAME ID='ifm2' WIDTH='189' HEIGHT='190' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' SRC='://weather.qq/inc/ss258.htm'></IFRAME>

效果: 使用方法:以上显示的是九江的天气预报,你可以改成你自己的,打开页面:://weather.qq,在右边的框中

选择你所在的城市(比如选择南京),然后打开了这个页面:://weather.qq/preend.htm?dc244.htm,然后将网址中的244替换'://weather.qq/inc/ss258.htm'中的258,那么最后显示出来的就是南京的天气预报。

第三种:

<IFRAME ID='ifm2' WIDTH='260' HEIGHT='70' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' src="://news.sina.cn/iframe/weather/130101.html"></ifreame>

效果:

第四种:

<iframe width="469" height="218" border="0" align="center" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src=://news.qq/cgi-bin/news_weather_search?city=贵阳 allowTransparency="true"></iframe>

效果:

第五种:

<IFRAME ID='ifm1' WIDTH='405' HEIGHT='332' ALIGN='center' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' SRC="://weather.qq/24.htm"></IFRAME>

效果:

第六种:

<iframe width="145" height="130" border="0" align="center" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="://minisite.qq/Weather/news_new.html" allowTransparency="true"></iframe>

效果:

第七种:

以前很流行的一段代码(在Google上搜到的90%都是这一段),现在已经不能用了,特此写出来,以免大家浪费精力:

<iframe width="150" height="240" frameborder="0" scrolling="No" src='://news.qq/cgi-bin/news_qq_search?city=xxx'></iframe>

其中的“xxx”是每个城市的代码:比如武汉的就是%CE%E4%BA%BA

下面是其他的一些城市的编码:

上海-%C9%CF%BA%A3

北京-%B1%B1%BE%A9

青岛-%C7%E0%B5%BA

济南-%BC%C3%C4%CF

武汉-%CE%E4%BA%BA

福州-%B8%A3%D6%DD

以下得到其他城市的代码的方法:

baidu搜索一下城市的名称,比如"重庆",然后地址栏中的那个代码就是了这些中文字符如何编码变成%D6%D8%C7%EC这种的。比如得到的网址是:

://.baidu/s?wd=%D6%D8%C7%EC

后面的%D6%D8%C7%EC即是。

现在我给大家推荐一个专门提供天气预报和免费天气预报代码服务的网站:

天气123:中国城市天气预报(://.tianqi123/)

只要复制粘贴该网站提供的代码就可以了。

如下是3款(南京)效果图:

第八种:

<iframe src="://.tianqi123/small_page/chengshi_1189.html" width=160 height=248 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no align=center id=url></iframe>

第九种:

<iframe src="://.tianqi123/small_page/chengshi_1189.html?c0=F9DC68&c1=white&c2=FEFCE0&t1=red&bg=white&w=160&text=no" width=160 height=248 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no align=center id=url></iframe>

第十种:

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

该天气代码高级使用方法:

如果您会HTML语言,您还可以在iframe代码中的url后面加参数,如:

chengshi_321.html?c0=F9DC68&c1=white&c2=FEFCE0&t1=red&bg=white&w=160&h=250&text=no

其中 c0 表示表格第一行背景颜色,c1,c2表示表格其他行间隔的背景颜色,t1表示标题颜色,bg 表示页面北京颜色,w表示表格宽度 h 表示表格高度

当 text=yes 时,将会出现滚动的天气文字,建议您自己调试看看,如:

chengshi_321.html?c0=red&c1=FF9900&bg=F4FFF4&w=160&h=20&text=yes

注意:颜色请不要加 # 符号,如 #FF9900 请写成 FF9900

````我的BLOG教程里面的东西 如果看着很烦琐 欢迎去我的BLOG 仔细研究

天气预报代码修改

<IFRAME marginWidth=0 marginHeight=0 src=" ://m.weather.cn/m/p7/weather1.htm" frameBorder=0 width=160 scrolling=no height=55></IFRAME> 〈IFRAME ID='ifm2' WIDTH='260' HEIGHT='70' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' src=" ://news.sina.cn/iframe/weather/420101.html"〉〈/iframe〉 具体根据你想显示的城市调用分别的代码,以下是部分城市代码: “110100″,”北京” “120100″,”天津” “130101″,”石家庄” “130201″,”唐山” “130301″,”秦皇岛” “130701″,”张家口” “130801″,”承德” “131001″,”廊坊” “130401″,”邯郸” “130501″,”邢台” “130601″,”保定” “130901″,”沧州” “133001″,”衡水” “140101″,”太原” “140201″,”大同” “140301″,”阳泉” “140501″,”晋城” “140601″,”朔州” “142201″,”忻州” “142331″,”离石” “142401″,”榆次” “142601″,”临汾” “142701″,”运城” “140401″,”长治” “150101″,”呼和浩特” “150201″,”包头” “150301″,”乌海” “152601″,”集宁” “152701″,”巴彦浩特” “152801″,”临河” “152921″,”鄂尔多斯” “150401″,”赤峰” “152301″,”通辽” “152502″,”锡林浩特” “152101″,”海拉尔” “152201″,”乌兰浩特” “210101″,”沈阳” “210201″,”大连” “210301″,”鞍山” “210401″,”抚顺” “210501″,”本溪” “210701″,”锦州” “210801″,”营口” “210901″,”阜新” “211101″,”盘锦” “211201″,”铁岭” “211301″,”朝阳” “211401″,”葫芦岛” “210601″,”丹东” “220101″,”长春” “220201″,”吉林” “220301″,”四平” “220401″,”辽源” “220601″,”松原” “222301″,”白城” “222401″,”延边” “220501″,”通化” “230101″,”哈尔滨” “230301″,”鸡西” “230401″,”鹤岗” “230501″,”双鸭山” “230701″,”伊春” “230801″,”佳木斯” “230901″,”七台河” “231001″,”牡丹江” “232301″,”绥化” “230201″,”齐齐哈尔” “230601″,”大庆” “232601″,”黑河” “232700″,”大兴安岭” “310100″,”上海” “320101″,”南京” “320201″,”无锡” “320301″,”徐州” “320401″,”常州” “320501″,”苏州” “320600″,”南通” “320701″,”连云港” “320801″,”淮阴” “320901″,”盐城” “321001″,”扬州” “321101″,”镇江” “321102″,”泰州” “321103″,”宿迁” 新浪天气预报代码(二): 这个样式本站不能提供预览,放上去就乱码。 〈IFRAME ID=''ifm2'' WIDTH=''240'' HEIGHT=''160'' ALIGN=''CENTER'' MARGINWIDTH=''0'' MARGINHEIGHT=''0'' HSPACE=''0'' VSPACE=''0'' FRAMEBORDER=''0'' SCROLLING=''NO'' src=" ://weather.sina.cn/iframe/weather/420101_w.html"〉 〈/ifreame〉 腾讯天气预报代码: 〈iframe width="145" height="130" border="0" align="center" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src=" ://minisite.qq/Weather/news_new.html" allowTransparency="true"〉〈/iframe〉 126天气预报代码: 〈iframe src=" ://mimg.126/tianqi/city_share/54511.html" frameborder="0" width="300" scrolling="no" height="100"〉〈/iframe〉 265天气根据IP自动获得当地的天气情况: 〈iframe src=" ://weather.265/weather.htm" width="168" height="54" frameborder="no" border="0" marginwidth="0&quoat; marginheight="0" scrolling="no"〉〈/iframe〉 一个<iframe></iframe>就是一种

如何把天气预报代码添加到淘宝促销区

试试我的过滤模块,不过我已经帮你调试好了,可以直接使用

<%

getContent=GetURL("://news.sina.cn/iframe/weather/130101.html")

Function GetURL(url)

Set Retrieval = Server.CreateObject("Microsoft.XMLHTTP")

With Retrieval

.Open "GET", url, false

.setRequestHeader "Content-Type","lication/x--form-urlencoded"

.Send

GetURL = .ResponseBody

End With

Set Retrieval = Nothing

GetURL=bstr(GetURL)

End Function

Function bstr(vIn)

Dim strReturn,i,ThisCharCode,innerCode,Hight8,Low8,NextCharCode

strReturn = ""

For i = 1 To LenB(vIn)

ThisCharCode = AscB(MidB(vIn,i,1))

If ThisCharCode < &H80 Then

strReturn = strReturn & Chr(ThisCharCode)

Else

NextCharCode = AscB(MidB(vIn,i+1,1))

strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))

i = i + 1

End If

Next

bstr = strReturn

End Function

Function FilterHTML(strToFilter)

Dim strTemp

strTemp = strToFilter

strTemp=replace(strTemp,"石家庄","")

strTemp=replace(strTemp,"更多城市","")

strTemp=replace(strTemp,"& gt;& gt;","")

strTemp=replace(strTemp,"[定制其他城市天气]","")

FilterHTML = strTemp

End Function

%>

<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#D4D0C8">

<tr>

<td><%response.Write FilterHTML(getContent)%></td>

</tr>

</table>

求横向不滚动宁波地区的天气预报代码? 急!高分回报!

<h3>代码一:调用265的天气预报代码</h3>

<h5>该代码能够根据IP自动获得当地的天气情况</h5>

<iframe src=" ://weather.265/weather.htm" width="170" height="55" frameborder="no" border="0"></iframe>

<hr><h3>代码二:QQ天气预报代码(一)</h3>

<h5>该代码的缺点是,上面的4个城市是既定的,无法改成别的</h5>

<iframe width="145" height="138" border="0" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" src=" ://minisite.qq/Weather/news_new.html" allowTransparency="true"></iframe>

<hr><h3>代码三:QQ天气预报代码(二)</h3>

<iframe width=410 height=340 frameborder=0 scrolling=NO src=" ://weather.qq/24.htm"></iframe>

<hr><h3>代码四:新浪天气预报代码</h3>

<iframe id="ifm2" width=260 height=70 frameborder=0 scrolling=NO src=" ://news.sina.cn/iframe/weather/130101.html"></iframe>

<hr>

求 网站显示天气的代码

在你的网页中实现为个天气预报的功能,在网页适当位置中加入如下代码:

<iframe allowtransparency=true name=weather src=://tianqi.2345/o/ scrolling=no frameborder=0 marginwidth=1 marginheight=1 height=70 width=300></iframe>

://news.163/weather/news/qx1/58044.html"</a>

width="289"

height="25"

marginwidth="1"

marginheight="1"

scrolling="no"

border="0"

frameborder="0">

://news.163/weather/news/qx1/58044.html

替换成你们地区的地址就可以了

可以到

://news.163/weather/

来查你们城市的代码

比如查看广东广州的天气预报,你查看到地址是:

://weather.news.163/info/59287-1.html

你只要把

55044

替换成59287就可以了