87,990
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title></title>
<meta name="google" value="notranslate">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<input type="text" id="btnHello" />
<script type="text/javascript">
var position=0
function gonggao(str2)
{
var speed=10;
var str1=str2;
document.getElementById('btnHello').value = str1.substring(position,position+10);
if(position++==str1.length)
{
position=0;
}
var cmd="gonggao('"+str1+"')";
window.setTimeout(cmd,2000/speed);
}
var str = "assdgfsagddfgbs";
gonggao(str);
</script>
</body>
</html>
<html>
<script language="javascript">
var position=0
function gonggao(str2)
{
var speed=10;
var str1=str2;
document.all.ntc.innerText=str1.substring(position,position+240);
if(position++==str1.length)
{
position=0;
}
}
var cmd="gonggao('+str1+')";
window.setInterval(cmd,2000);
</script>
<body>
<div name="ntc" id="ntc"/>
</body>
</html>
<html>
<script language="javascript">
var position=0
function gonggao(str2)
{
var speed=10;
var str1=str2;
document.all.ntc.innerHTML=str1.substring(position,position+240);
if(position++==str1.length)
{
position=0;
}
}
var cmd="gonggao('+str1+')";
window.setInterval(cmd,2000);
</script>
<body>
<div name="ntc" id="ntc"/>
</body>
</html>