在网页中 时常有人 使用swish来做打字 动机,其实JavaScript也能做出那样的 动机,按如下 步骤在HTML文件中加入JavaScript代码便可 。要 使用的文字你 可以依据需求 批改 。
第一步:把如下代码加入<head>区域中
<SCRIPT LANGUAGE="JavaScript"><!-- Original: Tarjei Davidsen (the@rescueteam.com) --><!-- This script and many more are available free online at --><!-- The JavaScript Source!! http://javascript.internet.com --><!-- Beginvar max=0;function textlist() {max=textlist.arguments.length;for (i=0; i<max; i++)this[i]=textlist.arguments[i];}tl = new textlist("用电脑拨打市话","IE附带的NetMeeting软件, 彻底免费, 可以进行PC到PC的网络通话,惋惜衔接速度 着实不敢恭维 。","另外IPhone 可以直接拨到对方固定电话上面,衔接速度也不赖,惟一遗憾的便是惟独14天的免费试用期 。","我在这里推举MediaRing Talk中文版,"," 可 免得费同在线消费者通话,并且缴纳少量费用就 可以同固定电话衔接 。");var x = 0; pos = 0;var l = tl[0].length;function textticker() {document.tickform.tickfield.value = tl[x].substring(0, pos) + "_";if(pos++ == l) {pos = 0;setTimeout("textticker()", 2000);if(++x == max) x = 0;l = tl[x].length;} elsesetTimeout("textticker()", 50);}// End --></script></head>
第二步:把如下代码加入<body>区域中
The news will appear here when the page has finished loading.
第三步:把<body>改为
<body bgcolor="#fef4d9" OnLoad="textticker()">