|
|
|
输入显示框中循环出现文字
作者:佚名 来源:一亩三分地 点击: 日期:2007-03-28 |
|
步骤一: 请将下面的原代码插入到<body>下面 , <SCRIPT LANGUAGE="JavaScript">
<!-- escondamos //texto a mostrarse var mensaje=" >>> 欢 >>> 迎 >>> 你的 >>> 光临"; mensaje+=" >>> 经 >>> 常 >>> 来 >>> 哟";
//fraccion a mostrarse var ancho=50;
//rutina de mensaje deslizante function desliza(){ document.forms[0].panel.value=mensaje.substring(mensaje.length-ancho,mensaje.length); mensaje=mensaje.substring(mensaje.length-1,mensaje.length)+mensaje; mensaje=mensaje.substring(0,mensaje.length-1); setTimeout("desliza()",100); }
// basta de esconder -->
</SCRIPT> <form> <INPUT TYPE="text" NAME="panel" VALUE="" SIZE="50"> </form>
步骤二: , 把<body>中的内容改为:
<body bgcolor="#ffffff" onLoad="desliza(); return true;">
|
|
|
|
【文章评论】
【收藏本文】
【推荐好友】
【打印本文】
【论坛讨论】 |
相关文章: |
|
|
文章评论:(条) |
|
|
|
|
责任编辑:一分 声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。 |
|