首页 | 涂鸦版代码 | 音乐代码 | 校内网教程 | 鼠标代码 | 播放器代码 | css代码 | 校内网非主流 | 校内网人气

首页 | games单机游戏 | 网络工具 | soft常用软件 | game相关 | media媒体工具
您当前的位置:校内资源网文章中心涂鸦版代码 → 文章内容
本类热门文章
相关下载
 
校内网标题代码 校内网标题也需要代码
作者:佚名  来源:不详  发布时间:2007-10-23 23:32:59

减小字体 增大字体

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{

    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"}
    }


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()

***把上面这段:
      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+'☆° .★·'}
可以得到另外一种效果哦!

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()

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);}

9:标题栏随机显示
var use_title = new Array ()
use_title[1] = "黑与白"
use_title[2] = "globetour欢迎你!"
use_title[3] = "by:globetour"

now = new Date()
num = (now.getSeconds()) % 3  
num = num + 1

document.title=use_title[num]

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 -->

[] [返回上一页] [打 印]
文章评论 (评论内容只代表网友观点,与本站立场无关!)

用户名: 查看更多评论

分 值:100分 85分 70分 55分 40分 25分 10分 0分

内 容:

         (注“”为必填内容。) 验证码: 验证码,看不清楚?请点击刷新验证码

关于本站 - 网站帮助 - 广告合作 - 下载声明 - 友情连接 - 网站地图 - 管理登陆