怎么让橘色的条子从前面一直延伸,类似与loading功能的.<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
                                   
<style type="text/css">
ul{list-style:none;}
*{margin:0;padding:0;}
#wrap{width:200px;margin:0 auto;overflow:hidden;height:102px;overflow-x:auto;border:1px solid blue;}
#con{width:250%;}
#list1{float:left;margin-top:2px;width:100px;height:10px;background:orange;}
</style>

</head>
<body> <div id="wrap">
<div id="con">
<div id="list1">
</div>
<div style="clear:both"></div>
</div>
</div>
<div id="num"></div>

 
 <script type="text/javascript">
 
var $ = function (id){ return document.getElementById(id)};
var wrap = $("wrap");
var list1 = $("list1");
var list2 = $("list2");
var num = $("num");
var time =10;
function autoScroll(){
if(list1.offsetWidth - wrap.scrollLeft <= 0){
wrap.scrollLeft = list1.offsetWidth - wrap.scrollLeft;
clearInterval(m);
}
else{
wrap.scrollLeft++;
num.innerHTML = wrap.scrollLeft +"%";
}
}
var m = setInterval("autoScroll()",10);
wrap.onmouseover = function(){
clearInterval(m);
}
wrap.onmouseout = function(){
m=setInterval("autoScroll()",10);
}

</script>
 

</body>
</html>