日期:2014-05-16 浏览次数:20367 次
<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);
}
<!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 += '* ';