滚动 公告

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta content="telephone=no" name="format-detection" />
<title>药伙伴</title>
<style type="text/css">
.news_UL{width: 100%;overflow: hidden;margin-top: 16px; height: 136px}
.news_UL li{width: 100%;overflow: hidden;}
.news_UL li a{width: 100%;height: 34px;display:block;line-height: 34px;color: #7E7E80;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}
.news_UL li a:hover{color: #333333; text-decoration: underline;}
</style>
<script type="text/javascript" src="jquery.js"></script>

<script type="text/javascript">
$(function(){
    var timer = setInterval('autoScroll(".news_UL")', 3000);
    $(".news_UL").hover(function(){
        clearInterval(timer);
    },function(){
        timer = setInterval('autoScroll(".news_UL")', 3000);
    })
})

function autoScroll(obj) {
    $(obj).find("ul").animate({marginTop: "-34px"}, 500,function() {
        $(this).css({marginTop: "0px"}).find("li:first").appendTo(this);
    })
}
</script>
</head>
<body>

<div class="news_UL h136">
    <ul>
        <li>
            <a href="">
                优瑞英语新闻优瑞英语新闻一
            </a>
        </li>
        <li>
            <a href="">
                优瑞英语新闻优瑞英语新闻二
            </a>
        </li>
        <li>
            <a href="">
                优瑞英语新闻优瑞英语新闻三
            </a>
        </li>
        
    </ul>
</div>



</body>
</html>




记得加载  jquery.js




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

蜗牛慢慢向上爬

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值