61、标题栏特效三

61、标题栏特效三

脚本说明:

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

<title>7stk欢迎你的光临,请多提宝贵意见</title>

<script>

var repeat=0 //enter 0 to not repeat scrolling after 1 run, othersise, enter 1

var title=document.title

var leng=title.length

var start=1

function titlemove() {

  titl=title.substring(start, leng) + title.substring(0, start)

  document.title=titl

  start++

  if (start==leng+1) {

    start=0

    if (repeat==0)

    return

  }

  setTimeout("titlemove()",240)

}

if (document.title)

titlemove()

</script>

 

Write a comment

Comments: 0