校内网标题也需要代码
1:标题栏
<!--
var msg="黑与白"
function Title() {
window.document.title=msg
}
Title()
//-->
2:标题栏(音乐符样式)
<!--
var thetitle="▁黑☉白▁,▂黑⊙白▂,▃黑〇白▃,▄黑◎白▄,▅黑☉白▅,▆黑⊙白▆,▇黑〇白▇,█黑◎白█,█黑◎白█,▇黑〇白▇,▆黑⊙白▆,▅黑☉白▅,▄黑◎白▄,▃黑〇白▃,▂黑⊙白▂,▁黑☉白▁";
var to=0;
var mx = 0;
var my = 0;
var sd=1;
tracescript = '';
function tytitle()
{
var d;
d=thetitle.split(',');
window.document.title=d[to];
if(to <d.length-1)
{
to++;
}else
{
to=0;
}
setTimeout("tytitle()",200);
}
tytitle()
// End -->
3:标题栏标题后显示时间
var clocktext;
var pagetitle = document.title;
function scroll() {
today = new Date();
sec = today.getSeconds();
hr = today.getHours();
min = today.getMinutes();
if (hr <= 9) hr = "0" + hr;
if (min <= 9) min = "0" + min;
if (sec <= 9) sec = "0" + sec;
var clocktext = " 现在时间是: " + hr + ":" + min + ":" + sec;
clocktimer = setTimeout("scroll()", 1000);
document.title = pagetitle + clocktext;
}
if (document.all) scroll();
4:标题栏打字效果
var message="黑与白by:globetour"
var message=message+" "
i="0"
var temptitle=""
var speed="150"
function titler(){
if (!document.all&&!document.getElementById)
return
document.title=temptitle+message.charAt(i)
temptitle=temptitle+message.charAt(i)
i++
if(i==message.length)
{
i="0"
temptitle=""
}
setTimeout("titler()",speed)
}
window.onload=titler
5:标题栏闪烁01
title_tmp1=document.title
if (title_tmp1.indexOf(">>")!=-1){
title_tmp2=title_tmp1.split(">>");
title_last=" —> "+title_tmp2[1];
title_last=title_last + " —> " + title_tmp2[2];
}else{
/*更多校内网CSS代码www.xiaonei99.com */
if (title_tmp1.indexOf("——")!=-1){
title_tmp2=title_tmp1.split("——");
title_last=" —> "+title_tmp2[1];
if (title_last==" —> "){title_last=" —> "};
if (title_last==" —> "){title_last=" —> "};
}
else { title_last="by:globetour"}
}
/*更多校内网非主流代码www.xiaonei99.com */
title_new="黑与白"+title_last+""
step=0
function flash_title()
{
step++
if (step==7) {step=1}
if (step==1) {document.title='◆◇◇◇'+title_new+'◇◇◇◆'}
if (step==2) {document.title='◇◆◇◇'+title_new+'◇◇◆◇'}
if (step==3) {document.title='◇◇◆◇'+title_new+'◇◆◇◇'}
if (step==4) {document.title='◇◇◇◆'+title_new+'◆◇◇◇'}
if (step==5) {document.title='◇◇◆◇'+title_new+'◇◆◇◇'}
if (step==6) {document.title='◇◆◇◇'+title_new+'◇◇◆◇'}
setTimeout("flash_title()",180);
}
flash_title()
/*校内网代码来源:www.xiaonei99.com */
/*校内网涂鸦板代码来源:www.xiaonei99.com */
***把上面这段:
if (step==7) {step=1}
if (step==1) {document.title='◆◇◇◇'+title_new+'◇◇◇◆'}
if (step==2) {document.title='◇◆◇◇'+title_new+'◇◇◆◇'}
if (step==3) {document.title='◇◇◆◇'+title_new+'◇◆◇◇'}
if (step==4) {document.title='◇◇◇◆'+title_new+'◆◇◇◇'}
if (step==5) {document.title='◇◇◆◇'+title_new+'◇◆◇◇'}
if (step==6) {document.title='◇◆◇◇'+title_new+'◇◇◆◇'}
换成:
if (step==5) {step=1}
if (step==1) {document.title='☆° .★·'+title_new+'.★·☆° '}
if (step==2) {document.title='·☆° .★'+title_new+'★·☆° .'}
if (step==3) {document.title='★·☆° .'+title_new+'·☆° .★'}
if (step==4) {document.title='.★·☆° '+title_new+'☆° .★·'}
/*校内网代码来源:www.xiaonei99.com */
可以得到另外一种效果哦!
/*校内网CSS代码来源:www.xiaonei99.com */
6:标题栏闪烁02
step=0
function flash_title()
{step++
if (step==3) {step=1}
if (step==1) {document.title='☆★☆csbeyond☆★☆'}
if (step==2) {document.title='★☆★csbeyond★☆★'}
setTimeout("flash_title()",500);
}flash_title() /*校内网代码来源:www.xiaonei99.com */
7:标题栏闪烁(滚动)
<!--
var msg="★☆★黑与白★☆★"
var delay=200
function scrollTitle() {
window.document.title=msg
msg=msg.substring(1,msg.length)+msg.substring(0,1)
timeID=setTimeout("scrollTitle()",delay)
}
scrollTitle()
//-->
8:标题栏上显示鼠标坐标
var where = "";
function checkwhere(e) {
if (document.layers){
xCoord = e.x;
yCoord = e.y;
}
else if (document.all){
xCoord = event.clientX;
yCoord = event.clientY;
}
else if (document.getElementById){
xCoord = e.clientX;
yCoord = e.clientY;
}
document.title = "X座标值= "+ xCoord + " Y座标值= " + yCoord ;
}
document.onmousemove = checkwhere;
if(document.captureEvents) {document.captureEvents(Event.MOUSEMOVE);} /*校内网代码来源:www.xiaonei99.com */
9:标题栏随机显示
var use_title = new Array ()
use_title[1] = "黑与白"
use_title[2] = "globetour欢迎你!"
use_title[3] = "by:globetour" /*校内网代码:www.xiaonei99.com */
now = new Date()
num = (now.getSeconds()) % 3
num = num + 1
/*校内网CSS代码来源:www.xiaonei99.com */
document.title=use_title[num]
/*更多校内网涂鸦板代码www.xiaonei99.com */
10:标题栏文字定时转换
<!-- Begin
function settitle() {
var a = "黑与白 ";
var b = "globetour欢迎你!";
var c = "by:globetour";
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 = a;}
else if (s == 50) {
document.title = b;}
else if (s == 00) {
document.title = c;}
setTimeout("settitle()", 1000);
}
settitle()
// End --> /*校内网涂鸦板代码来源:www.xiaonei99.com */
以上就是标题代码了 /*更多校内网非主流代码www.xiaonei99.com */

