| 
 | 
 
 
 楼主 |
发表于 2008-12-13 20:34:03
|
显示全部楼层
 
 
 
必须掌握的代码--推荐 
 
这些代码都是很常用的,这个教程也是我平时翻看最多的!!!  
 
给日志和留言里加连接代码  
 
要连接的地址 
 
保护主页图片不那么容易被盗 
 
<img oncontextmenu="return false" title="" height="440" src="您的图片地址" width="630" align="middle" border="0">  
 
没有边框的板块做法 
 
<div id="layer25" style="padding:0px; LEFT: 2px; OVERFLOW: hidden; WIDTH: 634px; POSITION: absolute; TOP: 0px; HEIGHT: 530px; zindex: 90" resiziable="true"> 你要加的代码 
 
去导航条的代码 
 
<img src="javascript:bt_1.style.display='none';bt_2.style.display='none';bt_3.style.display='none';bt_4.style.display='none';bt_5.style.display='none';bt_6.style.display='none';bt_7.style.display='none';bt_8.style.display='none';" style="display:none;">  
 
 
修改鼠标图片的代码 
 
<img src="javascript:document.body.style.cursor='url(\'鼠标图片的地址\')';"> 
 
鼠标地址点击这里查看 
 
换掉空间标题的代码 
 
<img src="javascript:document.title='标题名称';"> 
 
去掉滚动条的代码 
 
<img src="javascript:document.getElementById('initd').style.overflow='hidden';"> 
 
扩大空间区域代码 
 
<img src="javascript: document.getElementById('initd').style.left='0';document.getElementById('initd').style.top='0';document.getElementById('initd').style.width='925';document.getElementById('initd').style.height='655';"></img> 
 
 
 
艺术字代码 (大家可以修改字后看效果)  
<FONT style="FONT-SIZE: 30pt; FILTER: shadow(color=#AF0530); WIDTH: 100%; COLOR: #f90b46; LINE-HEIGHT: 100%; FONT-FAMILY: 隶书"><B>詠恒√家族论坛,欢迎各界朋友加入!</B><FONT>  
 
带有连接的艺术字  
<a href='http://722400.com' target='_blank'><FONT style="FONT-SIZE: 30pt; FILTER: shadow(color=#AF0530); WIDTH: 100%; COLOR: #f90b46; LINE-HEIGHT: 100%; FONT-FAMILY: 隶书"><B>『詠恒√家族』管理规定和群号!</B><FONT></a>  
字的大小修改FONT-SIZE: 30pt中的数字,颜色修改COLOR: #f90b46;  
 
 
  Flash代码 [代码中的Flash地址就是网上以.swf结尾的网址]  
</textarea><embed src='你的Flash地址'quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash' type='application/x-shockwave-flash' width=330 height=240></embed>  
 
  插入透明Flash [代码中的Flash特效地址就是网上以.swf结尾的网址]  
</textarea><IMG src="你图片的地址" border="0" width="646" height="220"><embed src="你要插的透明falsh的地址"; width="300" height="380" quality="high" wmode="transparent" align="right" style="position: absolute; left:0; top:0">  
 
  背景图代码 以及背景音乐代码  
</textarea><body background="你的背景地址">  
音乐代码 [代码中的音乐地址就是网上以.mp3/.midi/.wma结尾的网址] (由于日记标题有字数限制,所以请大家选择较短的音乐地址,否则背景音乐将失效)  
 
</textarea><embed src=你的音乐地址 width=0 height=0 loop= true> 该代码不显示播放器  
 
如果要显示播放器,可以调整width="0" height="0"这2个数值  
 
  MTV-电台代码 [代码中的视频文件地址就是网上以.rm/.wmv/.avi.mpg结尾的网址]  
 
(播放器的大小可以自己调整代码中的数值,只需改height =“高度”,width =“宽度”)  
 
</textarea><embed src= 你的视频地址 type=audio/x-pn-realaudio-plugin console=clip1 controls=ImageWindow height=124 width=180 autostart=false loop=true><br>  
要自动播放把代码中autostart=false中false换成true.  
 
 
  插入图片 [代码中的图片地址就是网上以.jpg/.bmp/.gif结尾的网址]  
 
</textarea><IMG src="你的图片地址" border="0" width="344" height="255">  
 
可以把这段代码放带图片代码前面,上面边框就会 覆盖,在配合调节图片代码中的数字和板块大小,就可以做出没有边框的板块!!  
<div id="layer25" style="padding:0px; LEFT: 2px; OVERFLOW: hidden; WIDTH: 634px; POSITION: absolute; TOP: 0px; HEIGHT: 530px; zindex: 90" resiziable="true">  
 
  改字体大小和颜色  
 
比较大的字   
<FONT color=#09f7f7 size=7><STRONG><SUP><FONT color=#99ff00>ゞ要写的字ゞ</FONT></SUP></FONT>  
 
只修改字的颜色 </textarea><font color=#ff0000>要修改字体和颜色的字</font> 好看的字体颜色有: #ff1493 #228b22 #4169e1 #9400d3 #ff0000 #daa520)  
 
只修改字的大小 </textarea><font size=5>要修改字体和颜色的字</font> size用来设置文字的大小。数字的取值范围从1—7,size取1时最小,取7时最大。  
 
只修改字的字体 </textarea><font face=华文行楷>要修改字体和颜色的字</font> face用来设置字体。如黑体、宋体、楷体_GB2312、仿宋_2312等等。  
 
同时修改字的颜色,大小,字体 </textarea><font face=华文行楷 size=5 color=#ff0000>要修改字体和颜色的字</font>  
 
<b>加粗</b> 加粗   
<i>斜体</i> 斜体   
<u>加下划线</u> 加下划线   
<s>加删除线</s> 加删除线  
<PRE>预设格式 令文件按照原始的排版方式显示 *好用,省去了频繁插入<br>与<p>的烦恼  
 
    艺术字代码  
 
发光文字代码  
 
</textarea><table style="FILTER: glow(color=#6699FF,direction=2)">  
 
<font color=#ffffff size=2>你要的文字</font>   
 
</table>  
 
其中color 是阴影的颜色,可以配合网页色调改变,direction 是设置阴影的强度。font color是原字体的颜色。  
 
左右移动的字   
<marquee>要写的字<marquee>  
 
3D文字效果: 代码:  
<style type="text/css">   
.3dfont { FILTER: glow(color=ffffff,strength=0) shadow(color=cccccc,direction:135); POSITION: relative; WIDTH: 100% }   
</style>   
<table border="0" width="100%">   
<tr>   
<td width="100%" class="3dfont"><font color="#008040">文字</font>   
 
浮雕的文字  
</textarea><table style="FILTER: dropshadow(color=#6699FF, offx=1, offy=1, positive=1);">   
 
<font color=#0000FF>你要的文字</font>   
 
</table>   
color是阴影的颜色,可以配合网页色调改变,positive是设置阴影的强度。offx;offy是设置的阴影和文字的距离;font color是原字体的颜色。  
 
阴影的文字  
</textarea><table style="FILTER: dropshadow(color=#cccccc, offx=2, offy=2, positive=2);">   
 
<font color=#6CABE7 size=2>你要的文字</font>   
 
</table>  
 
文本框字体  
 
</textarea><TEXTAREA STYLE="font:12px;font-family:Verdana;color:#666666">输入内容  
 
注:字体(font-family)还可以选用Arial,Tahoma等等;color可自行设定   
 
<TR> 表格列 border="5"边框宽度为5像素,bordercolor="Purple"边框顔色为紫色   
 
<TD> 表格栏 bgcolor="Green"表格背景顔色为绿色  
 
  插入超链接 (请注意:如果该链接为恶意链接的话,腾讯会自动屏蔽,请大家不要乱用)  
 
做文字链接 
</textarea>点击<a href='你要链接的地址' target='_blank'>文字说明</a>  
 
做图片链接  
[img]空间上传的图片地址[/img]</textarea><a href="你要链接的地址" title="文字说明",_blank>   
 
  插入表格  
</textarea><table border="2" width="340" bordercolor="#0000ff" bgcolor="#cococo">  
 
<tr>  
 
<td width="100%">  
 
<p align="center"></td>  
 
</tr>  
 
</table></tex:area>  
 
  其它代码 (代码加在日记内容里就对那篇日记起作用 加在日记标题里则对空间目录起作用)  
 
屏蔽右鍵代码 </textarea><body oncontextmenu="return false"> (这条代码可以防止日记源代码轻易被盜取,推荐使用)  
 
网页无法另存代码 </textarea><noscript><iframe src=*></iframe></noscript>  
 
网页透明代码 </textarea><body background-color:transparent>  
 
其他html代码  
 
Autostart   
是否在音乐下载完之后就自动播放。true 是,false 否   
 
loop   
是否自动反复播放。LOOP=2 表示重复两次,true 是,false 否   
 
hidden   
是否完全隐藏控制画面,true 为是,false 为否   
 
STARTTIME="分:秒"   
设定歌曲开始播放的时间。如 STARTTIME="00:30" 表示从第30秒处开始播放   
 
WIDTH="整数" 和 HIGH="整数"   
设定控制面板的高度和宽度.  
代码  
相关作用  
<br>  
换行  
<p>一段文字</p>  
段落  
<bgcolor="#00FF00">  
背景颜色(#00FF00为绿色)  
<text="#0000FF">  
字体颜色(#0000FF为蓝色)   
<p align="left">文字</p>  
文字左对齐   
<p align="center">文字</p>  
文字居中   
<p align="right">文字</p>  
文字右对齐  
 
提示:不能正常使用也与你所找地址的格式有关,请换个再试试!! |   
 
 
 
 |