Fri

20

Mar

2009

181、编程时文件上传

181、编程时文件上传

脚本说明:

 

第一步:把如下代码加入<body>区域中

 

<SCRIPT language="JavaScript">

 

<!--

 

var limit="0:59"

 

if (document.images){

 

var parselimit=limit.split(":")

 

parselimit=parselimit[0]*60+parselimit[1]*1

 

}

 

function begintimer(){

 

if (!document.images)

 

return

 

if (parselimit==1)

 

//下面是限制时间到了后去的连接页面,自己修改。

 

window.location="zh1.htm"

 

else{

 

parselimit-=1

 

curmin=Math.floor(parselimit/60)

 

cursec=parselimit

 

if (curmin!=0)

 

curtime="你只有"+curmin+""+cursec+"秒的时间保存此页。"

 

else

 

curtime="你只有"+cursec+"秒的时间访问此页。"

 

setTimeout("begintimer()",1000)

 

//下一句告诉访问者剩余的时间,在文本框中显示,不想要去掉即可。

 

document.lefttime.left.value=curtime

 

//下一句告诉访问者剩余的时间,在状态栏中显示。

 

window.status=curtime

 

}

 

}

 

//-->

 

</SCRIPT>

 

第二步:<body>区域改为

 

<body bgcolor="#fef4d9" onload="begintimer()">

 

 

0 Comments

Fri

20

Mar

2009

180、页面中的MIDI播放器

180、页面中的MIDI播放器

脚本说明:

 

第一步:把如下代码加入<body>区域中

 

<SCRIPT language="JavaScript">

 

<!--

 

var limit="0:59"

 

if (document.images){

 

var parselimit=limit.split(":")

 

parselimit=parselimit[0]*60+parselimit[1]*1

 

}

 

function begintimer(){

 

if (!document.images)

 

return

 

if (parselimit==1)

 

//下面是限制时间到了后去的连接页面,自己修改。

 

window.location="zh1.htm"

 

else{

 

parselimit-=1

 

curmin=Math.floor(parselimit/60)

 

cursec=parselimit

 

if (curmin!=0)

 

curtime="你只有"+curmin+""+cursec+"秒的时间保存此页。"

 

else

 

curtime="你只有"+cursec+"秒的时间访问此页。"

 

setTimeout("begintimer()",1000)

 

//下一句告诉访问者剩余的时间,在文本框中显示,不想要去掉即可。

 

document.lefttime.left.value=curtime

 

//下一句告诉访问者剩余的时间,在状态栏中显示。

 

window.status=curtime

 

}

 

}

 

//-->

 

</SCRIPT>

 

 

 

 

 

第二步:<body>区域改为

 

<body bgcolor="#fef4d9" onload="begintimer()">

 

 

0 Comments

Fri

20

Mar

2009

179、背景音乐选择

179、背景音乐选择

脚本说明:

 

第一步:把如下代码加入<body>区域中

 

<SCRIPT language="JavaScript">

 

<!--

 

var limit="0:59"

 

if (document.images){

 

var parselimit=limit.split(":")

 

parselimit=parselimit[0]*60+parselimit[1]*1

 

}

 

function begintimer(){

 

if (!document.images)

 

return

 

if (parselimit==1)

 

//下面是限制时间到了后去的连接页面,自己修改。

 

window.location="zh1.htm"

 

else{

 

parselimit-=1

 

curmin=Math.floor(parselimit/60)

 

cursec=parselimit

 

if (curmin!=0)

 

curtime="你只有"+curmin+""+cursec+"秒的时间保存此页。"

 

else

 

curtime="你只有"+cursec+"秒的时间访问此页。"

 

setTimeout("begintimer()",1000)

 

//下一句告诉访问者剩余的时间,在文本框中显示,不想要去掉即可。

 

document.lefttime.left.value=curtime

 

//下一句告诉访问者剩余的时间,在状态栏中显示。

 

window.status=curtime

 

}

 

}

 

//-->

 

</SCRIPT>

 

 

 

 

 

第二步:<body>区域改为

 

<body bgcolor="#fef4d9" onload="begintimer()">

 

 

0 Comments

Fri

20

Mar

2009

178、行走的小人

178、行走的小人

脚本说明:

 

第一步:把如下代码加入<body>区域中

 

<SCRIPT language="JavaScript">

 

<!--

 

var limit="0:59"

 

if (document.images){

 

var parselimit=limit.split(":")

 

parselimit=parselimit[0]*60+parselimit[1]*1

 

}

 

function begintimer(){

 

if (!document.images)

 

return

 

if (parselimit==1)

 

//下面是限制时间到了后去的连接页面,自己修改。

 

window.location="zh1.htm"

 

else{

 

parselimit-=1

 

curmin=Math.floor(parselimit/60)

 

cursec=parselimit

 

if (curmin!=0)

 

curtime="你只有"+curmin+""+cursec+"秒的时间保存此页。"

 

else

 

curtime="你只有"+cursec+"秒的时间访问此页。"

 

setTimeout("begintimer()",1000)

 

//下一句告诉访问者剩余的时间,在文本框中显示,不想要去掉即可。

 

document.lefttime.left.value=curtime

 

//下一句告诉访问者剩余的时间,在状态栏中显示。

 

window.status=curtime

 

}

 

}

 

//-->

 

</SCRIPT>

 

 

第二步:<body>区域改为

 

<body bgcolor="#fef4d9" onload="begintimer()">

 

 

0 Comments

Fri

20

Mar

2009

177、极酷的文字效果

177、极酷的文字效果

脚本说明:

 

第一步:把如下代码加入<body>区域中

 

<SCRIPT language="JavaScript">

 

<!--

 

var limit="0:59"

 

if (document.images){

 

var parselimit=limit.split(":")

 

parselimit=parselimit[0]*60+parselimit[1]*1

 

}

 

function begintimer(){

 

if (!document.images)

 

return

 

if (parselimit==1)

 

//下面是限制时间到了后去的连接页面,自己修改。

 

window.location="zh1.htm"

 

else{

 

parselimit-=1

 

curmin=Math.floor(parselimit/60)

 

cursec=parselimit

 

if (curmin!=0)

 

curtime="你只有"+curmin+""+cursec+"秒的时间保存此页。"

 

else

 

curtime="你只有"+cursec+"秒的时间访问此页。"

 

setTimeout("begintimer()",1000)

 

//下一句告诉访问者剩余的时间,在文本框中显示,不想要去掉即可。

 

document.lefttime.left.value=curtime

 

//下一句告诉访问者剩余的时间,在状态栏中显示。

 

window.status=curtime

 

}

 

}

 

//-->

 

</SCRIPT>

 

 

 

 

 

第二步:<body>区域改为

 

<body bgcolor="#fef4d9" onload="begintimer()">

 

 

0 Comments

Fri

20

Mar

2009

176、IP地址的显示

176IP地址的显示

脚本说明:

 

第一步:把如下代码加入<body>区域中

 

<SCRIPT language="JavaScript">

 

<!--

 

var limit="0:59"

 

if (document.images){

 

var parselimit=limit.split(":")

 

parselimit=parselimit[0]*60+parselimit[1]*1

 

}

 

function begintimer(){

 

if (!document.images)

 

return

 

if (parselimit==1)

 

//下面是限制时间到了后去的连接页面,自己修改。

 

window.location="zh1.htm"

 

else{

 

parselimit-=1

 

curmin=Math.floor(parselimit/60)

 

cursec=parselimit

 

if (curmin!=0)

 

curtime="你只有"+curmin+""+cursec+"秒的时间保存此页。"

 

else

 

curtime="你只有"+cursec+"秒的时间访问此页。"

 

setTimeout("begintimer()",1000)

 

//下一句告诉访问者剩余的时间,在文本框中显示,不想要去掉即可。

 

document.lefttime.left.value=curtime

 

//下一句告诉访问者剩余的时间,在状态栏中显示。

 

window.status=curtime

 

}

 

}

 

//-->

 

</SCRIPT>

 

 

第二步:<body>区域改为

 

<body bgcolor="#fef4d9" onload="begintimer()">

 

 

0 Comments

Fri

20

Mar

2009

175、asf文件在线播放

175asf文件在线播放

脚本说明:

 

第一步:把如下代码加入<body>区域中

 

<SCRIPT language="JavaScript">

 

<!--

 

var limit="0:59"

 

if (document.images){

 

var parselimit=limit.split(":")

 

parselimit=parselimit[0]*60+parselimit[1]*1

 

}

 

function begintimer(){

 

if (!document.images)

 

return

 

if (parselimit==1)

 

//下面是限制时间到了后去的连接页面,自己修改。

 

window.location="zh1.htm"

 

else{

 

parselimit-=1

 

curmin=Math.floor(parselimit/60)

 

cursec=parselimit

 

if (curmin!=0)

 

curtime="你只有"+curmin+""+cursec+"秒的时间保存此页。"

 

else

 

curtime="你只有"+cursec+"秒的时间访问此页。"

 

setTimeout("begintimer()",1000)

 

//下一句告诉访问者剩余的时间,在文本框中显示,不想要去掉即可。

 

document.lefttime.left.value=curtime

 

//下一句告诉访问者剩余的时间,在状态栏中显示。

 

window.status=curtime

 

}

 

}

 

//-->

 

</SCRIPT>

 

 

第二步:<body>区域改为

 

<body bgcolor="#fef4d9" onload="begintimer()">

 

 

0 Comments

Fri

20

Mar

2009

174、检测QQ在线状况

174、检测QQ在线状况

脚本说明:

 

第一步:把如下代码加入<body>区域中

 

<SCRIPT language="JavaScript">

 

<!--

 

var limit="0:59"

 

if (document.images){

 

var parselimit=limit.split(":")

 

parselimit=parselimit[0]*60+parselimit[1]*1

 

}

 

function begintimer(){

 

if (!document.images)

 

return

 

if (parselimit==1)

 

//下面是限制时间到了后去的连接页面,自己修改。

 

window.location="zh1.htm"

 

else{

 

parselimit-=1

 

curmin=Math.floor(parselimit/60)

 

cursec=parselimit

 

if (curmin!=0)

 

curtime="你只有"+curmin+""+cursec+"秒的时间保存此页。"

 

else

 

curtime="你只有"+cursec+"秒的时间访问此页。"

 

setTimeout("begintimer()",1000)

 

//下一句告诉访问者剩余的时间,在文本框中显示,不想要去掉即可。

 

document.lefttime.left.value=curtime

 

//下一句告诉访问者剩余的时间,在状态栏中显示。

 

window.status=curtime

 

}

 

}

 

//-->

 

</SCRIPT>

 

第二步:<body>区域改为

 

<body bgcolor="#fef4d9" onload="begintimer()">

 

 

0 Comments

Fri

20

Mar

2009

173、特殊文字的制作

173、特殊文字的制作

脚本说明:

 

第一步:把如下代码加入<body>区域中

 

<SCRIPT language="JavaScript">

 

<!--

 

var limit="0:59"

 

if (document.images){

 

var parselimit=limit.split(":")

 

parselimit=parselimit[0]*60+parselimit[1]*1

 

}

 

function begintimer(){

 

if (!document.images)

 

return

 

if (parselimit==1)

 

//下面是限制时间到了后去的连接页面,自己修改。

 

window.location="zh1.htm"

 

else{

 

parselimit-=1

 

curmin=Math.floor(parselimit/60)

 

cursec=parselimit

 

if (curmin!=0)

 

curtime="你只有"+curmin+""+cursec+"秒的时间保存此页。"

 

else

 

curtime="你只有"+cursec+"秒的时间访问此页。"

 

setTimeout("begintimer()",1000)

 

//下一句告诉访问者剩余的时间,在文本框中显示,不想要去掉即可。

 

document.lefttime.left.value=curtime

 

//下一句告诉访问者剩余的时间,在状态栏中显示。

 

window.status=curtime

 

}

 

}

 

//-->

 

</SCRIPT>

第二步:<body>区域改为

 

<body bgcolor="#fef4d9" onload="begintimer()">

 

 

0 Comments

Fri

20

Mar

2009

172、返回最顶部

172、返回最顶部

脚本说明:

把如下代码加入<body>区域中

<script>

var displayed="<nobr><b>[Top]</b></nobr>"

 

///////////////////////////Do not edit below this line////////////

 

var logolink='javascript:window.scrollTo(0,0)'

var ns4=document.layers

var ie4=document.all

var ns6=document.getElementById&&!document.all

 

function regenerate(){

window.location.reload()

}

function regenerate2(){

if (ns4)

setTimeout("window.onresize=regenerate",400)

}

 

if (ie4||ns6)

document.write('<span id="logo" style="position:absolute;top:-300;z-index:100">'+displayed+'</span>')

 

function createtext(){ //function for NS4

staticimage=new Layer(5)

staticimage.left=-300

staticimage.document.write('<a href="'+logolink+'">'+displayed+'</a>')

staticimage.document.close()

staticimage.visibility="show"

regenerate2()

staticitns()

}

 

function staticit(){ //function for IE4/ NS6

var w2=ns6? pageXOffset+w : document.body.scrollLeft+w

var h2=ns6? pageYOffset+h : document.body.scrollTop+h

crosslogo.style.left=w2

crosslogo.style.top=h2

}

 

function staticit2(){ //function for NS4

staticimage.left=pageXOffset+window.innerWidth-staticimage.document.width-28

staticimage.top=pageYOffset+window.innerHeight-staticimage.document.height-10

}

 

function inserttext(){ //function for IE4/ NS6

if (ie4)

crosslogo=document.all.logo

else if (ns6)

crosslogo=document.getElementById("logo")

crosslogo.innerHTML='<a href="'+logolink+'">'+displayed+'</a>'

w=ns6? window.innerWidth-crosslogo.offsetWidth-20 : document.body.clientWidth-crosslogo.offsetWidth-10

h=ns6? window.innerHeight-crosslogo.offsetHeight-15 : document.body.clientHeight-crosslogo.offsetHeight-10

crosslogo.style.left=w

crosslogo.style.top=h

if (ie4)

window.onscroll=staticit

else if (ns6)

startstatic=setInterval("staticit()",100)

}

 

if (ie4||ns6){

window.onload=inserttext

window.onresize=new Function("window.location.reload()")

}

else if (ns4)

window.onload=createtext

 

function staticitns(){ //function for NS4

startstatic=setInterval("staticit2()",90)

}

 

</script>

 

0 Comments

Fri

20

Mar

2009

171、密码验证后导航

171、密码验证后导航

脚本说明:

把如下代码加入<head>区域中

abcd后回车<body><SCRIPT LANGUAGE="JAVASCRIPT1.2">

<!--密碼正確時所出現的提示//-->

var msg = "您輸入的密碼正確.";

<!--密碼正確後所進入的網頁連結/-->

var url = "http://www.7stk.com";

 

function initArray() {

       this.length = initArray.arguments.length;

       for (var i = 0; i < this.length; i++) {

              this[i] = initArray.arguments[i];

       }

}

<!--在這裡可以設定密碼﹐該密碼是以ASCII碼來表示的﹐比如A97B98等。//-->

var password = new initArray(

97,98,99,100

);

 

var pass_count=0;

 

var cancel_key=27;

if (document.layers)      document.captureEvents(Event.KEYPRESS)

function backhome(e){

       if (document.layers){

       //if (navigator.appName == "Netscape"){

              if (e.which==password[pass_count]) {

                     checkpassword();

                     //return false;

              }

              else {

                     pass_count=0;

                     //return false;

              }

       }

       else if (document.all){

              if (event.keyCode==password[pass_count]){

                     checkpassword();

                     //return false;

              }

              else {

                     pass_count=0;

                     //return false;

              }

                           

       }

}

 

 

document.onkeypress=backhome

 

function checkpassword() {

       pass_count++;

       if(pass_count>=password.length)  {

              if(confirm(msg))    window.location=url;

       }

}

</SCRIPT>

 

 

0 Comments

Fri

20

Mar

2009

170、访问时间限制脚本

170、访问时间限制脚本

脚本说明:

 

第一步:把如下代码加入<body>区域中

 

<SCRIPT language="JavaScript">

 

<!--

 

var limit="0:59"

 

if (document.images){

 

var parselimit=limit.split(":")

 

parselimit=parselimit[0]*60+parselimit[1]*1

 

}

 

function begintimer(){

 

if (!document.images)

 

return

 

if (parselimit==1)

 

//下面是限制时间到了后去的连接页面,自己修改。

 

window.location="zh1.htm"

 

else{

 

parselimit-=1

 

curmin=Math.floor(parselimit/60)

 

cursec=parselimit

 

if (curmin!=0)

 

curtime="你只有"+curmin+""+cursec+"秒的时间保存此页。"

 

else

 

curtime="你只有"+cursec+"秒的时间访问此页。"

 

setTimeout("begintimer()",1000)

 

//下一句告诉访问者剩余的时间,在文本框中显示,不想要去掉即可。

 

document.lefttime.left.value=curtime

 

//下一句告诉访问者剩余的时间,在状态栏中显示。

 

window.status=curtime

 

}

 

}

 

//-->

 

</SCRIPT>

 

 

第二步:<body>区域改为

 

<body bgcolor="#fef4d9" onload="begintimer()">

 

 

0 Comments

Fri

20

Mar

2009

169、集成Cookies

169、集成Cookies

脚本说明:

第一步:把如下代码加入<body>区域中

<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) ? "" : ("; expires=" + expires.toGMTString())) +

     ((path == null) ? "" : ("; path=" + path)) +

     ((domain == null) ? "" : ("; domain=" + domain)) +

       ((secure == true) ? "; secure" : "");

   }

function ResetCounts(name)

   {

   visits = 0;

   SetCookie("visits", visits, expdate , "java2000.wol.com.html", null, false);

   location.reload();

   }

//-->

</SCRIPT><br><SCRIPT language="JavaScript"><!--

var expdate = new Date();

 

var visits;

 

// Set expiration date to a year from now.

 

expdate.setTime(expdate.getTime() +  (24 * 60 * 60 * 1000 * 365));

 

if(!(visits = GetCookie("visits")))

 

   visits = 0;

 

visits++;

 

SetCookie("visits", visits, expdate, "java2000.wol.com.html", null, false);

 

   if(visits == 1)

 

      document.write('<P><CENTER>Welcome Cadet '+username+'</CENTER>');

 

   if(visits == 2)

 

      document.write('<P><CENTER>Welcome Ensign '+username+'</CENTER>');

 

   if(visits == 3)

 

      document.write('<P><CENTER>Welcome Lieutenant '+username+'</CENTER>');

 

   if(visits == 4)

 

      document.write('<P><CENTER>Welcome Lieutenant-Commander '+username+'</CENTER>');

 

   if(visits == 5)

 

      document.write('<P><CENTER>Welcome Commander '+username+'</CENTER>');

 

   if(visits == 6)

 

      document.write('<P><CENTER>Welcome Vice-Admiral '+username+'</CENTER>');

 

   if(visits == 7)

 

      document.write('<P><CENTER>Welcome Admiral '+username+'</CENTER>');

 

   if(visits== 8)

 

      document.write('<P><CENTER>Welcome Demi-God '+username+'</CENTER>');

 

   if(visits== 9)

 

      document.write('<P><CENTER>Welcome Demi-God '+username+'</CENTER>');

 

   if(visits>=10)

 

      document.write('<P><CENTER>Welcome Master '+username+'</CENTER>');

 

 

 

//-->

 

</SCRIPT><br>

 

<FONT FACE=ARIAL size="2">

 

<b>Your access was granted from

<SCRIPT language="javascript">document.write(document.referrer)</SCRIPT><br>

Using <SCRIPT language="javascript">document.write(navigator.userAgent)</SCRIPT>

</b></font><br><SCRIPT language="JavaScript"><!--

var expdate = new Date();

 

var visits;

 

expdate.setTime(expdate.getTime() +  (24 * 60 * 60 * 1000 * 365));

 

if(!(visits = GetCookie("visits")))

 

   visits = 0;

 

visits++;

 

SetCookie("visits", visits, expdate, "www.k688.com.html", null, false);

 

document.write(""+"你已经光临本页"+visits+" 次了.谢谢!");

 

 

//-->

 

</SCRIPT><br>

You arrived at <br><SCRIPT language="JavaScript"><!--

Stamp = new Date();

       var Hours;

       var Mins;

       var Time;

       Hours = Stamp.getHours();

       if (Hours >= 12) {

               Time = " P.M.";

       }

        else {

                Time = " A.M.";

        }

      

       if (Hours > 12) {

               Hours -= 12;

        }

       if (Hours == 0) {

               Hours = 12;

        }

       Mins = Stamp.getMinutes();

       if (Mins < 10) {

               Mins = "0" + Mins;

        }

      

       document.write('<font size="2" face="Arial"><B>' + Hours + ":" + Mins + Time + '</B></font>');

//-->

 

</SCRIPT><br>

The current time is:<br><SCRIPT language="JavaScript"><!--

function goback(){

alert("Good Bye!");

history.go(-1);

}

function gettheDate() {

Todays = new Date();

TheDate = "" + (Todays.getMonth()+ 1) +" / "+ Todays.getDate() + " / " +

Todays.getYear()

document.clock.date.value = TheDate;

}

// Navigation - Stop

// Netscapes Clock - Start

// this code was taken from Netscapes JavaScript documentation at

// www.netscape.com on Jan.25.96

 

var timerID = null;

var timerRunning = false;

function stopclock (){

        if(timerRunning)

                clearTimeout(timerID);

        timerRunning = false;

}

 

function startclock () {

        // Make sure the clock is stopped

        stopclock();

        gettheDate()

        showtime();

}

 

function showtime () {

        var now = new Date();

        var hours = now.getHours();

        var minutes = now.getMinutes();

        var seconds = now.getSeconds()

        var timeValue = "" + ((hours >12) ? hours -12 :hours)

        timeValue += ((minutes < 10) ? ":0" : ":") + minutes

        timeValue += ((seconds < 10) ? ":0" : ":") + seconds

        timeValue += (hours >= 12) ? " P.M." : " A.M."

        document.clock.face.value = timeValue;

        // you could replace the above with this

        // and have a clock on the status bar:

        // window.status = timeValue;

        timerID = setTimeout("showtime()",1000);

        timerRunning = true;

}

//-->

 

</SCRIPT><br><form name="clock" onSubmit="0">

<div align=center>

<b><font size="-1"></font></b>

<input type="text" name="date" size=12 value="">

<input type="text" name="face" size=12 value="">

</div>

</form>

 

第二步:<body>改为

<body bgcolor="#fef4d9" onLoad="startclock()">

 

0 Comments

Fri

20

Mar

2009

168、打开页面的等待

168、打开页面的等待

脚本说明:

<form name=loading>

<p align=center>

<font color="#0066ff" size="2" face="Arial">正在打开,请稍等...</font><input type=text name=chart size=46 style="font-family:Arial; font-weight:bolder; color:#0066ff; background-color:#fef4d9; padding:0px; border-style:none;"> <br> <input type=text name=percent size=47 style="color:#0066ff; text-align:center; border-width:medium; border-style:none;">

 

<script>

var bar=0

var line="||"

var amount="||"

count()

function count(){

bar=bar+2

amount =amount + line

document.loading.chart.value=amount

document.loading.percent.value=bar+"%"

if (bar<99)

{setTimeout("count()",100);}

else

{window.location = "http://www.7stk.com";}

}</script></p></form>

 

0 Comments

Fri

20

Mar

2009

167、搜索引擎登记

167、搜索引擎登记

 

<center>

 

脚本说明:

 

<form name="choose" Action="javascript:Simpleall(document.choose) //">

 

  <table border="0" cellSpacing="2" cellpadding="2" align="center">

 

    <tr>

 

      <td>站点名称</td>

 

      <td><input maxLength="35" name="title" size="31"></td>

 

    </tr>

 

    <tr>

 

      <td>站点URL</td>

 

      <td><input maxLength="58" name="http" size="31" value="http://"></td>

 

    </tr>

 

    <tr>

 

      <td>简要描述</td>

 

      <td><textarea cols="30" name="comm" rows="4" wrap="virtual"></textarea></td>

 

    </tr>

 

    <tr>

 

      <td>关键词</td>

 

      <td><input maxLength="58" name="keyw" size="31"></td>

 

    </tr>

 

    <tr>

 

      <td>用户名</td>

 

      <td><input maxLength="20" name="name" size="31"></td>

 

    </tr>

 

    <tr>

 

      <td>E-mail</td>

 

      <td><input maxLength="58" name="email" size="31"></td>

 

    </tr>

 

    <tr>

 

      <td bgcolor="#FFFFFF">密码</td>

 

      <td bgcolor="#FFFFFF"><input maxLength="10" name="passwd" type="password" value size="31"></td>

 

    </tr>

 

    <tr>

 

      <td colspan="2" bgcolor="#FFFFFF"><input checked name="modify" type="radio" value="no">

 

      新站加注  <input name="modify" type="radio" value="yes"> 修改已加注信息</td>

 

    </tr>

 

    <tr>

 

      <td colspan="2" bgcolor="#FFFFFF"><hr size="1">

 

      </td>

 

    </tr>

 

    <tr>

 

      <td colspan="2" bgcolor="#FFFFFF"><table boder="0">

 

        <tr vAlign="top" bgColor="#8edaad">

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.yahoo.com/info/suggest/">Yahoo</a> </td>

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.mckinley.com/magellan/Info/addsite.html">Magellan</a> </td>

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.linkmonster.com/contest.html">Linkmonst</a> </td>

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.aol.com/netfind/info/addurl.html">AOL find</a> </td>

 

        </tr>

 

        <tr bgColor="#8edaad">

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.newhoo.com/add.html">Newhoo</a> </td>

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.scrubtheweb.com/addurl.html">Scrubthe</a> </td>

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.whatsnew.com/whatsnew/submit/">Whatsnew</a> </td>

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://rex.skyline.net/add/">Rexsky</a> </td>

 

        </tr>

 

        <tr bgColor="#cdc191">

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.profind.com/">Profind</a> </td>

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.altavista.digital.com/av/content/addurl.htm">Alta Vista</a> </td>

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.nlsearch.com/docs/register.htm">Nlsearch</a> </td>

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.lycos.com/addasite.html">Lycos</a> </td>

 

        </tr>

 

        <tr bgColor="#cdc191">

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.excite.com/Info/add_url.html">Excite</a> </td>

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.hotbot.com/addurl.html">Hotbot</a> </td>

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://index.opentext.com/main/submitURL.html">Opentext</a> </td>

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.linkstar.com/linkstar/bin/doform?form=ecard">Linkstar</a> </td>

 

        </tr>

 

        <tr bgColor="#cdc191">

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.surfgopher.com/addurl.htm">Surfgopher</a> </td>

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.northernlight.com/docs/register.htm">Northernl</a> </td>

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.webcrawler.com/Help/GetListed/AddURLS.html">Webcrawler</a> </td>

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://guide-p.infoseek.com/AddUrl?pg=DCaddurl.html">InfoSeek</a> </td>

 

        </tr>

 

        <tr bgColor="#cdc191">

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.stpt.com/general/submit.html">STPT</a> </td>

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.searchking.com/add_url.htm">SearchKing</a> </td>

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="../../../www.jayde.com/cgi-bin/addurl.cgi">Jayde</a> </td>

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://in-142.infospace.com/_1_7815569__info/submit.htm">Infospace</a> </td>

 

        </tr>

 

        <tr bgColor="#8edaad">

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.infohiway.com/isn/addurl.shtml">Infohiway</a> </td>

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.cozycabin.com/add.htm">Cozycabin</a> </td>

 

          <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

          href="http://www.dewa.com/submit/sub-universal.shtml">Dewa</a></td>

 

 <td><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.web-search.com/faq.html">Websearch</a> </td>

 

        </tr>

 

      </table>

 

      </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.web-search.com/faq.html">Websearch</a> </td>

 

    </tr>

 

    <tr bgColor="#8edaad">

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.fathead.net/search/addsite.html">Fathead</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.yeehaa.com/addurl.shtml">Yeehaa</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.whatuseek.com/addurl.htm">Whatuseek</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="../../../www.findlink.com/searchit/s-addurl.cgi">Findlink</a> </td>

 

    </tr>

 

    <tr bgColor="#8edaad">

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://personalweb.net/search/add.html">Personalweb</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.iexplorer.com/submiturl.asp">Iexplorer</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.psychcrawler.com/plweb/pcsubmit.html">Psychcrawler</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.411locate.com/join.htm">411locate</a> </td>

 

    </tr>

 

    <tr bgColor="#8edaad">

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.looksmart.com/r?notnew">Looksmart</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.mcp.com/directories/ypsubmit.html">Yellowpage</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://astalavista.box.sk/add.html">Astalavista</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://addsite.euroseek.net/page.cfm?page=start&ifl=uk">Euroseek</a> </td>

 

    </tr>

 

    <tr bgColor="#8edaad">

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://galaxy.einet.net/cgi-bin/annotate">Galaxy</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="../../../www.lexiconn.com/dir/addurl.cgi">Lexiconn</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://homepages.whowhere.com/bin/showpage.pl?add">Whowhere</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"> <a      href="http://www.register-it.com/scripts_clean/states/router.cgi?banner=metacrawler&istate=start&pflg=1&status=+++New+User+++">MetaCrawler</a></td>

 

    </tr>

 

    <tr bgColor="#8edaad">

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://cmtgroup.com/links/addurl.html">cMT</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.powercrawler.com/add.htm">PowerCrawler</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://home.snap.com/directory/submiturl/0,158,home-3,00.html">Snap</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="../../../www.nerdworld.com/cgi-bin/nwadd.cgi">Nerdworld</a> </td>

 

    </tr>

 

    <tr bgColor="#cdc191">

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://gbchinese.yahoo.com/docs/info/suggest.html">GB Yahoo</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.whatsite.com/main/add_url.htm">Whatsite</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://pccms.pku.edu.cn:8000/addurl.htm">天网</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.goyoyo.com.cn/bj/serv/urlgb.htm">Goyoyo_GB</a> </td>

 

    </tr>

 

    <tr bgColor="#cdc191">

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://cgi.chinabyte.com/cgi-bin/webdriver?MIval=searchjoin">Chinabyte</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.c3s.org.sg:80/template/urladd.BackCSite.html">华页指南</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.searchchina.com/cgi-bin/chsearch?page=form">中文查寻</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.cnnic.net.cn:802/cregister.html">若比邻</a> </td>

 

    </tr>

 

    <tr bgColor="#bcbcbc">

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.beijixing.com.cn/register.htm">北极星</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://newtoo.manifest.com/submit.html">Newtoo</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://matilda.aaa.com.au/dir2/add.shtml">AAA</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.yeah.net/addurl.html">网易</a> </td>

 

    </tr>

 

    <tr bgColor="#bcbcbc">

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.chinaok.com/add_db.htm">华好网景</a></td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.search.com.cn/addurl/url.htm">网现引擎</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.richsurf.com/richsurf/url_add.htm">四通</a> </td>

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="http://www.chinavista.com/hyper-c/chadd.html">中国指南</a> </td>

 

    </tr>

 

    <tr bgColor="#bcbcbc">

 

      <td bgcolor="#FFFFFF"><input name="check" type="checkbox" value="ON"><a

 

      href="../../../sohoo.com.cn/cgi-bin/sohoo/regform.pl">搜狐</a> </td>

 

    </tr>

 

  </table>

 

  <table align="center">

 

    <tr>

 

      <td width="422" height="32" bgcolor="#FFFFFF">

 

<div align="center"><center><p><input

 

      name="send" type="submit" value=" " class="buttonface">  </div></td>

 

    </tr>

 

  </table>

 

</form>

 

 

0 Comments

Fri

20

Mar

2009

166、进入时显示信息

166、进入时显示信息

脚本说明:

<body>区域中改为:

<body bgcolor="#fef4d9" onLoad="window.alert('欢迎光临网页特效代码\n\n本站有网页特效,影音空间\n\n还有许多其批它栏目\n\n网址http://www.huicui.jimdo.com')">

 

0 Comments

Fri

20

Mar

2009

165、随机播放背景音乐

165、随机播放背景音乐

脚本说明:

把如下代码加入<body>区域中

<SCRIPT language="JavaScript">

<!--

var sound1="song1.mid"

var sound2="song2.mid"

var sound3="song3.mid"

var sound4="song4.mid"

var sound5="song5.mid"

var sound6="song6.mid"

var sound7="song7.mid"

var sound8="song8.mid"

var sound9="song9.mid"

var sound10="song10.mid"

var x=Math.round(Math.random()*9)

if (x==0) x=sound1

else if (x==1) x=sound2

else if (x==2) x=sound3

else if (x==3) x=sound4

else if (x==4) x=sound5

else if (x==5) x=sound6

else if (x==6) x=sound7

else if (x==7) x=sound8

else if (x==8) x=sound9

else x=sound10

if (navigator.appName=="Microsoft Internet Explorer")

document.write('<bgsound src='+'"'+x+'"'+' loop="infinite">')

else

document.write('<embed src='+'"'+x+'"'+'hidden="true" border="0" width="20" height="20" autostart="true" loop="true">')

 

 

//-->

 

 

</SCRIPT>

 

0 Comments

Fri

20

Mar

2009

164、每一天的不同不同音乐

164、每一天的不同不同音乐

脚本说明:

把如下代码加入<head>区域中

<table border=5 bordercolor=blue borderlight=green>

<tr><td align=center><font size=5 color=red face="Arial, Helvetica, sans-serif"><strong>跟据日期能听到不同的音乐!</strong></font></td></tr><tr><td align=center><SCRIPT language="JavaScript">

<!--

page=new Date();

if (page.getDate() == 1)

document.write("<bgsound src=song1.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 2)

document.write("<bgsound src=song2.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 3)

document.write("<bgsound src=song3.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 4)

document.write("<bgsound src=song4.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 5)

document.write("<bgsound src=song5.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 6)

document.write("<bgsound src=song6.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 7)

document.write("<bgsound src=song7.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 8)

document.write("<bgsound src=song8.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 9)

document.write("<bgsound src=song9.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 10)

document.write("<bgsound src=song10.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 11)

document.write("<bgsound src=song1.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 12)

document.write("<bgsound src=song2.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 13)

document.write("<bgsound src=song3.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 14)

document.write("<bgsound src=song4.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 15)

document.write("<bgsound src=song5.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 16)

document.write("<bgsound src=song6.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 17)

document.write("<bgsound src=song7.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 18)

document.write("<bgsound src=song8.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 19)

document.write("<bgsound src=song9.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 20)

document.write("<bgsound src=song10.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 21)

document.write("<bgsound src=song1.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 22)

document.write("<bgsound src=song2.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 23)

document.write("<bgsound src=song3.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 24)

document.write("<bgsound src=song4.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 25)

document.write("<bgsound src=song5.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 26)

document.write("<bgsound src=song6.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 27)

document.write("<bgsound src=song7.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 28)

document.write("<bgsound src=song8.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 29)

document.write("<bgsound src=song9.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 30)

document.write("<bgsound src=song10.mid width=145 height=30 autostart=true loop=-1 volume=50>");

 

if (page.getDate() == 31)

document.write("<bgsound src=song1.mid width=145 height=30 autostart=true loop=-1 volume=50>");

page=new Date();

var months = new Array(13);

months[1] = "1";

months[2] = "2";

months[3] = "3";

months[4] = "4";

months[5] = "5";

months[6] = "6";

months[7] = "7";

months[8] = "8";

months[9] = "9";

months[10] = "10";

months[11] = "11";

months[12] = "12";

 

var dateObj = new Date()

var lmonth = months[dateObj.getMonth() + 1]

var date = dateObj.getDate()

 

document.write("<br>" +"今天是:"+ lmonth + date+""+"播放007主题曲")

 

//-->

 

 

 

</SCRIPT></td></tr>

</table>

 

0 Comments

Fri

20

Mar

2009

163、链接确认按钮

163、链接确认按钮

脚本说明:

 

把如下代码加入<body>区域中

 

<script language="">

 

function winconfirm(){

 

       question = confirm("你确认要到“网页特效代码”吗?")

 

       if (question != "0"){

 

              window.open("http://www.7stk.com")

 

       }

 

}

 

</script>

 

<a href="javascript:winconfirm()">网页特效代码</a>

 

 

0 Comments

Fri

20

Mar

2009

162、点击加入收藏夹

162、点击加入收藏夹

脚本说明:

把如下代码加入<body>区域中

<a href="javascript:window.external.AddFavorite('http://www.k688.com', '网络时空')">点击加入收藏夹</a>

 

0 Comments

Fri

20

Mar

2009

161、记录页面更新时间

161、记录页面更新时间

脚本说明:

把如下代码加入<body>区域中

<script language="JavaScript">

<!--hide script from old browsers

document.write("本页最后更新日期: <br>" + document.lastModified + "")// end hiding -->

</script>

 

0 Comments

Fri

20

Mar

2009

160、E-mail表单递交

160E-mail表单递交

脚本说明:

把如下代码加入<body>区域中

<script language="JavaScript">

<!--

function validate_form() {

  validity = true;

  if (!check_empty(document.form.NAME.value))

        { validity = false; alert('对不起!请你填入你的姓名。'); }

  if (!check_email(document.form.EMAIL.value))

        { validity = false; alert('对不起!请重新正确填入Email地址。'); }

  if (!check_empty(document.form.DESCRIPTION.value))

        { validity = false; alert('对不起!请你在"简要描述"留言填入留言。'); }

  if (validity)

        alert ("                      谢谢你的来信.                                  "

                + "              你所填的信息将以Email形式发送给我,                      "

                + "              假如你认为本站内容不错的话,请将本                       "

                + "              介绍给你的朋友,希望大家经常光顾本站。");

  return validity;

}

 

function check_empty(text) {

  return (text.length > 0);

}

 

function check_email(address) {

  if ((address == "")

    || (address.indexOf ('@') == -1)

    || (address.indexOf ('.') == -1))

      return false;

  return true;

}

 

// -->

</script>

<form name="form" method="post" action="mailto:xiaoqinglu@263.net?SUBJECT=网友的留言"

enctype="text/plain" onSubmit="return validate_form()">

              <table width="90%" border="0" cellspacing="0" cellpadding="0">

                <tr>

                  <td width="77%">

                    <div align="left"><font size="3"><b>姓名:</b></font>

                      <input type="text" size=46 name="NAME">

                      <br>

                      <b><font size="3">Email地址: </font></b>

                      <input type="text" size=46 name="EMAIL">

                      <br>

                      <b><font size="3">URL地址: </font></b>

                      <input type="text" size=46 name="URL" value="http://">

                      <br>

                      <b><font size="3">留言内容:</font></b><br>

                      <textarea name="DESCRIPTION" rows=8 cols=45 wrap=virtual></textarea>

                    </div>

                  </td>

                </tr>

                <tr>

                  <td>

                    <div align="center"><br>

                      <input type="submit" name="submit" value="发送">

                      <input type="reset" value="清除" name="reset">

                    </div>

                  </td>

                </tr>

              </table>

              </form>

 

0 Comments

Fri

20

Mar

2009

159、进入页面等待

159、进入页面等待

脚本说明:

<style type="text/css">

#divLoadCont{position:absolute; z-index:500; left:0; top:0; width:100%; height:98%; clip:rect(0,100%,100%,0); background-color:white; layer-background-color:white; }

#divLoad1{position:absolute; layer-background-color:silver; background-color:silver}

#divLoad2{position:absolute; left:0; top:0; layer-background-color:navy; background-color:navy}

#divLoadText{position:absolute; background-color:transparent; font-family:arial,helvetica; color:Navy; font-size:14px; }

</style>

<script language="JavaScript" type="text/javascript">

function lib_bwcheck(){ //Browsercheck (needed)

       this.ver=navigator.appVersion

       this.agent=navigator.userAgent

       this.dom=document.getElementById?1:0

       this.opera5=this.agent.indexOf("Opera 5")>-1

       this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;

       this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;

       this.ie4=(document.all && !this.dom && !this.opera5)?1:0;

       this.ie=this.ie4||this.ie5||this.ie6

       this.mac=this.agent.indexOf("Mac")>-1

       this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;

       this.ns4=(document.layers && !this.dom)?1:0;

       this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)

       return this

}

var bw=new lib_bwcheck()

 

 

/*VARIABLES TO SET START: */

numImages=10 //How many images you have in your page

loaderWidth=300 //The width of the loadbar

 

currentImg=0

//Document size object ********

function lib_doc_size(){

  this.x=0;this.x2=bw.ie && document.body.offsetWidth-20||innerWidth||0;

  this.y=0;this.y2=bw.ie && document.body.offsetHeight-5||innerHeight||0;

  if(!this.x2||!this.y2) return message('Document has no width or height')

  this.x50=this.x2/2;this.y50=this.y2/2;

  return this;

}

 

//Lib objects  ********************

function lib_obj(obj,nest){

  nest=(!nest) ? "":'document.'+nest+'.'

  this.evnt=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document.layers." +obj):0;  

  this.css=bw.dom||bw.ie4?this.evnt.style:this.evnt;

  this.ref=this.css

  this.w=this.evnt.offsetWidth||this.css.clip.width||

    this.ref.width||this.css.pixelWidth||0;

  return this

}

//Moving object to **************

lib_obj.prototype.moveIt = function(x,y){

  this.x=x;this.y=y; this.css.left=x;this.css.top=y

}

//Clipping object to ******

lib_obj.prototype.clipTo = function(t,r,b,l,setwidth){

  this.ct=t; this.cr=r; this.cb=b; this.cl=l

  if(bw.ns4){

    this.css.clip.top=t;this.css.clip.right=r

    this.css.clip.bottom=b;this.css.clip.left=l

  }else{

    if(t<0)t=0;if(r<0)r=0;if(b<0)b=0;if(b<0)b=0

    this.css.clip="rect("+t+","+r+","+b+","+l+")";

    if(setwidth){this.css.pixelWidth=this.css.width=r;

    this.css.pixelHeight=this.css.height=b}

  }

}

var oLoad2

function startLoading(){

  page=new lib_doc_size()

  oLoadCont=new lib_obj('divLoadCont')

  oLoad=new lib_obj('divLoad1','divLoadCont')

  oLoad2=new lib_obj('divLoad2','divLoadCont.document.divLoad1')

  oLoadText=new lib_obj('divLoadText','divLoadCont.document.divLoad1')

  oLoad.moveIt(page.x50-loaderWidth/2,page.y50-20)

  oLoadText.moveIt(loaderWidth/2 - oLoadText.w/2,10)

  oLoad.clipTo(0,loaderWidth,40,0,1)

  oLoad2.per = loaderWidth/numImages

}

function loadIt(ok){

  currentImg++

  if(oLoad2) oLoad2.clipTo(0,oLoad2.per*currentImg,40,0,1)

  if(!ok){

    oLoadCont.css.visibility='hidden'

    oLoadCont=null; oLoad1=null; oLoad2=null;

  }

}

 

//DISPLAY FUNCTION - DELETE START -------- DELETE THIS *************

//LEAVE THIS FUNCTION WHILE TESTING. DELETE WHEN READY

function loadIt_display(ok){

  currentImg++

  if(oLoad2) oLoad2.clipTo(0,oLoad2.per*currentImg,40,0,1)

  if(currentImg<=numImages) setTimeout("loadIt_display(1)",200)

  else{

    oLoadCont.css.visibility='hidden'

  }

}

//DISPLAY FUNCTION - DELETE END *************************************

</script>

<div id="divLoadCont">

  <div id="divLoad1">

    <div id="divLoad2"></div><br>

    <div id="divLoadText">Loading...</div>

  </div>

</div>

<script>

startLoading()

//onload=loadIt; //- LEAVE THIS LINE WHILE TESTING. UNCOMMENT WHEN READY

loadIt_display(1) //LEAVE THIS LINE WHILE TESTING. DELETE WHEN READY

</script>

 

0 Comments

Fri

20

Mar

2009

158、打开页面的等待

158、打开页面的等待

脚本说明:

<meta http-equiv="refresh" content="10; url=http://www.7stk.com">

<style>

<!--

#bar, #barbackground{

position:absolute;

left:185;

top:120;

background-color:red;

}

 

#barbackground{

background-color:c0c0c0;

}

 

-->

</style>

<script>

//1) Set the duration for the progress bar to complete loading (in seconds)

var duration=5

 

//2) Set post action to carry out inside function below:

function postaction(){

//Example action could be to navigate to a URL, like following:

//window.location="games/checker.htm"

}

 

 

///Done Editing/////////////

var clipright=0

var widthIE=0

var widthNS=0

 

function initializebar(){

if (document.all){

baranchor.style.visibility="visible"

widthIE=bar.style.pixelWidth

startIE=setInterval("increaseIE()",150)

}

if (document.layers){

widthNS=document.baranchorNS.document.barbackgroundNS.clip.width

document.baranchorNS.document.barNS.clip.right=0

document.baranchorNS.visibility="show"

 

startNS=setInterval("increaseNS()",150)

}

}

 

function increaseIE(){

bar.style.clip="rect(0 "+clipright+" auto 0)"

window.status="已经完成了......"

if (clipright<widthIE)

clipright=clipright+(widthIE/(duration*20))

else{

window.status=''

clearInterval(startIE)

postaction()

}

}

 

function increaseNS(){

if (clipright<202){

window.status="Loading..."

document.baranchorNS.document.barNS.clip.right=clipright

clipright=clipright+(widthNS/(duration*20))

}

else{

window.status=''

clearInterval(startNS)

postaction()

}

}

 

 

window.onload=initializebar

 

</script>

<script language="JavaScript1.2">

if (document.all){

document.write('<div id="baranchor" style="position:relative;width:400px;height:20px;visibility:hidden;">')

document.write('<div id="barbackground" style="width:400px;height:20px;z-index:9"></div>')

document.write('<div id="bar" style="width:400px;height:20px;z-index:10"></div>')

document.write('</div>')

}

 

</script>

<ilayer name="baranchorNS" visibility="hide" width=400 height=20>

<layer name="barbackgroundNS" bgcolor=black width=400 height=20 z-index=11 left=0 top=0>

</layer>

<layer name="barNS" bgcolor=blue width=400 height=20 z-index=11 left=0 top=0>

</layer>

</ilayer>

<p align="center"><font size="2">Load.........</font></p>

 

0 Comments

Fri

20

Mar

2009

157、设置默认首页

157、设置默认首页

脚本说明:

把如下代码加入<body>区域中

<span  onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.7stk.com');"  style="CURSOR: hand"><br>将本站设置为首页</a></span>

 

0 Comments

Fri

20

Mar

2009

156、计算器2

156、计算器2

脚本说明:

把如下代码加入<body>区域中

   <FORM NAME="Calc">

   <TABLE BORDER=4><TR><TD>

    <INPUT TYPE="text"   NAME="Input" Size="16"><br>

   </TD></TR><TR><TD>

    <!-- all the buttons go here, just add as many as you like! -->

 

    <INPUT TYPE="button" NAME="one"   VALUE="  1  " OnClick="Calc.Input.value += '1'">

 

    <INPUT TYPE="button" NAME="two"   VALUE="  2  " OnCLick="Calc.Input.value += '2'">

 

    <INPUT TYPE="button" NAME="three" VALUE="  3  " OnClick="Calc.Input.value += '3'">

 

    <INPUT TYPE="button" NAME="plus"  VALUE="  +  " OnClick="Calc.Input.value += ' + '"><br>

 

    <INPUT TYPE="button" NAME="four"  VALUE="  4  " OnClick="Calc.Input.value += '4'">

 

    <INPUT TYPE="button" NAME="five"  VALUE="  5  " OnCLick="Calc.Input.value += '5'">

 

    <INPUT TYPE="button" NAME="six"   VALUE="  6  " OnClick="Calc.Input.value += '6'">

 

    <INPUT TYPE="button" NAME="minus" VALUE="  -   " OnClick="Calc.Input.value += ' - '"><br>

 

    <INPUT TYPE="button" NAME="seven" VALUE="  7  " OnClick="Calc.Input.value += '7'">

 

    <INPUT TYPE="button" NAME="eight" VALUE="  8  " OnCLick="Calc.Input.value += '8'">

 

    <INPUT TYPE="button" NAME="nine"  VALUE="  9  " OnClick="Calc.Input.value += '9'">

 

    <INPUT TYPE="button" NAME="times" VALUE="  x  " OnClick="Calc.Input.value += ' * '"><br>

 

    <INPUT TYPE="button" NAME="clear" VALUE="  c  " OnClick="Calc.Input.value = ''">

 

    <INPUT TYPE="button" NAME="zero"  VALUE="  0  " OnClick="Calc.Input.value += '0'">

 

    <INPUT TYPE="button" NAME="DoIt"  VALUE="  =  " OnClick="Calc.Input.value = eval(Calc.Input.value)">

    <INPUT TYPE="button" NAME="div"   VALUE="  /   " OnClick="Calc.Input.value += ' / '"><br>

   </TD></TR>

   </TABLE>

   </FORM>

 

0 Comments

Fri

20

Mar

2009

155、计算器

155、计算器

脚本说明:

把如下代码加入<body>区域中

<script language="JavaScript">

<!-- Hide the script from old browsers --

function compute(obj)

   {obj.expr.value = eval(obj.expr.value)}

var one = '1'

var two = '2'

var three = '3'

var four = '4'

var five = '5'

var six = '6'

var seven = '7'

var eight = '8'

var nine = '9'

var zero = '0'

var plus = '+'

var minus = '-'

var multiply = '*'

var divide = '/'

var decimal = '.'

function enter(obj, string)

   {obj.expr.value += string}

function clear(obj)

   {obj.expr.value = ''}

// --End Hiding Here -->

</script>

<form name="calc">

<table border=1>

<td colspan=4><input type="text" name="expr" size=30 action="compute(this.form)"> <tr>

<td><input type="button" value="  7  " onClick="enter(this.form, seven)">

<td><input type="button" value="  8  " onClick="enter(this.form, eight)">

<td><input type="button" value="  9  " onClick="enter(this.form, nine)">

<td><input type="button" value="   /  " onClick="enter(this.form, divide)">

<tr><td><input type="button" value="  4  " onClick="enter(this.form, four)">

<td><input type="button" value="  5  " onClick="enter(this.form, five)">

<td><input type="button" value="  6  " onClick="enter(this.form, six)">

<td><input type="button" value="  *  " onClick="enter(this.form, multiply)">

<tr><td><input type="button" value="  1  " onClick="enter(this.form, one)">

<td><input type="button" value="  2  " onClick="enter(this.form, two)">

<td><input type="button" value="  3  " onClick="enter(this.form, three)">

<td><input type="button" value="   -  " onClick="enter(this.form, minus)">

<tr><td colspan=2><input type="button" value="       0       " onClick="enter(this.form, zero)">

<td><input type="button" value="   .  " onClick="enter(this.form, decimal)">

<td><input type="button" value="  +  " onClick="enter(this.form, plus)">

<tr><td colspan=2><input type="button" value="   =   " onClick="compute(this.form)">

<td colspan=2><input type="button" value="AC" size= 3 onClick="clear(this.form)"> </table>

</form>

 

0 Comments

Fri

20

Mar

2009

154、直接调用其它站点的页面

154、直接调用其它站点的页面

脚本说明:

把如下代码加入<body>区域中:

<object type="text/x-scriptlet" width="600"  height="1000" data="http://www.7stk.com">

</object>

 

0 Comments

Fri

20

Mar

2009

153、输入框的新属性

153、输入框的新属性

使用两种新的属性disabledreadonly

1disabled属性可以将一种操作屏蔽起来,例如禁止用户选择,点击按钮或者使用TAB键在不同的TEXT间切换。

FORM标签中使用Disabled属性:

<INPUT type="button" name="doneButton" value="确定" disabled>

看上去就是这样: 。

<INPUT type="text" name="username" value="james" disabled>

看上去就是这样:

当你的站点有些功能功能尚未完成或者暂时关闭,就这样处理不是非常棒吗?

注意:使用disabled属性后的区域的值,不能被传递给其他的程序(ASP/CGI)去处理,如果你非要传递请通过隐藏属性去做。即<input type="hidden" name="username" value="james">

2readonly属性顾名思义是只读。它将TEXT转化为一个对象,禁止对它进行编辑。

<INPUT type="text" name="partNumber" value="1500" readonly>

可以修改
不能修改

以上第二个区域使用了readonly属性, 你虽然可以通过TAB键在多个TEXT区域间切换,但是不能修改已经指定的TEXT区的值。但是它不象Disabled属性那样,可以进行正常的数值传递。

 

0 Comments

Fri

20

Mar

2009

152、检测点链接速度

152、检测点链接速度

脚本说明:

把如下代码加入<body>区域中:

<script>

tim=1

setInterval("tim++",100)

b=1

 

var autourl=new Array()

autourl[1]="www.7stk.com"

autourl[2]="javacool.3322.net"

autourl[3]="www.sina.com.cn"

autourl[4]="www.nuaa.edu.cn"

autourl[5]="www.cctv.com"

 

function butt(){

document.write("<form name=autof>")

for(var i=1;i<autourl.length;i++)document.write("<input type=text name=txt"+i+" size=10 value=测试中……> =<input type=text name=url"+i+" size=40> =<input type=button value=GO onclick=window.open(this.form.url"+i+".value)><br>")

document.write("<input type=submit value=刷新></form>")

}

butt()

function auto(url){

document.forms[0]["url"+b].value=url

if(tim>200)

{document.forms[0]["txt"+b].value="链接超时"}

else

{document.forms[0]["txt"+b].value="时间"+tim/10+""}

b++

}

function run(){for(var i=1;i<autourl.length;i++)document.write("<img src=http://"+autourl[i]+"/"+Math.random()+" width=1 height=1 onerror=auto('http://"+autourl[i]+"')>")}

run()</script>

 

 

0 Comments