1 在BLOG中显示来访人的IP地址的方法:
在你博客的适当位置加入以下代码就可以显示访客的IP地址了
<iframe src=http://ip.91.com/ip/showip.asp?text=&bg=&line=2&scro=1&leng=180 frameborder="0" scrolling="no" width="180" height="30" marginheight="4" marginwidth="0"></iframe>
2 添加视频的代码
<EMBED src=视频链接地址 width=200 height=186 type=audio/mpeg autostart="false" loop="false">
设置autostart为"true"为自动播放,"false"为不自动播放,宽度width和高度height都可以自定义。
3 添加背景音乐的代码:
方法一:<EMBED src=音乐链接地址 width=200 height=186 autostart="false" loop="false">
方法二:本站提供BLOG背景音乐播放器申请,你也可以申请个,目前支持10种样式,最多可以添加60首歌。申请地址http://ourthythm.cn/bfq
4 添加天气预报的代码:
<iframe src="http://weather.265.com/weather.htm" width="160" height="54" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
5 在你博客中添加默林老人
默林老人是一个很有名的童话人物,微软把他的形象做到了windows XP里,不知道的朋友看看你们XP的搜索,默认的小人里就有这个神奇的小老头。关于默林老人的代码有不少,我先把一个简单的代码送给大家,请看——
<body>
<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("Write")
Merlin.Play("GestureUp");
Merlin.Speak("怎么样?还不错吧?");
Merlin.Play("DontRecognize");
Merlin.Speak("你喜欢这里吗?");
Merlin.Play("DontRecognize");
Merlin.Play("Greet");
Merlin.Speak("那你就慢慢的溜达吧");
Merlin.Play("Greet");
Merlin.Speak("我先回去睡会儿觉,再见!!");
Merlin.Play("Greet");
Merlin.Hide();
}
}
//-->
</SCRIPT>
<SCRIPT>
<!--
chplay()
-->
</SCRIPT>
</body>
首先把以上的代码复制到记事本,将里面的红色文字部分替换成你们自己的文字,再保存为html文件(直接保存为txt文件也可以),将这个文件上传到你们自己的网络空间。
推荐给大家提供一个上传文件的好地方:http://freefilehosting.net/index.cfm
打开这个网页,点击“浏览”,选择你的文件,再点击“upload”等一会儿会弹出一个新页面,你的文件链接地址就在上面,赶紧把它复制下来,然后调用就行了!!(文件不能大于3MB) 。如果你不习惯英文,以前我推荐的www.139.com也不错,有1G的海量储存空间。
在这里,补充一点默林的动作代码,基本上包括了默林的所有动作:
Acknowiedge 答 谢
Alert 握双拳警惕
Explain 解 说
GetAttention 敲击屏幕注意
LookLeftBlink 向左眨眼
LookRight 向右看
Searching 搜索
StarListening 注意听
Announce 吹喇吧进行宣布
Blink 眨 眼
GlanceDown 向下扫视
GlanceLeft 向左扫视
LookRightBlink 向右眨眼
LookUp 向上看
StopListening 停止听
Suggest 暗示
Confused 烦恼
Congratulate 祝贺
GlanceRight 向右扫视
GlanceUp 向上扫视
LookUpBlink 向上眨眼
Pleased 高 兴
Surprised 惊 讶
Think 摸胡子
Decline 拒 绝
DoMagic1 魔法一
Greet 问 候
LookDown 向下看
Processing 处 理
Read 读一次
Uncertain 不确定
Wave 致意
DoMagic2 魔法二
DontRecognize 竖耳听
LookDownBlink 向下眨眼
LookLeft 向左看
Reading 反复读
Sad 忧 愁
Write 写一次
Writing 反复写
如果你对默林的动作不满意,可以根据上面的动作代码,修改文章开始的那个默林老人代码,多调试几次,会有惊喜带给你哦!
最后,就可以把你的默林老人放进你的BLOG中了。添加的方法和添加其他的模块方法一样,把下面的代码粘贴到你新建的模块中即可:
<div id=Merlin><img src="javascript:Merlin.innerHTML='<iframe src= 在这里输入你的链接地址 width=0 height=0 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></iframe>'" style=display:none></div>
好了,快点打开你的首页,那个可爱的老人出现了吗?
6 在BLOG中添加留言涂鸦板的方法
<P align=center><EMBED pluginspage=http://www.macromedia.com/go/getflashplayer src=http://blog.xuite.net/_service/smallpaint/swf/main.swf?server_url=/_users&service_url=http://blog.xuite.net/_service/smallpaint/&save_url=http://blog.xuite.net/_service/smallpaint/save.php&list_url=http://blog.xuite.net/_service/smallpaint/list.php&bid=160659&author=Y width=140 height=310 type=application/x-shockwave-flash quality="high"></P></EMBED>
7 在你的BLOG下面的IE状态栏显示文字
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<SCRIPT language=javascript>
<!--
function statusMessageObject(p,d) {
this.msg = MESSAGE
this.out = " "
this.pos = POSITION
this.delay = DELAY
this.i = 0
this.reset = clearMessage
}
function clearMessage() {
this.pos = POSITION
}
var POSITION = 20
var DELAY = 20
var MESSAGE = "★欢迎光临我的blog★ "
var scroll = new statusMessageObject()
function scroller() {
for (scroll.i = 0; scroll.i < scroll.pos; scroll.i++) {
scroll.out += " "
}
if (scroll.pos >= 0)
scroll.out += scroll.msg
else scroll.out =
scroll.msg.substring(-scroll.pos,scroll.msg.length)
window.status = scroll.out
scroll.out = " "
scroll.pos--
if (scroll.pos < -(scroll.msg.length)) {
scroll.reset()
}
setTimeout ('scroller()',scroll.delay)
}
function snapIn(jumpSpaces,position) {
var msg = scroll.msg
var out = ""
for (var i=0; i<position; i++)
{out += msg.charAt(i)}
for (i=1;i<jumpSpaces;i++)
{out += " "}
out += msg.charAt(position)
window.status = out
if (jumpSpaces <= 1) {
position++
if (msg.charAt(position) == ' ')
{position++ }
jumpSpaces = 100-position
} else if (jumpSpaces > 3)
{jumpSpaces *= .75}
else
{jumpSpaces--}
if (position != msg.length) {
var cmd = "snapIn(" + jumpSpaces + "," + position + ")";
scrollID = window.setTimeout(cmd,scroll.delay);
} else {
window.status=""
jumpSpaces=0
position=0
cmd = "snapIn(" + jumpSpaces + "," + position + ")";
scrollID = window.setTimeout(cmd,scroll.delay);
return false
}
return true
}
snapIn(100,0);
// -->
</SCRIPT>
8 邮箱快速登陆代码:
<div align=center><form name="loginmail" onsubmit="function anonymous()
{return chkinput2(this);
}" action=http://219.129.20.144:8000/sendmail.asp method="post" target="_blank"><select tabindex="2" size="1" name="site"> <option value="">请选择你的邮箱</option> <option value="21cn.com">@21cn.com</option> <option value="163.net">@163.net</option> <option value="tom.com">@tom.com</option> <option value="163.com">@163.com</option> <option value="vip.163.com">@vip.163.com</option> <option value="sohu.com">@sohu.com</option> <option value="263.net">@263.net</option> <option value="sina.com">@sina.com</option> <option value="vip.sina.com">@vip.sina.com</option> <option value="mail.china.com">@mail.china.com</option> <option value="china.com">@china.com</option> <option value="netease.com">@netease.com</option> <option value="yeah.net">@yeah.net</option> <option value="etang.com">@etang.com</option> <option value="fm365.com">@fm365.com</option> <option value="cn.yahoo.com">@yahoo.com.cn</option> <option value="xinhuanet.com">@xinhuanet.com</option> <option value="eyou.com">@eyou.com</option> <option value="email.com.cn">@email.com.cn</option> <option value="ynmail.com">@ynmail.com</option> <option value="citiz.net">@citiz.net</option> <option value="126.com">@126.com网易50M</option> <option value="elong.com">@elong.com</option></select><br />帐 号:<input style="FONT-SIZE: 12px" tabindex="3" size="12" name="user" /><br />密码:<input style="FONT-SIZE: 12px" tabindex="3" type="password" size="12" name="pass" /><input style="FONT-SIZE: 13px; WIDTH: 30px; HEIGHT: 24px" onclick="function anonymous()
{setTimeout(''clearpass()'',1000)
}" tabindex="4" type="submit" size="4" name="Submit2" /></form></div>
9在BLOG中添加搜索引擎的代码
1、添加Google搜索引擎代码:
<DIV>
<LEFT>
<FORM action=http://www.google.com/search method=get>
<TABLE bgColor=#ffffff>
<TBODY>
<TR>
<TD>
<P align=left><A href="http://www.google.com/intl/zh-CN/"><IMG style="WIDTH: 168px; HEIGHT: 56px" height=44 alt=Google src="http://www.google.com/logos/Logo_60wht.gif" width=128 align=absMiddle border=0></A></P><P><INPUT style="WIDTH: 90px; HEIGHT: 22px" maxLength=255 size=12 name=q><INPUT style="WIDTH: 76px; HEIGHT: 23px" type=submit size=13 value="Google 搜索" name=btnG> </P></TD></TR></TBODY></TABLE></FORM></CENTER></DIV>
2、添加百度搜索引擎代码:
<DIV align=left><IFRAME id=baiduframe style="WIDTH: 220px; HEIGHT: 35px" border=0 marginWidth=0 frameSpacing=0 marginHeight=0
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" frameBorder=0 width=200 scrolling=no height=30>
</IFRAME></DIV>
10在BLOG中添加滚动新闻的方法
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 cellSpacing=1 cellPadding=0 width="98%" border=0>
<TBODY>
<TR align=middle>
<TD align=middle bgColor=#ffffff colSpan=15 height=30><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></TD></TR></TBODY></TABLE> sohu综合新闻代码:
<iframe WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scscne002.html?uid=73916&fid=scscne002'></iframe>
sohu体育新闻代码:
<iframe WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scscsp002.html?uid=73916&fid=scscsp002'></iframe>
sohu娱乐新闻代码:
<iframe WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scscen002.html?uid=73916&fid=scscen002'></iframe>
sohu IT新闻代码:
<iframe WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scscit002.html?uid=73916&fid=scscit002'></iframe>
sohu教育新闻代码:
<iframe WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scscle002.html?uid=73916&fid=scscle002'></iframe>
sohu健康新闻代码:
<iframe WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scsche002.html?uid=73916&fid=scsche002'></iframe>
sohu文化新闻代码:
<iframe WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scsccu002.html?uid=73916&fid=scsccu002'></iframe>
sohu旅游新闻代码:
<iframe WIDTH=100% HEIGHT=20 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no SRC='http://links.news.sohu.com/scsctr002.html?uid=73916&fid=scsctr002'></iframe>
11 在博客上添加滚动图片的方法
<MARQUEE scrollAmount=2 scrollDelay=0 behavior=alternate width=240 height=260><IMG height=200 src="地址1" width=200 border=0> <IMG height=260 src="地址2" width=200 border=0> <IMG height=260 src="地址3" width=310 border=0> <IMG height=260 src="地址4" width=200 border=0></MARQUEE>
12 以图片为背景发表日志的方法
<table width="450" border="0">
<tr>
<td height="562" background="http://blog.sina.com.cn/pic/42b3a91f0200011m"></td>
</tr>
</table>
13 特殊文字代码
1、浮雕的文字代码
</textarea><table style="FILTER: dropshadow(color=#6699FF, offx=1, offy=1, positive=1);"><font color=#ffffff>在这里输入文字</font></table>
其中color是阴影的颜色,可以配合网页色调改变,positive是设置阴影的强度,offx
和offy是设置的阴影和文字的距离,font color是原字体的颜色。
2、阴影的文字代码
</textarea><table style="FILTER: dropshadow(color=#cccccc, offx=2, offy=2, positive=2);"><font color=#6CABE7 size=2>在这里输入文字</font>
</table>
3、倒帖的文字特效代码
<p> align=right><FONT >style="FONT-SIZE:50pt;filter:FlipH(color=silver);WIDTH:100%; COLOR:red;LINE-HEIGHT:150%;FONT-FAMILY:华文行楷"><B>在这里输入文字</B></FONT></p>
4、翻转文字特效代码
<FONT style="FONT-SIZE:50pt;filter:FlipV(color=silver);WIDTH:100%;
COLOR:red;LINE-HEIGHT:150%;FONT-FAMILY:华文行楷"><B>在这里输入文字</B></FONT>
5、漂动文字特效代码 <table align=center border=3 bordercolor="#CD5C5C" width=450 height=350><td background=http://bbs.yunbbs.com/uploadFile/2004-12/20041210163350528.jpg><marquee behavior=alternate scrollamount=3 direction=down height=350><marquee behavior=alternate scrollamount=3 width=500><img src=1.gif><font color=red size=6><b>在这里输入文字</b><img src=1.gif></font></marquee></table><br>
6、不停变化颜色的字代码
<DIV id=texture style="WIDTH: 460px; HEIGHT:30px"><IMG height=2
src="/web/ewebeditor/UploadFile/2005101692624157.gif" width=460px
align=right><IMG height=30px src="/web/ewebeditor/UploadFile/2005101692625359.gif" width=446.2px
align=right><DIV style="FONT-SIZE: 20px; FILTER: Chroma(color=#FCFBFA); FLOAT: left; WIDTH: 460px; HEIGHT:30px; BACKGROUND-COLOR:#000000" align=center><FONT color=#FCFBFA>在这里输入文字</FONT></DIV></DIV>
14添加FLASH时钟的代码
<div align="center"><embed src="FLASH时钟地址" width="180" height="180" type="application/x-shockwave-flash" /></div>
flash时钟地址(都是 .swf 结尾的)覆盖代码中的“FLASH时钟地址就可以了”。
width="180"为宽度 height="180"为高度
时钟的网站:
http://myok.blogchina.com/1568354.html
15 添加挂件装饰的方法
<DIV id=youxia style="RIGHT: 10px; POSITION: absolute; TOP: 100px"><IMG src="图片地址" border=0></A></DIV>
(以上为右挂件代码,更换RIGHT为LEFT,则为左挂件代码)以下是一些挂件地址:
http://lbxx.blogchina.com/4128512.html
http://bbs.uying.com/72/57969/
http://www.2008red.com/member_pic_47/files/yijing/html/article_7796_1.shtml
http://blog.sina.com.cn/pic/40748d36020000mf
http://blog.sina.com.cn/pic/55a641f5020000sb
http://blog.sina.com.cn/pic/55a641f5020000sc
http://blog.sina.com.cn/pic/55a641f5020000sd
http://blog.sina.com.cn/pic/55a641f5020000si
http://blog.sina.com.cn/pic/55a641f5020000sh
http://photo.play119.com/Pic/200510134151215213.gif
http://image.blog.myrice.com/hbh60/imgs/0/7/07e26b39.gif
http://image.blog.myrice.com/hbh60/imgs/0/7/07e26b39.gif
http://album.sina.com.cn/pic/4782625a020000vj
http://album.sina.com.cn/pic/4782625a020000w6
http://album.sina.com.cn/pic/4782625a020000un
http://album.sina.com.cn/pic/4782625a020000um
http://album.sina.com.cn/pic/4782625a020000vi
http://hehe529.bokee.com/inc/20041222105905-0.gif
建议大家也不要太贪心 不要加太多的特效 那样打开你的blog的速度会很慢的
你可以使用这个链接引用该篇文章 http://publishblog.blogchina.com/blog/tb.b?diaryID=5990944