input{
background:transparent; /* 输入框背景透明 */
border:none; /* 无边框 */
color:#ffb400;
font-size:45px;
font-weight:bold;
font-family:黑体;
}
<script language="javascript">
var msg="这是跑马灯,我跑啊跑啊跑"; //跑马灯的文字
var interval = 400; //跑动的速度
var seq=0;
function LenScroll() {
document.nextForm.lenText.value = msg.substring(seq, msg.length) + " " + msg;
seq++;
if ( seq > msg.length )
seq = 0;
window.setTimeout("LenScroll();", interval);
}
<input type="text" name="lenText">