常用html代码
1)贴图:<img src="图片地址"> 2)加入连接:<a href="所要连接的相关地址">写上你想写的字</a> 3)在新窗口打开连接:<a href="相关地址" target="_blank">写上要写的字</a> 4)移动字体(走马灯):<marquee>写上你想写的字</marquee> 5)字体加粗:<b>写上你想写的字</b> 6)字体斜体:<i>写上你想写的字</i> 7)字体下划线: <u>写上你想写的字</u> 8)字体删除线: <s>写上你想写的字</s> 9)字体加大: <big>写上你想写的字</big> 10)字体控制大小:<h1>写上你想写的字</h1> (其中字体大小可从h1-h5,h1最大,h5最小) 11)更改字体颜色:<font color="#value">写上你想写的字</font>(其中value值在000000与ffffff(16位进制)之间 12)消除连接的下划线:<a href="相关地址" style="text-decoration:none">写上你想写的字</a> 13)贴音乐:<embed src=音乐地址 width=300 height=45 type=audio/mpeg autostart="false"> 14)贴flash: <embed src="flash地址" width="宽度" height="高度"> 15)贴影视文件:<img dynsrc="文件地址" width="宽度" height="高度" start=mouseover> 16)换行:<br> 17)段落:<p>段落</p> 18)原始文字样式:<pre>正文</pre> 19)换帖子背景:<body background="背景图片地址"> 20)固定帖子背景不随滚动条滚动:<body background="背景图片地址" body bgproperties=fixed> 21)定制帖子背景颜色:<body bgcolor="#value">(value值见10) 22)帖子背景音乐:<bgsound="背景音乐地址" loop=infinite> 23)贴网页:<iframe src="相关地址" width="宽度" height="高度"></iframe> 24。字体被颜色围绕 <font style="filter: glow(color=blue,strength=3); height:10px; color:white; padding:1px">内容</font> 25。产生光晕效果的文字 <font style="filter: glow(color=blue,strength=3); height:10px; color:white; padding:1px">我先做个示范</font> 26。向上滚动的字,<marquee direction="up">这个是向上滚动的<p>不管怎么滚动<p>希望你钞票赚多多<p>呵呵</marquee> 27,横向滚动字幕,<marquee scrolldelay=5 scrollamount=50>幸福,不要忘记好好学习哦</marquee> 28。可以把图片放到任何地方的代码<EMBED style="RIGHT: 0px; WIDTH: 1000px; POSITION: absolute; TOP: 0px; HEIGHT: 1600px" align=right src=http://imgfree.21cn.com/free/flash/59.swf type=application/octet-stream ;; quality="high" wmode="transparent"></EMBED>
文字链接代码: 如果您想点击某处文字会连接到另外一个网页的效果,这是超链接,代码是这样: <a href=http://lzwebsky.com;>天空综合网</a>
如果要点了这个文字以后重新打开一个窗口的话,代码是: <a href=http://lzwebsky.com;; target="_blank">天空综合网</a>
在网站上放图片的代码: 如果你看到一个好看的图片想放到网站上,代码是这样的:
<img src="图片地址"; width="150" height="100">
后面的数字调节图片的尺寸大小。
图片链接代码: 如果要点一下图片就能打开一个网站的链接代码是这样的:
<a href="网站地址";><img src="图片地址"; width="150" height="100"></a>
如果要点一下图片就能打开一个网站的链接,并且重新打开一个窗口。代码是这样的:
<a href="网站地址";; target="_blank"><img src="图片地址"; width="150" height="100"></a>
上面的数字都能调节图片尺寸大小。
换行代码:
如果你想换行,直接用Enter键是不行的,需要在您想换行的位置输入<br> ,这样就会分成两行显示 ,整个网站看起来也不会是一大片了,而是段落分明。
文字移动的代码是:
<marquee>文字</marquee>
移动图片的代码: <marquee><img src="图片地址";><img src="图片地址";><img src="图片地址";><marquee>
把里面的图片地址换成你的就行 想多放一个图片就按照格式在中间插入:
<img src="图片地址";> 里面的图片地址自己定。
背景音乐的代码: 如果想在你的网站上放上一段好听的背景音乐,代码是: <bgsound src="http://xxxxx.com/xxx.mid";loop=10>
<bgsound src="http://www.midifan.com/midi/music.asp?id=3073";loop=30>
里面的背景音乐地址你能自己替换。
前面的是音乐地址,一般都以mid或者mp3的形式结尾 后面的数字是播放次数。 [url=http://www.midifan.com/midi/][color=#0000ff]http://www.midifan.com/midi/[/color][/url] 这个网站都有好的背景音乐
在网站中插入一个flash动画的代码是:
<embed width=200 height=200 src="flash地址";>
里面的动画地址换成你的.动画地址都要以swf的形式结尾。这点需要注意。
打开网站时候出现的欢迎词代码: <body onLoad= alert("你好,XXX")>
跳转代码: <head> <title>正在进入>>> Loading>>> </title> </head> <body bgcolor="#FFFFFF" text="#000000"> <p> </p><tr> <td width=724> <p align=center><font color="red" size="2">正在进入,请等待,谢谢......</font></p></td></tr><tr> <td width="724"> <p align=center> <form name=loading> <div align=center> <p> <input type=text name=chart size=46 style="font-family:Arial; font-weight:bolder; color:rgb(124,119,119); background-color:white; padding:0px; border-style:none;"> <br> <input type=text name=percent size=46 style="color:rgb(138,134,134); text-align:center; border-width:medium; border-style:none;"><script>var bar = 0 var line = "||" var amount ="||" count() function count(){ bar= bar+2 amount =amount + line document.loading.chart.value=amount document.loading.percent.value=bar+"%" if (bar<99) {setTimeout("count()",10);} else {window.location = "http://lzwebsky.com";} }</script> <p align="center">如果您的浏览器不支持跳转,<a style="TEXT-DECORATION: none" href="http://lzwebsky.com"><font color="#ff0000">请点这里</font></a>.</p> </body>
网页内容引用: <IFRAME align=center marginWidth=0 marginHeight=0 src="引用链接地址" frameBorder=0 width=468 scrolling=no height=20></IFRAME>
|