dom中那个右滚效果好像不显示。大家看下下边代码是不是向右滚动的 纠正下
<title>欢迎大家来到黑马</title>
<script type="text/javascript">
function f1() {
var title = document.title;
var firstch = title.charAt(title.length-1);
var leftch = title.substring(0, title.length-1);
document.title =firstch+leftch;
}
var intvalID = setInterval("f1()", 1000);
我看上去像跟左走没区别。。还是往左边走的 |
|