-
背景音乐代码 <embed name=MediaPlayer1 pluginspage=http://www.microsoft.com/Windows/MediaPlayer src="这里填写音乐地址" width=150 height=100 type=application/x-mplayer2 showcontrols="1" autostart="1"></embed>
-
显示IP地址 <iframe src="http://ip.91.com/ip/showip.asp?text=&bg=&line=1&scro=&leng=140" frameborder="0" scrolling="no" width="550" height="22" marginheight="4" marginwidth="0"></iframe> 长宽可自己设置
-
天气预报代码 </embed><DIV></DIV><IFRAME src="http://weather.qq.com/inc/ss125.htm" frameBorder=0 width=200 scrolling=no height=240></IFRAME> 说明:可自行调整width和height来设置长宽。
-
加入时钟代码:
代码格式:<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> -
如何加入透明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: 为从上向下移的位置
举例说明:<embed src="http://lain1978.com/collection/flash/fish.swf
"; width="800" height="600" quality="high" wmode="transparent" align="center" style="position: absolute; left:0; top:0">
Flash背景素材请见本站:Flash素材01_小雨 等插入Flash动画代码:
代码:<div><embed src="动画地址" width="98%" height="450"/></div> -
记录页面更新时间代码 <script language="JavaScript">
<!--hide script from old browsers
document.write("本页最后更新日期: <br>" + document.lastModified + "")// end hiding -->
</script> -
收藏本站<span style="CURSOR: hand"
onClick="window.external.addFavorite('你的域名','你的网站名')"
title="你的网站名">收藏本站</span> -
设为首页 <span onclick="var
strhref="/blog/window.location.href";this.style.behavior='url(#default#homepage)';this.setHomePage('你的域名');"
style="CURSOR: hand">设为首页</span> -
历史上的今天代码 <iframe src=http://www.nongli.com/today/today.asp width=180 height=145
frameborder=no border=0 marginheight=0 scrolling=no hspace=0 vspace=0 name="history" style="border: 1px dashed #000000"></iframe> -
登陆邮箱快捷窗口<form name=loginmail onsubmit='return chkinput2(this);' action=http://www.hao123.com/sendmail.php method=post target=_blank>
邮箱登录:
帐号:
<input tabindex=1 size=14 name=user class='lanyu'>
密码:
<input class='lanyu' tabindex=3 type=password size=13
name=pass>
邮箱:
<select tabindex=2 size=1 name=site class='lanyu'>
<option value selected>请选择信箱</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=bliao.net>@bliao.net</option>
<option value=cn.yahoo.com>@yahoo.com.cn</option>
<option value=xinhuanet.com>@xinhuanet.com</option>
<option value=126.com>@126.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=elong.com>@elong.com</option>
</select>
<input style=FONT-SIZE:12px class='button' tabindex=4 type=submit value=立即登录邮箱
name=Submit2 onClick=setTimeout('clearpass()',1000)>
</form> -
百度搜索栏<iframe id="baiduframe" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
framespacing="0" frameborder="0" scrolling="no" width="140" height="75"
src="http://unstat.baidu.com/bdun.bsc?tn=yy0736&csid=105&rkcs=0&bgcr=FEF0E2&ftcr=663300&rk=1&bd=1&bdas=0">
</iframe> -
GOOGLE搜索栏</script><!-- Search Google -->
<center>
<form method="get" action="http://www.google.com/custom" target="google_window">
<table bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a>
<br/>
<input type="text" name="q" size="20" maxlength="255" value=""></input>
<input type="submit" name="sa" value="搜索"></input>
<input type="hidden" name="client" value="pub-9597356220042692"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="GB2312"></input>
<input type="hidden" name="oe" value="GB2312"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1;"></input>
<input type="hidden" name="hl" value="zh-CN"></input>
</td></tr></table>
</form>
</center>
<!-- Search Google --> -
页面跳转代码:<img src="javascript:if(document==parent.document)document.location='跳转地址'">
- 博客介绍栏文字滚动 可设置为向上、向下、向左、向右。可以设置高度,滚动速度。
<MARQUEE scrollAmount=1 direction=up
height=120>你的文字介绍</MARQUEE >
-
留言框架代码:<IFRAME name=content marginWidth=0 marginHeight=0 src="留言板地址" frameBorder=0 width=504 scrolling=no height=1500 allowTransparency></IFRAME>
-
发光字体代码:<TABLE style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; FILTER: glow(color=#6699FF,direction=2); BORDER-LEFT: 0px; BORDER-BOTTOM: 0px"> <TBODY><FONT color=#ffffff size=2>要修改的文字</FONT> </TBODY></TABLE>
-
阴影字体代码:<TABLE style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; FILTER: dropshadow(color=#cccccc, offx=2, offy=2, positive=2); BORDER-LEFT: 0px; BORDER-BOTTOM: 0px"> <TBODY><font color=#6CABE7 size=2>要修改的文字</FONT> </TBODY></TABLE>
-
浮雕字体代码:<TABLE style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; FILTER: dropshadow(color=#6699FF, offx=1, offy=1, positive=1); BORDER-LEFT: 0px; BORDER-BOTTOM: 0px"> <TBODY><FONT color=#ffffff size=2>要修改的文字</FONT> </TBODY></TABLE>
-
滚动字体代码:.<MARQUEE onmouseover=this.stop() style="WIDTH: 197px; HEIGHT: 64px" onmouseout="this.start ()" scrollAmount=1 scrollDelay=60 direction=up border="0" hight="100" align="center"> <P><FONT color=#999999 size=2>要修改的文字</FONT></P></MARQUEE>
-
纵向移动文字<FONT SIZE="20" COLOR="#996633"><P ALIGN="LEFT"><FONT SIZE="19" COLOR="#996633"><A HREF=""><B>需要改的字</B></A></FONT>
-
下拉菜单如:<FORM name=form1 action="" method=post><SELECT onchange=javascript:window.open(this.options[this.selectedIndex].value) size=1 name=select> <OPTION value=selected>和讯奇客收集站</OPTION> <OPTION value=http://wyxuan.blog.hexun.com/>和讯奇客收集站</OPTION> <OPTION value=http://wyxuan.blog.hexun.com/>和讯奇客收集站</OPTION><OPTION value=http://wyxuan.blog.hexun.com/>和讯奇客收集站</OPTION><OPTION value=http://wyxuan.blog.hexun.com/>和讯奇客收集站</OPTION>
-
分隔线<hr color="#ff8000" size="5">
-
左右移动字体<marquee scrollamount=5><font color="#9900FF" size=3><b>这里是和讯奇客收集站,欢迎您的光临。</b></marquee> </font>
-
镶嵌网页使用以下代码<DIV align=center twffan="done"><IFRAME name=content marginWidth=0marginHeight=0 src="你的blog网址" frameBorder=0 width=700scrolling=no height=1500 allowTransparency></IFRAME></DIV>可以自己定义宽度与高度
-
最小化、最大化、关闭窗口
<object id=hh1 classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">
<param name="Command" value="Minimize"></object>
<object id=hh2 classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">
<param name="Command" value="Maximize"></object>
<OBJECT id=hh3 classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<PARAM NAME="Command" value="Close"></OBJECT>
<input type=button value=最小化 onclick=hh1.Click()>
<input type=button value=最大化 onclick=hh2.Click()>
<input type=button value=关闭 onclick=hh3.Click()>
本例适用于IE -
显示系统当前日期
<script language=JavaScript>
today=new Date();
function date(){
this.length=date.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=date.arguments }
var d=new date("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
document.write(
"<font color=##000000 style='font-size:9pt; ",
today.getYear(),"年",today.getMonth()+1,"月",today.getDate(),"日",
d[today.getDay()+1],"</font>" );
</script>
-
不同时间段显示不同问候语 <Script Language="JavaScript">
var text=""; day = new Date( ); time = day.getHours( );
if (( time>=0) && (time < 7 ))
text="夜猫子,要注意身体哦! "
if (( time >= 7 ) && (time < 12))
text="今天的阳光真灿烂啊,你那个朋友呢?"
if (( time >= 12) && (time < 14))
text="午休时间。您要保持睡眠哦!"
if (( time >=14) && (time < 18))
text="祝您下午工作愉快! "
if ((time >= 18) && (time <= 22))
text="您又来了,可别和MM聊太久哦!"
if ((time >= 22) && (time < 24))
text="您应该休息了!"
document.write(text)
</Script> -
隐藏IFRAME的滚动条
1. 设置iframe scrolling="no"
2. 被包含页body应用overflow:hidden
3. 被包含页的body标签加scroll="no"
-
锁定状态栏文字防止显示地址
<body onmouseover="self.status='文字';return true"> -
进入页面后立即自动刷新
<meta http-equiv="refresh" content="120;url=http://wyxuan.blog.hexun.com/"> -
节日倒计时
<Script Language="JavaScript">
var timedate= new Date("October 1,2002");
var times="国庆节";
var now = new Date();
var date = timedate.getTime() - now.getTime();
var time = Math.floor(date / (1000 * 60 * 60 * 24));
if (time >= 0)
document.write("现在离"+times+"还有: "+time +"天")
</Script>
-
记录并显示网页的最后修改时间
<script language=JavaScript>
document.write("最后更新时间: " + document.lastModified + "")
</script> -
禁止鼠标右键的动作
<Script Language = "JavaScript">
function click() { if (event.button==2||event.button==3)
{
alert('禁止鼠标右键');
}
document.onmousedown=click // -->
</Script> 或
<script language="JavaScript">
function click() { if (event.button==2)
{alert('*^_^*'); } } document.onmousedown=click // -->
</script>
回复Comments
{commenttime}{commentauthor}
{CommentUrl}
{commentcontent}