<!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=utf-8" />
<title>无标题文档</title>
<script src="jquery-1.3.2.min.js" type="text/javascript"></script>
<style type="text/css">
.redli{border-bottom:2px solid red;}
.dis1{display:block;}
.dis2{display:none;}
*{ margin:0; padding:0; text-align:center; }
#hzyx-zw {height: 60px; width: 990px;position:relative; overflow:hidden; border:1px solid #ddd;}
#hzyx-zw ul { display:inline; float:left; padding-top: 8px; }
#hzyx-zw li { display: block; height: 60px; width: 121px; text-align: center; float: left; }
#hzyx-zw li img { width:108px; height:46px; border:0px; }
</style>
<script type="text/javascript">
$(function() {
$(".ultag1 li").hover(
function() {
$(".ultag1 li").removeClass("redli");
$(this).addClass("redli");
var _sortid=$(this).attr("sortid");
$("#hzyx-zw #upgundong").html($(".up"+_sortid).html());
},
function() {
$(this).addClass("redli");
}
);
});
</script>
<script type="text/javascript">
/*
h 一次滚动高度
n 一次滚动的数量
speed 滚动速度
delay 滚动间隔时间
*/
function startmarquee(h,n,speed,delay){
var t = null;
$("#hzyx-zw #upgundong").hover(function(){
clearInterval(t);
}, function(){
t = setInterval(start,delay);
}).trigger('mouseout');
function start(){
$("#hzyx-zw #upgundong").animate({marginTop: '-='+h},speed,function(){
$(this).css({marginTop:'0'}).find("li").slice(0,n).appendTo(this);
})
}
}
$(function(){
startmarquee(60,8,1000,3000);
})
</script>
</head>
<body>
<div>
<div id="hzyx-zw" class="hzyxtpul1">
<ul id='upgundong' style="overflow:hidden; ">
<li><a href="42" ><img src="style/1.gif" title="1" /></a></li>
<li><a href="42" ><img src="style/2.gif" title="1" /></a></li>
<li><a href="42" ><img src="style/3.gif" title="1" /></a></li>
<li><a href="42" ><img src="style/4.jpg" title="1" /></a></li>
<li><a href="42" ><img src="style/5.jpg" title="1" /></a></li>
<li><a href="42" ><img src="style/6.jpg" title="1" /></a></li>
<li><a href="42" ><img src="style/7.jpg" title="1" /></a></li>
<li><a href="42" ><img src="style/8.jpg" title="1" /></a></li>
<li><a href="42" ><img src="style/9.jpg" title="1" /></a></li>
<li><a href="42" ><img src="style/10.jpg" title="1" /></a></li>
<li><a href="42" ><img src="style/11.jpg" title="1" /></a></li>
<li><a href="42" ><img src="style/12.jpg" title="1" /></a></li>
<li><a href="42" ><img src="style/13.jpg" title="1" /></a></li>
<li><a href="42" ><img src="style/14.jpg" title="1" /></a></li>
<li><a href="42" ><img src="style/15.jpg" title="1" /></a></li>
<li><a href="42" ><img src="style/16.jpg" title="1" /></a></li>
<li><a href="42" ><img src="style/17.jpg" title="1" /></a></li>
<li><a href="42" ><img src="style/18.jpg" title="1" /></a></li>
</ul>
</div>
</div>
</body>
</html>