<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[网页常用HTML的精品代码]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[代码编程]]></category>
<pubDate>Thu, 07 Sep 2006 00:22:27 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	一、最常用的代码<br/>1、文字加粗 倾斜的代码<br/>*文字加粗的代码是: &lt;b&gt;你好&lt;/b&gt; *文字倾斜的代码是: &lt;i&gt;你好！&lt;/i&gt; *底线字：&lt;u&gt;&lt;/u&gt;<br/><br/>2、文字链接代码<br/>如果您想点击某处文字会连接到另外一个网页的效果，这是超链接，代码是这样：<br/>&lt;a href=&quot;http://www.stasp.com/index.asp&quot;;&gt;网站制作指南&lt;/a&gt;如果要点了这个文字以后重新打开一个窗口的话，代码是：&lt;a href=&quot;网站地址&quot;;; target=&quot;_blank&quot;&gt;九州在线&lt;/a&gt;<br/><br/>3、在网站上放图片的代码<br/>如果你看到一个好看的图片想放到网站上，代码是这样的：<br/>&lt;img src=&quot;http://www.stasp.com/siton.gif&quot;; width=&quot;88&quot; height=&quot;31&quot;&gt;<br/>后面的数字调节图片的尺寸大小。<br/><br/>4、图片链接代码<br/>如果要点一下图片就能打开一个网站的链接代码是这样的： <br/>&lt;a href=&quot;http://www.stasp.com/index.asp&quot;;&gt;&lt;img src=&quot;http://www.123.com/images/n/163logo.gif&quot;; width=&quot;150&quot; height=&quot;100&quot;&gt;&lt;/a&gt;<br/>如果要点一下图片就能打开一个网站的链接，并且重新打开一个窗口。代码是这样的： <br/>&lt;a href=&quot;http://www.stasp.com/index.asp&quot;;; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://www.123.com/images/n/163logo.gif&quot;; width=&quot;150&quot; height=&quot;100&quot;&gt;&lt;/a&gt;上面的数字都能调节图片尺寸大小。<br/>只显示图片代码: &lt;img border=0 src=&quot;图片地址&quot; height=100 width=100&gt; <br/><br/>5、换行代码<br/>如果你想换行，直接用Enter键是不行的，需要在您想换行的位置输入&lt;br&gt;<br/>，这样就会分成两行显示 ，整个网站看起来也不会是一大片了，而是段落分明。<br/><br/>6、移动文字 <br/>&lt;marquee width=&quot;157&quot; height=&quot;21&quot;&gt;你想要的文字&lt;/marquee&gt;<br/><br/>7、移动图片的代码<br/>&lt;marquee&gt;&lt;img src=&quot;http://es.tom.com/images/2002/gamemm/0604/s/36.jpg&quot;;&gt;&lt;img src=&quot;http://es.tom.com/images/2002/gamemm/0604/s/13.jpg&quot;;&gt;&lt;img src=&quot;http://es.tom.com/images/2002/gamemm/0604/s/30.jpg&quot;;&gt;&lt;marquee&gt;<br/>把里面的图片地址换成你的就行 想多放一个图片就按照格式在中间插入：<br/>&lt;img src=&quot;http://es.tom.com/images/2002/gamemm/0604/s/13.jpg&quot;;&gt;<br/>里面的图片地址自己定。 <br/><br/><br/>二、比较常用的代码<br/><br/>1. Flash代码 (写在日记内容里，或者在主页新模块的网址里) [代码中的Flash地址就是网上以.swf结尾的网址] <br/>&lt;embed src=’http://你的Flash地址’quality=high pluginspage=’[url]http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash[/url]’ type=’application/x-shockwave-flash’ width=330 height=240&gt;&lt;/embed&gt; &nbsp;<br/>注意: width=330 height=240 这个是指在模板上插入的FLASH的大小。 width=是宽度 height=是高度 所有代码都是一样,可以自己修改下. <br/><br/><br/>2. 背景音乐代码 (写在超级连接名称里) [代码中的音乐地址就是网上以.mp3/.midi/.wma/.wmv结尾的网址] <br/>显示播放器: &lt;EMBED src=http://你的音乐地址&gt; <br/>不显示播放器: &lt;EMBED SRC=http://你的音乐地址 width=&quot;0&quot; height=&quot;0&quot; loop=&quot;true&quot;&gt; <br/><br/>　　　　 <br/>3. 视频MTV代码 (写在网址处~也就是URL地址的地方) [代码中的视频文件地址就是网上以.rm结尾的网址] <br/>&lt;embed SRC=你的视频文件地址 type=audio/x-pn-realaudio-plugin CONSOLE=Clip1 <br/>CONTROLS=ImageWindow HEIGHT=124 WIDTH=180 AUTOSTART=true loop=true&gt; <br/>↑高度 ↑宽度 <br/>还一个MTV代码也可用 &lt;embed src=http://你的mtv地址&gt; 这个只是不能调整大小. <br/><br/><br/>4. 电台代码 [代码中的电台地址就是网上以.asp结尾的网址] （写在网址处就是URL地址处） <br/>&lt;embed SRC=你的电台地址 type=audio/x-pn-realaudio-plugin CONSOLE=Clip1 CONTROLS=ImageWindow HEIGHT=124 WIDTH=180 AUTOSTART=true loop=true&gt; <br/>例如: (随自己喜欢,一些DJ电台好玩哦!) <br/>[url]mms://220.191.131.206/jxyinyue[/url] <br/><br/><br/>5. 移动公告&lt;marquee style=&quot;color:#3333FF;font-size:12px;line-height:17px;&quot; direction=&quot;up&quot; height=&quot;50&quot; scrollamount=&quot;1&quot; scrolldelay=&quot;615&quot; onMouseOver=&quot;this.scrollDelay=500&quot; onMouseOut=&quot;this.scrollDelay=1&quot;&gt;歡迎光臨我的Ｑ-ＺＯＮＥ <br/>&lt;br&gt;又说什么． <br/>&lt;br&gt;这里又说什么. <br/>&lt;br&gt;还要说什么． <br/>&lt;br&gt;哈哈,没有了,自己想添加多少可以复制多行就可以了~~！ <br/>&lt;br&gt;这样明白吗? <br/>&lt;/td&gt;&lt;/marquee&gt; <br/>注： <br/>direction=&quot;up&quot; 将UP改为down就是下移动,左left,右right``` <br/>font-size:12px　　 字体大小 <br/>color:#3333FF 　　　字体颜色 #333FF <br/><br/>6.移动友情连接代码，跟上面一样可以修改！ 　　　　 <br/>&lt;marquee direction=up height=150 scrollamount=1 scrolldelay=60 width=&quot;100%&quot;&gt; <br/>&lt;img border=0 src=&quot;图片地址1&quot;&gt;&lt;br&gt; <br/>&lt;img border=0 src=&quot;图片地址2&quot;&gt;&lt;br&gt; <br/>&lt;img border=0 src=&quot;图片地址3&quot;&gt;&lt;br&gt; <br/>&lt;img border=0 src=&quot;图片地址4&quot;&gt;&lt;br&gt; <br/>&lt;/marquee&gt; <br/>需要加多少自己加吧! 滚动上下左右修改方法跟上面移动公告一样! <br/><br/><br/>7.天气预报: <br/>&lt;iframe scrolling=YES height=288 width=222 frameborder=0 marginHeight=0 marginWidth=0 src=http://minisite.qq.com/Weather/index.html&gt;&lt;/iframe&gt; <br/><br/><br/>8. 音乐播放: <br/>&lt;iframe src=音乐地址 frameborder=0 width=100% height=34&gt; <br/><br/>&lt;embed src=&quot;http://www.6kyx.com/Music/lz.wma&quot; hidden autostart=&quot;true&quot; loop=&quot;true&quot;&gt;<br/><br/>9.网页中加入背景音乐 <br/>IE: &lt;bgsound src=&quot;*.mid&quot; loop=infinite&gt; <br/>NS:&lt;embed src=&quot;*.mid&quot; autostart=true hidden=true loop=true&gt; <br/><br/>10. 主页加flash时钟： <br/>&lt;EMBED pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash src=&quot;flash时钟网址&quot; width=200 height=200 type=application/x-shockwave-flash&gt;&lt;/EMBED&gt; <br/>　多种flash时钟地址： <br/>[url]http://www.fengzhuju.com/page-00s/wzgg/clocks.htm[/url] <br/><br/><br/>11. 许愿代码： 　　　　 <br/>&lt;iframe name=&quot;jiro22&quot; src=&quot;http://free.ecaifly.com/wish/wish.asp?user=kjmdiba&quot; width=&quot;450&quot; height=&quot;350&quot;&gt;&lt;/iframe&gt; <br/><br/><br/>12. 百度搜索: (大小都调好的,不错!) <br/>&lt;iframe id=&quot;baiduframe&quot; border=&quot;0&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; framespacing=&quot;0&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot; width=&quot;140&quot; height=&quot;75&quot; src=&quot;http://unstat.baidu.com/bdun.bsc?tn=kjmdiba&amp;csid=105&amp;rkcs=0&amp;bgcr=FFFFFF&amp;ftcr=000000&amp;rk=0&amp;bd=1&amp;bdas=0&quot;&gt; <br/>&lt;/iframe&gt; <br/><br/><br/>13. 主页滚动新闻：如　CCTV代码： <br/>&lt;table border=0 cellspacing=1 cellpadding=0 width=’98%’&gt; <br/>&lt;td valign=&quot;top&quot;&gt;&lt;div align=&quot;center&quot;&gt; <br/>&lt;iframe src=&quot;http://www.stasp.com/index.asp&quot;; name=&quot;express&quot; width=&quot;354&quot; height=&quot;16&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt; <br/>&lt;/div&gt; <br/>&lt;/table&gt; <br/><br/>14. 日历代码： 　　　 <br/>&lt;iframe name=&quot;jiro23&quot; src=http://www.stasp.com/index.asp width=&quot;600&quot; height=&quot;600&quot;&gt;&lt;/iframe&gt; <br/>大小自己改 <br/><br/><br/>15. 插入网页代码： (整个网站都可以,这个代码灵活运用的话是很好的~~) <br/>&lt;IFRAME frameBorder=0 height=600 marginHeight=0 marginWidth=0 scrolling=yes src=&quot;网页地址&quot; width=800&gt;&lt;/IFRAME&gt; <br/><br/><br/>16. 设为首页代码： <br/>&lt;a style=cursor:hand onclick=this.style.behavior=’url(#default#homepage)’;this.setHomePage(’你空间的地址’)&gt;设为首页&lt;/a&gt; <br/><br/><br/>17. IP地址代码： <br/>&lt;iframe src=&quot;http://ip.91.com/ip/showip.asp?text=&amp;bg=&amp;line=2&amp;scro=1&amp;leng=140&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot; width=&quot;160&quot; height=&quot;36&quot; marginheight=&quot;4&quot; marginwidth=&quot;0&quot;&gt;&lt;/iframe&gt; <br/><br/><br/>18. 星座占卜: 1 <br/>&lt;iframe src=&quot;http://astro.qq.com/index/ladyastro.htm&quot; width=&quot;200&quot; height=&quot;320&quot; frameborder=&quot;no&quot; border=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt; <br/>　　星座占卜: 2 <br/>&lt;iframe src=&quot;http://act1.astro.women.sohu.com/search/search.htm&quot; width=&quot;200&quot; height=&quot;320&quot; frameborder=&quot;no&quot; border=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt; <br/><br/><br/>19. 日历代码: 　　　　<br/>　　红色时间日历代码： <br/>&lt;iframe scrolling=no height=170 width=165 frameborder=0 marginHeight=0 marginWidth=0 src=http://home.id666.com/user/420009598/disk/webdisk/55.html&gt;&lt;/iframe&gt; <br/>　　蓝色时间日历代码： <br/>&lt;iframe scrolling=no height=200 width=180 frameborder=0 marginHeight=0 marginWidth=0 src=http://www.8s8s.com/js/htm/time/date1.htm&gt;&lt;/iframe&gt; <br/><br/><br/>20. 弹出窗口代码: <br/>进入腾讯QQ空间主页:q-zone.qq.com,用自己的QQ号和密码登陆（注意：不要点击＂进入我的空间＂）新建1个新窗口，在地址栏里输入 (&quot;这里输入内容&quot;)&lt;/script&gt; 然后按回车键，提示“修改成功”即可。 <br/><br/><br/>21. 时间代码1: <br/>&lt;IMG src=&quot;http://escati.linkopp.net/cgi-bin/clock.cgi?prgb=00ffff&amp;timezone=GMT+0800&quot; border=&quot;0&quot; width=&quot;80&quot; height=&quot;20&quot;&gt; <br/><br/>　　时间代码2：<br/>&lt;iframe src=&quot;http://bjtime.cn/time/?color=ff0000&amp;size=9pt&amp;bg=ffffff&amp;bold=0&quot; width=200 height=20 frameborder=0&gt;&lt;/iframe&gt;<br/>参数说明：<br/>color－字体颜色，默认为000000<br/>size－字体大小，默认为18pt<br/>bg－背景颜色，默认为ffffff<br/>bold－是否粗体，1:是，0:不是，默认为1<br/>width－显示区的宽度，请选择合适宽度<br/>height－显示区的高度，请选择合适高度<br/><br/>　　时间代码3：<br/>&lt;embed src=&quot;http://biz.cnhoo.com/wz/test/top8.swf&quot; quality=&quot;high&quot; style=&quot;position: absolute; left: 20 top: 6; width:675px; height:208px&quot; ;; wmode=&quot;transparent&quot;&gt;<br/><br/><br/><br/>22.显示日期 <br/>&lt;script language=&quot;javascript&quot;&gt;&lt;!-- <br/>today=new Date(); <br/>var week; var date; <br/>if(today.getDay()==0) week=&quot;星期日&quot; <br/>if(today.getDay()==1) week=&quot;星期一&quot; <br/>if(today.getDay()==2) week=&quot;星期二&quot; <br/>if(today.getDay()==3) week=&quot;星期三&quot; <br/>if(today.getDay()==4) week=&quot;星期四&quot; <br/>if(today.getDay()==5) week=&quot;星期五&quot; <br/>if(today.getDay()==6) week=&quot;星期六&quot; <br/>date=(today.getYear())+&quot;年&quot;+(today.getMonth()+1)+&quot;月&quot;+today.getDate()+&quot;日&quot;+&quot; &quot; <br/>document.write(&quot;&lt;span style=&#039;font-size: 9pt;&#039;&gt;&quot;+date+week+&quot;&lt;/span&gt;&quot;); <br/>// --&gt; <br/>&lt;/script&gt;<br/><br/><br/>23.邮箱链接代码：<br/>&lt;a href=&quot;mailto:邮箱&quot;&gt;邮箱名称&lt;/a&gt;<br/>邮箱如：[email]ttt@163.com[/email] &nbsp; 邮箱名称可以是中文也可以是其它。 <br/><br/>Tags - <a href="http://www.dzhope.com/tags/%25E7%2589%25B9%25E6%2595%2588%25E4%25BB%25A3%25E7%25A0%2581/" rel="tag">特效代码</a> , <a href="http://www.dzhope.com/tags/html/" rel="tag">html</a> , <a href="http://www.dzhope.com/tags/%25E7%25B2%25BE%25E5%2593%2581%25E4%25BB%25A3%25E7%25A0%2581/" rel="tag">精品代码</a>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] 网页常用HTML的精品代码]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>