<script type="text/javascript"> $(function () { $("ul>li:not(:last)").css("margin-right","10px"); $("ul>li:not(:last) span,ul>li:last li:first span").css("background-color","#F0A30F"); $("ol li:gt(0) span").css("background-color","#A4A3A3"); $("ul>li:last").css("background-color","#F0F0F0"); $("ol li:eq(0),ol li:eq(2),ol li:eq(3),ol li:eq(4)").css("background","url(images/orange.jpg) right -2px no-repeat"); $("ol li:eq(1),ol li:eq(5),ol li:eq(6),ol li:eq(7)").css("background","url(images/green.jpg) right -2px no-repeat"); var index = 0; $("ol li").mouseover(function () { index = $(this).index(); $("ol li p").eq(index).show(); }); $("ol li").mouseout(function () { index = $(this).index(); $("ol li p").eq(index).hide(); }); }); </script>
使用jQuery快速高效制作网页交互特效 第六章 上机练习五 制作全网热播视频页面
猜你喜欢
转载自blog.csdn.net/qq_42460605/article/details/85160420
今日推荐
周排行