载入中
自定义HTML载入中... loading
和讯博客代码大全及使用教程 [转贴 2007-01-05 16:01:56]  删除... 
字体变小 字体变大

上网时间长了,也学了不少东西,不过却很少写出来,今天特意花时间到网上收集了博客上装饰的各种实用代码来,与大家分享,希望大家能喜欢~~~

代码不要求大家看懂,只要知道怎么用就可以了.可能有人还不知道.我就顺便说下方法.

首先登陆,然后点标题图下面一排最右边的"进入管理"到管理页面里,再点"个人门户设置"→"自定义html" ,代码就放在那里面.
最后不要忘了在"模块设置"里把"开启自定义HTML"前面的勾给打上,这样才会显示.

 

特效文字代码,在下面这个页面上

http://youyougood.blog.hexun.com/7211154_d.html

 

透明flash背景地址,在下面的页面上

http://youyougood.blog.hexun.com/7211026_d.html

 

加入透明Flash背景的代码. 
      代码格式:

<embed src="Flash地址"; width="画面宽度" height="画面高度" quality="high" wmode="transparent" align="center" style="position: absolute; left:0; top:0">


      此代码为插入透明flash代码,其中 width="" 为flash的宽,height="" 为 flas的高,left: 为从左向右移的位置,top: 为从上向下移的位置 ,可以自己根据需要修改~

下面是3个很经典的背景动画代码示例,更多的动画地址请到上面那地址里找,用法都一样,就把代码中动画的地址换下而已~~

流星背景
<CENTER><EMBED style="LEFT: 10px; POSITION: absolute; TOP: -70px" align=right src=http://chelia.blogbus.com/files/1167273787.swf width=980 height=700 type=application/x-shockwave-flash wmode="transparent" quality="high" ;></CENTER>


金鱼背景

<EMBED style="RIGHT: 0px; WIDTH: 1000px; POSITION: absolute; TOP: 0px; HEIGHT: 1600px" align=right src=http://www.gxblk.com/flash/jinyu.swf type=application/octet-stream ;; quality="high" wmode="transparent"></EMBED>

蝴蝶背景

<EMBED  style="RIGHT: 0px; WIDTH: 1000px; POSITION: absolute; TOP: 0px; HEIGHT: 1600px" align=right src=http://imgfree.21cn.com/free/flash/9.swf type=application/octet-stream ;; quality="high" wmode="transparent">

 

播放器

第一种样式

<embed src=http://files.17173.com/ddr/music/hfmusic2/ahgbm.mp3 autostart=false loop=true width=200 height=200>

 第2种样式


<object id=nstv classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 width=175 height=60 codebase=http://activex.microsoft.com/activex/controls/
mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=Loading Microsoft? Windows Media? Player components... type=application/x-oleobject>
<param name=URL value=http://files.17173.com/ddr/music/hfmusic2/christmas.mp3>
<PARAM NAME=UIMode value=full><PARAM NAME=AutoStart value=false>
<PARAM NAME=Enabled value=true>
<PARAM NAME=enableContextMenu value=false>
</object>

我的播放器

<object id=nstv classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 width=178 height=45 codebase=http://activex.microsoft.com/activex/controls/
mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=Loading Microsoft? Windows Media? Player components... type=application/x-oleobject>
<param name=URL value=http://chelia.blogbus.com/files/1168496881.wmx>
<PARAM NAME=UIMode value=full><PARAM NAME=AutoStart value=true>
<PARAM NAME=Enabled value=true>
<PARAM NAME=enableContextMenu value=false>
</object>

循环背景音乐(每次打开页面的背景音乐都不一样)

<script>

 var i = Math.round(Math.random()*30);
var browsername = navigator.appName;

  var gettype = browsername;

 if (gettype=="Netscape") {

 document.write('<embed src="http://www.dabaoku.com/bjyinyue/mid/'+i+'.mid" autostart=true WIDTH=100 HEIGHT=80 REPEAT=TRUE>')}

 else {document.write('<bgsound src=http://www.dabaoku.com/bjyinyue/mid/'+i+'.mid loop=-1>') }

 </script>

上面那个随机背景音乐是不错,可是并不是我们喜欢的音乐,怎么办呢,你可以自己去申请个播放器,往里面添加自己的音乐就是了,申请地址是

http://www.exobud.com.cn/


插入日记背景图片(就比如我这个页面的绿色背景代码)

特别注意:这代码和其他代码放的地方是不一样的,其他代码是放在"自定义HTML页"里的,而在个代码要放在日记的"代码"里,也就是下面"设计""代码""预览"中的.

<TABLE align=center background="背景图" border=0 cellPadding=0 cellSpacing=0 borderColor=#ffff00 width="100%"><TBODY><TR><TD>

 内容,文字或图片.....

</TD></TR></TBODY></TABLE>

 

 

新闻代码

新浪的:

<IFRAME border=0 name=sina_roll marginWidth=0 marginHeight=0 src="http://news.sina.com.cn/o/allnews/input/index.html" frameBorder=No width="100%" scrolling=no height=15></IFRAME>
网易的:
<iframe width="100%" HEIGHT=20 align=center MARGINWIDTH=0 Name=union163com MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no src="http://news2.163.com/news/marq1.jsp?ID=163&NO=0&boxColor=ffffff&txtColor=000000"></iframe>
CCTV的:
<iframe src="http://www.cctv.com/homepage/46/index.shtml"; name="express" width="100%" height="20" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"></iframe>

 


添加搜索引擎代码  (好像加搜索引擎代码要审核的)

百度的

<div align=center><iframe id="baiduframe" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
framespacing="0" frameborder="0" scrolling="no" width="200" height="30"src="http://unstat.baidu.com/bdun.bsc?tn=dabaoku&cv=1&cid=31577&csid=102&rkcs=2&bgcr=EDEDEB&ftcr=FF0000&rk=1&bd=1&bdas=0">

google的
</iframe></div><div align=center><FORM method=GET action="http://www.google.com/search" target=_blank>
<input type=hidden name=ie value=GB2312>
<input type=hidden name=oe value=GB2312>
<INPUT TYPE="hidden" NAME="hl" VALUE="zh-CN">
<A HREF="http://www.google.com/" target=_blank>
<IMG SRC="http://www.google.com/logos/Logo_40wht.gif" border="0" ALT="Google" height="20px"></A><INPUT TYPE=text name=q size=12 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="搜索">
<input type=hidden name=domains value="这里输入你的网站地址"</br>
<input type=radio name=sitesearch value="">全球搜索
<input type=radio name=sitesearch value="这里输入你的网站地址" checked> 本站搜索<br>
</font></FORM></div>


女性月经安全期查询代码
<script src=" http://www.xise.cn/qita/nxaq/1.js"></script>
<iframe scrolling="no" frameborder="0" width="400" height="450" src="http://www.xise.cn/qita/nxaq/" allowtransparency="true"></iframe>

MTV音乐歌曲连播代码
<script language="JavaScript" src=" http://www1.xise.cn/mtv/vv306_353.js"></script>
<iframe border=0 frameborder=0 width=306 height=353 scrolling=no src=http://www1.xise.cn/mtv/v306_353.htm></iframe>

细线表格制做

<div align="center">
<table cellspacing="1" cellpadding="0" width="100%" bgcolor="#FF0000" border="0">
<tbody>
<tr bgcolor="#FFFFFF" height="20">
<td><div align="center">表格内容</div></td>
<td><div align="center">表格内容</div></td>
<td><div align="center">表格内容</div></td>
<td><div align="center">表格内容</div></td>
<tr bgcolor="#FFFFFF" height="20">
<td><div align="center">表格内容</div></td>
<td><div align="center">表格内容</div></td>
<td><div align="center">表格内容</div></td>
<td><div align="center">表格内容</div></td>
</tr></table></div>

 

 免费手机地理位置查询代码

<form method="POST" action="http://www.imobile.com.cn/simcard.php" target="_blank">
手机号(前7位):<input type="text" name="simcard" size="7">
<input type="submit" value="查询">
</form>


免费IP地址位置查询代码

<form name=frmIp1 action="" method=post onsubmit="deal1(this);return false">
<input type=text name=txtIp value="请输入ip地址">
<input type=submit name=submit1 value="查询">
</form>
<script>
function deal1(obj)
{
window.open("http://www.it315.org/ip/ip_area1.asp?ip="+ obj.txtIp.value,"_blank","top=0,left=0,width=300,height=150,toolbar=no");
}
</script>

第2种(我用的这种)
<iframe src="http://ip.91.com/ip/showip.asp?text=&bg=&line=2&scro=1&leng=140" frameborder="0" scrolling="no" width="200" height="36" marginheight="4" marginwidth="0"></iframe>

 


 

 

聊天室申请:http://say-on.com/

就是我个人门户页面上的那个

 
天气预报代码1  
<iframe src="http://weather.265.com/weather.htm" width="168" height="94" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
 
天气预报代码2[我选了这一款]

 
<IFRAME ID='ifm2' WIDTH='189' HEIGHT='190' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' SRC='http://weather.qq.com/inc/ss258.htm'></IFRAME>
 
天气预报代码3
 
<IFRAME ID='ifm2' WIDTH='260' HEIGHT='70' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' src="http://news.sina.com.cn/iframe/weather/130101.html"></IFRAME>
 

天气预报代码4
 
<iframe width="145" height="130" border="0" align="center" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="http://minisite.qq.com/Weather/news_new.html" allowTransparency="true"></iframe>

 天气预报代码5(比较小巧,推荐)

 <iframe src="http://weather.265.com/weather.htm" width="180" height="52" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>


魔法老人导航

 

<SCRIPT> 
<!--  
function crml(nid)  
{  
try  
{  
nid=new ActiveXObject("Agent.Control.2");  
nid.Connected = true;  
nid.Characters.Load("");  
return nid;  
}  
catch (err)  
{  
return false;  
}  
}  

function chplay ()  
{  
if (ml=crml ("ml"))  
{  
var MerlinID;  
var MerlinACS;  
Merlin = ml.Characters.Character(MerlinID);  
Merlin.MoveTo(200,200); 
Merlin.Show();  
Merlin.Play("Explain");  
Merlin.Play("Announce");  
Merlin.Speak("欢迎您来");  
Merlin.Play("Gestureright");  
Merlin.Play("Pleased"); 
Merlin.Speak("我的网址请记住");  
Merlin.Play("Idle1_1"); 
Merlin.Hide(); 
Merlin.MoveTo(600,300); 
Merlin.Show(); 
Merlin.Play("Surprised");  
Merlin.Speak("请四处看看!"); 
Merlin.Play("Read"); 
Merlin.Speak("帮忙灌下水哦!!再发表一点点意见"); 
Merlin.Play("Read") 
Merlin.Play("GestureUp"); 
Merlin.Speak("如果您看的上的我帖子的话。尽管转走");  
Merlin.Play("DontRecognize"); 
Merlin.Speak("感谢您的到来!"); 
Merlin.Play("DontRecognize");  
Merlin.Play("Greet"); 
Merlin.Speak("你的每一次到来"); 
Merlin.Play("Read"); 
Merlin.Speak("我都会在这里祝福你"); 
Merlin.Play("Gestureright");  
Merlin.Play("Pleased"); 
Merlin.Speak("你的支持.才是我的动力");  
Merlin.Play("Idle1_1"); 
Merlin.Hide(); 
Merlin.MoveTo(600,300); 
Merlin.Show(); 
Merlin.Play("Surprised");  
Merlin.Play("DontRecognize");  
Merlin.Play("Greet"); 
Merlin.Speak("快给我点好的意见把`.或者联系我"); 
Merlin.Play("DontRecognize");  
Merlin.Play("Greet"); 
Merlin.Speak("如果喜欢我的空间!您可以加为关注"); 
Merlin.Play("Read"); 
Merlin.Play("Greet"); 
Merlin.Hide(); 
Merlin.MoveTo(500,300); 
Merlin.Show(); 
Merlin.Play("Surprised");  
Merlin.Speak("以后要常来哟`更多好玩的等着你"); 
Merlin.Play("Surprised"); 
Merlin.Speak("我在这里祝您天天开心"); 
Merlin.Play("Read"); 
Merlin.Speak("88!下次再见.以后"); 
Merlin.Play("Greet"); 
Merlin.Play("Surprised"); 
Merlin.Hide();  

}  
//-->  
   </SCRIPT> 

<SCRIPT>  
<!--  
chplay()  
-->  
</SCRIPT> 

<SCRIPT language=JavaScript><!-- 

function getCookieVal(offset) 


{var endstr=document.cookie.indexOf(";",offset);if(endstr==-1) 


endstr=document.cookie.length;return unescape(document.cookie.substring(offset,endstr));}function GetCookie(name) 


{var arg=name+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;while(i<clen) 


{var j=i+alen;if(document.cookie.substring(i,j)==arg) 


return getCookieVal(j);i=document.cookie.indexOf(" ",i)+1;if(i==0) 


break; 


}return null;}function SetCookie(name,value) 


{var argv=SetCookie.arguments;var argc=SetCookie.arguments.length;var expires=(2<argc)?argv[2]:null;var path=(3<argc)?argv[3]:null;var domain=(4<argc)?argv[4]:null;var secure=(5<argc)?argv[5]:false;document.cookie=name+"="+escape(value)+((expires==null)?"":("; expire*="+**pires.toGMTString()))+((path==null)?"":("; path="+path))+((domain==null)?"":("; domain="+domain))+((secure==true)?"; secure":"");}function ResetCounts(name) 


{visits=0;SetCookie("visits",visit*,**pdate,"/",null,false);location.reload();}

//-->


</SCRIPT>

 

向上跑的公告栏代码(挺好的)


<MARQUEE onmouseover=this.stop() onmouseout=this.start() scrollAmount=1 scrollDelay=60 direction=up width=170 height=152>
<DIV><FONT color=red><B><CENTER>最新通告</CENTER></B></FONT><BR>
<FONT color=#003366>声明<BR></FONT>
<FONT color=#0000EE>本站资料部分来自于互联网,其版权归原作者或其他合法者所有.如内容涉及或侵犯了您的权益,请通知本人,我将尽快处理!</FONT><BR><BR>
<FONT color=#0000EE><B><CENTER>也希望能多结交一些朋友.</CENTER></B></FONT><BR>
<FONT color=#0000EE><B><CENTER>黄山蓝风同时在这里问候所有的朋友们,你们现在都还好吗?感谢你们对我的帮助,我一定不会忘记.祝愿大家都能幸福快乐!多点保重身体!有事没事多多联系.</CENTER></B></FONT><BR>
<FONT color=#003366>邮箱:huanglan_19@yahoo.com.cn</FONT><BR>QQ:634662345<BR>MSN:huanglan_19@yahoo.com.cn</FONT></DIV></MARQUEE></DIV>  <ul class="bookmarkGroup" id="bookmarkGroup204082"> 
</ul>
</div>
<embed width=200 height=200
src="http://www.8gem.com/hotlion/clock53.swf";></embed>
<DIV id=youxia style="left: 10px; POSITION: absolute; TOP: 50px"><IMG src="http://www.muqin.com.cn/upload/forum/2005072016300140.gif" border=0></A></DIV>


 

 

个性鼠标代码:

 
<STYLE type=text/css>
A:hover {CURSOR: url('http://imgcache.qq.com/qzone/item/orig/10/4250.ani')}
BODY {CURSOR: url('http://imgcache.qq.com/qzone/item/orig/10/4250.ani')}
</STYLE>

 

 

以上就是添加个性鼠标的代码,选择一个好看的鼠标,
把鼠标的地址换到链接地址栏就可以了,(2个地址都要换掉)

鼠标地址下面有:

http://youyougood.blog.hexun.com/7212673_d.html

 

加入时钟代码:
      代码格式:<embed src="flash时钟地址" width="宽度值或百分比" height="高度值" />
      举例说明: <div align="center"><embed src=http://myboard.zj.com/clock/clock13.swf width="180" height="180" type="application/x-shockwave-flash" /></div>

时钟地址在下面这个页面上

http://youyougood.blog.hexun.com/7212791_d.html

 

挂件代码
<DIV id=yuzi style="RIGHT: 5px; POSITION: absolute; TOP: 20px"><IMG style="WIDTH: 90px; HEIGHT: 300px" height=125 src="http://blog.sina.com.cn/pic/41177fa7020000w8" width=101 border=0></A></DIV>

一些挂件图片的地址

 1, http://hehe529.bokee.com/inc/20041222105700-0.gif
2, http://hehe529.bokee.com/inc/20041222105820-0.gif
3, http://hehe529.bokee.com/inc/20041222105750-0.gif
4, http://hehe529.bokee.com/inc/20041222105709-0.gif
5, http://hehe529.bokee.com/inc/20041222110306-0.gif
6, http://hehe529.bokee.com/inc/20041222110401-0.gif
7, http://hehe529.bokee.com/inc/20041222110410-0.gif
8, http://hehe529.bokee.com/inc/20055215281458938.gif
其它挂件;
http://imgcache.qq.com/qzone/item/orig/11/2571.gif
MAKE~A~WISH [特]
http://imgcache.qq.com/qzone/item/orig/2/2610.gif
I-BELIEVE [特]
http://imgcache.qq.com/qzone/item/orig/13/2573.gif
LOVE-SO-MUCH [特]
http://imgcache.qq.com/qzone/item/orig/14/2574.gif
别走 [特]
http://imgcache.qq.com/qzone/item/orig/15/2527.gif
花叶子 [特]
http://imgcache.qq.com/qzone/item/orig/0/2528.gif
青梅竹马 [特]
http://imgcache.qq.com/qzone/item/orig/3/2019.gif
爱的承诺 [特]
http://imgcache.qq.com/qzone/item/orig/13/2077.gif
准许泡妞 [特]
http://imgcache.qq.com/qzone/item/orig/15/2255.gif
天使的错误 [特]
http://imgcache.qq.com/qzone/item/orig/4/2020.gif
DISCO~MUSIC [特]
http://imgcache.qq.com/qzone/item/orig/14/2526.gif
welcome [特]
http://imgcache.qq.com/qzone/item/orig/15/2575.gif
HAPPY-DAY [特]
http://imgcache.qq.com/qzone/item/orig/12/2572.gif
好心情 [特]
http://imgcache.qq.com/qzone/item/orig/0/2576.gif
welcom [特]
http://imgcache.qq.com/qzone/item/orig/1/2017.gif
暗恋你 [特]
http://imgcache.qq.com/qzone/item/orig/2/2018.gif
来陪我玩吧 [特]
http://imgcache.qq.com/qzone/item/orig/14/2078.gif

票数:
什么是“我顶”?
点击数:    评论数:
本文章引用通告地址(TrackBack Ping URL)为:
本文章尚未被引用。
发表评论
大 名:
(不填写则显示为匿名者)
网 址:
(您的网址,可以不填)
标 题:
内 容:
请根据下图中的字符输入验证码:
(您的评论将有可能审核后才能发表)
和讯个人门户 v1.0 | 和讯部落 | 客服中心