<div id="marquee">
<marquee id="marq" onmouseover="marq.stop()" onmouseout="marq.start()" scrollamount="3"
direction="left" behavior="scroll" loop="-1" deplay="0" >
</marquee></div>
function scrollback(data){
var scrolls="";
if(data.length> 0){
for(i=0; i<data.length; i++){
scrolls +='* ';
scrolls +=data[i];
}
document.getElementById("marq").innerHTML = " 最新业务服务:"+scrolls+' ';
}
}
function scroll(){
t.Getdata_scroll(scrollback);
}
在IE浏览器上可以读取所有信息并且滚动,全部显示,但是在火狐浏览器上从右边一滚动到左边,就停止,从头滚动了,不知道什么原因,谢谢大家解答!
------解决方案--------------------
firefox没问题
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><style>
#marquee{
width:728px;
height:21px;
margin:0px auto;
text-align:right;
float:left;
padding-top:4px;
}
</style>
<div id="marquee">
<marquee id="marq" onmouseover="this.stop()" onmouseout="this.start()" scrollamount="3"
direction="left" behavior="scroll" loop="-1" deplay="0" >
</marquee></div>
<script>
function scrollback(data) {
var scrolls = "";
if (data.length > 0) {
for (i = 0; i < data.length; i++) {
scrolls += '* ';