天气预报代码
第一款 <iframe name="I1" src="http://weather.qq.com/inc/ss150.htm" width="250" height="240"> </iframe> 第二款: <iframe name="I1" src="http://panel.qq.com/hd/weather.shtml" width="300" height="250"> 第三款: <iframe name="I1" src="http://minisite.qq.com/Weather/qqmini.html" width="300" height="250">
主页加滚动新闻
CCTV代码:
<table border=0 cellspacing=1 cellpadding=0 width='98%'> <td valign="top"><div align="center"> <iframe src="http://www.cctv.com/homepage/46/index.shtml"; name="express" width="354" height="16" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"></iframe> </div> </table>
新浪代码:
<table border=0 cellspacing=1 cellpadding=0 width='98%'> <tr align=center><td colspan=15 align=center bgcolor='#FFFFFF' height=30><iframe name=sina_roll src=http://news.sina.com.cn/o/allnews/input/index.html height=15 width=100% Frameborder=No Border=0 Marginwidth=0 Marginheight=0 Scrolling=No></iframe></td></tr> </table>
背景音乐代码
</textarea><embed src=http://你的背景音乐地址 width=0 height=0 loop= true> (此代码不显播放器)
</textarea><embed src=http://你的背景音乐地址 width=2 height=2 loop= true> (此代码显播放器)
1.如何得到音乐地址... 首先打开百度音乐搜索 http://mp3.baidu.com 输入歌名..格式(只能是MP3和WMA)→查找
找到歌曲..点试听.. 注意:要能听见的..而且听起来不卡的....!!!!(重要)
试听里边有个播放器..播放器右上方有个地址.. 右键点击地址...→复制快捷方式
进入音乐盒..点添加 把歌曲地址复制到这里..
添加好以后要在歌曲后边的绿色加号上打勾才能自动播放..!(重要)
温馨提示:由于日记标题有字数限制,所以请大家选择较短的音乐地址,否则背景音乐将失效
视频MTV代码(地址要以.rm/.wmv/.asf/.avi/.mpg结尾)
(播放器的大小可以自己调整代码中的数值,只需改height =“高度”,width =“宽度”)
以.wmv或者.asf结尾:
</textarea><embed src=http://你的视频文件地址 width=360 height=280 loop= true>
以.rm结尾:
</textarea><embed src=http://你的视频文件地址 type=audio/x-pn-realaudio-plugin console=clip1 controls=ImageWindow height=124
width=180 autostart=true loop=true>
以.avi或者.mpg结尾:
</textarea><embed src="音樂源地址" border="0" width="320" height="240" type="application/x-mplayer2"></embed>
小技巧,想要当你的好友一登陆你的空间就能马上听到最新的音乐视听吗? 技巧在于代码结尾加上wid, 如下 </textarea><embed src=http://你的音乐地址 width=360 height=280 wid>
本文出自 51CTO.COM技术博客 |