PHP 滚动标题

  • 内容
  • 相关

转载请注明本文链接:https://blog.l9s.cc/.html  [生成短网址]

<html>

<head>

<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>

<title>lseven滚动标题</title>

<script language=”javascript”>

var title_string = “lseven让你的标题栏文字动起来,标题也动了”;

var title_length = title_string.length;

var index_count = 0;

var cmon;

 

function scrollTheTitle()

{

var doc_title = title_string.substring(index_count, title_length);

document.title = doc_title;

index_count++;

}

 

function loopTheScroll()

{

scrollTheTitle();

if(index_count >= title_length)

{

index_count = 0;

//clearTimeout(cmon);

}

cmon = setTimeout(“loopTheScroll();”,300)

}

loopTheScroll();

//–>

</script>

</head>

</html>

本文标签:

版权声明:若无特殊注明,本文皆为《王晓明》原创,转载请保留文章出处。

本文链接:PHP 滚动标题 - https://blog.l9s.cc/教程代码/136.html

发表评论

电子邮件地址不会被公开。 必填项已用*标注