网页常用的标题栏文字切换特效,标题栏有几组文字定时切换显示效果,文字还带有打字效果逐个弹出,根据自己的需求自定义文字。
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <SCRIPT LANGUAGE="JavaScript"> var message = new Array(); message[0] = "武鸣人一号,各种信息免费发布,资源共享合作共赢!"; message[1] = "武鸣人二号,各种信息免费发布,资源共享合作共赢!"; message[2] = "武鸣人三号,各种信息免费发布,资源共享合作共赢!"; //武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) var reps = 1; var speed = 275;// Set the overall typing speed (larger number = slower action). var hold = 4 // set the length of time to display the whole phrase before retyping (larger number = longer) var p = message.length; var q = 0; var r = 0; var C = 0; var mC = 0; var s = 0; var sT = null; if (reps < 1) { reps = 1; }//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) function meg_wumingren() { typing = message[mC]; q = typing.length; r = q + hold; typeMessage(); } function typeMessage() { if (s > r) { s = 0; } if (s > q) { document.title = typing; }//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) else { document.title = typing.substr(0,s); }//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) if (C < (r * reps)) { sT = setTimeout("typeMessage()", speed); C++; s++; }//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) else { C = 0; s = 0; mC++; if(mC > p - 1) {mC = 0;} sT = null; meg_wumingren(); } }//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) meg_wumingren(); </script> <a href="https://www.wuming.ren">武鸣人</a>,各种信息资源免费发布,分享励志语录经典短句,减肥健身常识,各种js特效代码。网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)<hr> <!--欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。--> <script type="text/javascript" src="https://www.wuming.ren/ad/tc.js"></script> <script type="text/javascript" src="https://www.wuming.ren/ad/a.js"></script>
本文来自武鸣人网站,转载请注明出处