一下是代码: 

添加到收藏夹

<Script Language="JavaScript">
function bookmarkit()
{
 window.external.addFavorite('http://你的网址','你的网站名称')
}
 if (document.all)document.write('<a href="#" onClick="bookmarkit()">加入收藏夹</a>')
</Script>

 节日倒计时

<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>
  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;font-family: 宋体'> ",
  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>


滚动

<MARQUEE direction=up height=146 onmouseout=start() onmouseover=stop() scrollAmount=4>

"加你要的文字"
</marquee>


让标题动态
<script>
<!--
var tx = new Array (
"◇:::::::网页教学网http://www.webjx.com:::::::◇欢迎您!◇",
"◆欢迎大家光临网页教学网网站!◆",
"◆大量供应网页制作教材,资料,源代码,网页制作软件,相关插件光盘!◆",
"◆最可怕的敌人,就是没有坚强的信念!◆",
"◆应该让别人的生活因为有了你的生存而更加美好!◆"
);
var txcount=5;
var i=1;
var wo=0;
var ud=1;
function animatetitle()
{
window.document.title=tx[wo].substr(0, i)+"_";
if (ud==0) i--;
if (ud==1) i++;
if (i==-1) {ud=1;i=0;wo++;wo=wo%txcount;}
if (i==tx[wo].length+10) {ud=0;i=tx[wo].length;}
// if (window.document.title.length < 20 ) window.document.title=window.document.title+"-";
// if (window.document.title.length == 20 ) window.document.title=window.document.title+"]";
// if (window.document.title.length == 21 ) setTimeout("window.document.title='Animierte Seitentitel '; ",1000);

parent.window.document.title=tx[wo].substr(0, i)+"_";
setTimeout("animatetitle()",100);
}
animatetitle();
// --></script><script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>

背景音乐

<embed name=MediaPlayer1 pluginspage=http://www.microsoft.com/Windows/MediaPlayer src="http://disc.9music.cn/5cd/388/15/5.wma" width=150 height=100 type=application/x-mplayer2 showcontrols="1" autostart="1"></embed>


加天气预报

</embed>
<DIV></DIV><IFRAME src="http://weather.qq.com/inc/ss125.htm" frameBorder=0 width=200 scrolling=no height=240></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>