<!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">
p,a,span {margin:0;padding:0;}
ul {list-style:none;}
img {border:none;}
#content {width:980px;margin:20px auto;}
.body_l {width:680px;float:left;}
.body_r {width:300px;float:left;}
.updiv {width:680px;padding:40px;margin:0;position:relative;}
.updiv li {float:left;margin:0 10px 0 0;padding:0;position:relative;overflow:hidden;}
.updiv li a {display:block;width:196px;height:149px;position:relative;}
.updiv li span {display:block;width:100%;height:27px;background:rgba(0,0,0,0.4);color:#fff;text-align:center;position:absolute;}
</style>
<script type="text/javascript">
 window.onload =  function() {
   oSpan1 = document.getElementById("oLi1");
 oTop=parseInt(oSpan1.style.top);
 }
 function start() {
   if(oTop>=149) {
oTimer = setInterval(moveTop,10);
}else  {
oTimer = setInterval(outTop,10);
}
 } function outTop(){
oTop++;
oSpan1.style.top = oTop + "px";
if (oTop >= 149)

 clearInterval(oTimer);
 }
}
 function moveTop(){ 
oTop--;
oSpan1.style.top = oTop + "px";
if (oTop<=122) 
 clearInterval(oTimer);
  }
 function spanFunction() {
  setTimeout(start,3000);
 }
</script>
</head><body>
<div id="content">
<div class="body_l">
     <ul id="updiv" class="updiv">
         <li ><a href="#" onmouseover="start()" onmouseout="start()"><img src="images/down_img.jpg" width="196" height="149"/>
             <span id="oLi1" style="top:149px;">这是第一张图片</span></a>
                
            </li>
            <li id="oLi2"><p><img src="images/down_img.jpg"  />
             <span class="hidden_txt" style="top:100px;">这是第2张图片</span>
                </p>
            </li>
            <li id="oLi3"><p><img src="images/down_img.jpg"  />
             <span class="hidden_txt">这是第3张图片</span>
                </p>
            </li>
        </ul>
    </div>
    <div class="body_r">
    
    </div>
</div></body>
</html>