最新標題欄的定時信息_JS特效代碼
以下是三零網爲大家整理的最新標題欄的定時信息_JS特效代碼的文章,希望大家能夠喜歡!
<SCRIPT LANGUAGE="JavaScript"><!-- document.write (' </td><td> </td>'); //--></SCRIPT> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function settitle() { var a = "現在是第10秒 "; var b = "現在是第20秒"; var c = "現在是第30秒"; var d = "現在是第40秒 "; var e = "現在是第50秒"; var f = "現在是第60秒"; var t = new Date(); s = t.getSeconds(); if (s == 10) { document.title = a;} else if (s == 20) { document.title = b;} else if (s == 30) { document.title = c;} else if (s == 40) { document.title = d;} else if (s == 50) { document.title = e;} else if (s == 00) { document.title = f;} setTimeout("settitle()", 1000); } settitle() // End --> </script> |
轉載來自:http://www.q3060.com/list3/list115/322.html