📄 824zhuang4.htm
字号:
<html>
<!-- Mirrored from www.yesky.com/imagesnew/software/jscript/824zhuang4.htm by HTTrack Website Copier/3.x [XR&CO'2007], Tue, 15 Apr 2008 09:01:06 GMT -->
<head>
<title>调节文字显示速度</title>
<style type="text/css">
<!--
body { font-family: "宋体"; font-size: 9pt; margin-top: 0px; margin-left: 0px; margin-right: 0px}
A { COLOR: black; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: none }
A:hover { COLOR: red; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: underline }
a:active { font: 9pt "宋体"; cursor: hand; color: #FF0033 }
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body onload="start(document.forms[0])" onunload="cleartids()">
<br>
<br>
<center><font color=red face="隶书" size=6>调节文字显示速度</font></center>
<br>
<center>
<table border=5 bordercolor=black borderlight=green>
<tr><td align=center><font size=5 color=red face="Arial, Helvetica, sans-serif"><strong>下面为效果显示区!</strong></font></td></tr>
<tr><td align=center><script language="javascript">
tid = 0;
pause = 0;
var to;
var bcount;
var tcount;
function bannerArray() {
this.length = 54;
this[1] = " I";
this[2] = " I ";
this[3] = " I l";
this[4] = " I lo";
this[5] = " I lov";
this[6] = " I love";
this[7] = " I love ";
this[8] = " I love j";
this[9] = " I love ja";
this[10] = " I love jav";
this[11] = " I love java";
this[12] = " I love javas";
this[13] = " I love javasc";
this[14] = " I love javascr";
this[15] = " I love javascri";
this[16] = " I love javascrip";
this[17] = " I love javascript";
this[18] = " I love javascript ";
this[19] = " I love javascript v";
this[20] = " I love javascript ve";
this[21] = " I love javascript ver";
this[22] = " I love javascript very";
this[23] = " I love javascript very ";
this[24] = " I love javascript very m";
this[25] = " I love javascript very mu";
this[26] = " I love javascript very muc";
this[27] = "I love javascript very much";
this[28] = " ";
this[29] = "I love javascript very much";
this[30] = " love javascript very much";
this[31] = "love javascript very much";
this[32] = "ove javascript very much";
this[33] = "ve javascript very much";
this[34] = "e javascript very much";
this[35] = " javascript very much";
this[36] = "javascript very much";
this[37] = "avascript very much";
this[38] = "vascript very much";
this[39] = "ascript very much";
this[40] = "script very much";
this[41] = "cript very much";
this[42] = "ript very much";
this[43] = "ipt very much";
this[44] = "pt very much";
this[45] = "t very much";
this[46] = " very much";
this[47] = "very much";
this[48] = "ery much";
this[49] = "ry much";
this[50] = "y much";
this[51] = " much";
this[52] = "uch";
this[53] = "ch";
this[54] = "h";
return this
}
function MakeArray(n) {
this.length = n;
return this
}
banner = new bannerArray();
IMAbanner = 1;
function banner1(n) {
tid=window.setTimeout("banner1(IMAbanner)",to);
f.result.value = banner[IMAbanner];
window.status = banner[IMAbanner];
IMAbanner = IMAbanner + 1;
if (IMAbanner == 55) {
IMAbanner = 1;
window.clearTimeout(tid);
tid=window.setTimeout("banner1()",to);
}
}
function start(x) {
f=x;
to=60;
banner1(x);
}
function pausing(x) {
if (pause == 0) {
pause = 1;
f.P.value = "Paused";
window.clearTimeout(tid);
}
else {
pause = 0;
f.P.value = " ";
banner1(x);
}
}
function speedup() {
if (to != 0) {
to = to-30;
}
}
function slowdown() {
to = to+30;
}
function refr() {
to = 90;
IMAbanner = 1;
}
function cleartids() {
window.clearTimeout(tid);
}
</script>
<form name="banner">
<input type="button" name="加速" value="加速" onClick="speedup()">
<input type="button" name="减速" value="减速" onClick="slowdown()">
<input type="button" name="暂停" value="暂停" onclick="pausing(this.form)">
<input type="text" name="P" size=6>
<input type="text" name="result" size=28>
<input type="reset" name="复原" value="复原" onclick="refr()">
</form>
</td></tr>
</table></center>
<br>
<br>
<center>
<textarea name=source rows=12 cols=45 class=yk9>
脚本说明:
第一步:把如下代码加入<body>区域中
<script language="javascript">
tid = 0;
pause = 0;
var to;
var bcount;
var tcount;
function bannerArray() {
this.length = 54;
this[1] = " W";
this[2] = " We";
this[3] = " Wel";
this[4] = " Welc";
this[5] = " Welco";
this[6] = " Welcom";
this[7] = " Welcome";
this[8] = " Welcome ";
this[9] = " Welcome t";
this[10] = " Welcome to";
this[11] = " Welcome to ";
this[12] = " Welcome to I";
this[13] = " Welcome to IM";
this[14] = " Welcome to IMA";
this[15] = " Welcome to IMA S";
this[16] = " Welcome to IMA ST";
this[17] = " Welcome to IMA STU";
this[18] = " Welcome to IMA STUD";
this[19] = " Welcome to IMA STUDI ";
this[20] = " Welcome to IMA STUDIO";
this[21] = " Welcome to IMA STUDIOS";
this[22] = " Welcome to IMA STUDIOS'";
this[23] = " Welcome to IMA STUDIOS' Si";
this[24] = " Welcome to IMA STUDIOS' Sit";
this[25] = " Welcome to IMA STUDIOS' Site!";
this[26] = " ";
this[27] = " Welcome to IMA STUDIOS' Site! ";
this[28] = " ";
this[29] = " Welcome to IMA STUDIOS' Site! ";
this[30] = " Welcome to IMA STUDIOS' Site! ";
this[31] = "Welcome to IMA STUDIOS' Site! ";
this[32] = "elcome to IMA STUDIOS' Site! ";
this[33] = "lcome to IMA STUDIOS' Site! ";
this[34] = "come to IMA STUDIOS' Site! ";
this[35] = "ome to IMA STUDIOS' Site! ";
this[36] = "me to IMA STUDIOS' Site!";
this[37] = "e to IMA STUDIOS' Site! ";
this[38] = "to IMA STUDIOS' Site!";
this[39] = "o IMA STUDIOS' Site! ";
this[40] = " IMA STUDIOS' Site!";
this[41] = " MA STUDIOS' Site!";
this[42] = "A STUDIOS' Site ";
this[43] = "STUDIOS' Site!";
this[44] = "TUDIOS' Site!";
this[45] = "UDIOS' Site!";
this[46] = "DIOS' Site!";
this[47] = "'IOS' Site!";
this[48] = "OS' Site!";
this[49] = " S' Site!";
this[50] = "' Site!";
this[51] = " Site!";
this[52] = "ite!";
this[53] = "te!";
this[54] = " e!";
return this
}
function MakeArray(n) {
this.length = n;
return this
}
banner = new bannerArray();
IMAbanner = 1;
function banner1(n) {
tid=window.setTimeout("banner1(IMAbanner)",to);
f.result.value = banner[IMAbanner];
window.status = banner[IMAbanner];
IMAbanner = IMAbanner + 1;
if (IMAbanner == 55) {
IMAbanner = 1;
window.clearTimeout(tid);
tid=window.setTimeout("banner1()",to);
}
}
function start(x) {
f=x;
to=60;
banner1(x);
}
function pausing(x) {
if (pause == 0) {
pause = 1;
f.P.value = "Paused";
window.clearTimeout(tid);
}
else {
pause = 0;
f.P.value = " ";
banner1(x);
}
}
function speedup() {
if (to != 0) {
to = to-30;
}
}
function slowdown() {
to = to+30;
}
function refr() {
to = 90;
IMAbanner = 1;
}
function cleartids() {
window.clearTimeout(tid);
}
</script>
<form name="banner">
<input type="button" name="加速" value="加速" onClick="speedup()">
<input type="button" name="减速" value="减速" onClick="slowdown()">
<input type="button" name="暂停" value="暂停" onclick="pausing(this.form)">
<input type="text" name="P" size=6>
<input type="text" name="result" size=28>
<input type="reset" name="复原" value="复原" onclick="refr()">
</form>
第二步:把如下代码加入<body>区域中
<body onload="start(document.forms[0])" onunload="cleartids()">
</textarea>
<SCRIPT LANGUAGE="JavaScript">
<!-- hide
function goHist(a)
{
history.go(a);
}
//-->
</script>
<FORM METHOD="post">
<INPUT TYPE="button" VALUE="返回" onClick="goHist(-1)" >
</form>
</center>
<br>
<br>
</body>
<!-- Mirrored from www.yesky.com/imagesnew/software/jscript/824zhuang4.htm by HTTrack Website Copier/3.x [XR&CO'2007], Tue, 15 Apr 2008 09:01:06 GMT -->
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -