脚本运行不出来 document.getElementByIdx_x_x('word')不支持
•<head><metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/><title...
•<head><metahttp-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title><scriptlanguage="JavaScript" type="text/javascript">varstr = "这个是测试用的范例文字";varseq = 0;var second=1000; //间隔时间1秒钟function scroll() {msg = str.substring(0, seq+1);document.getElementByIdx_x_x('word').innerHTML = msg;seq++;if (seq >= str.length) seq = 0;}</script></head><body onload="setInterval('scroll()',second)"><divid="word"></div><br/><br/></body></html>
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询