标签:style blog io color ar os sp java div
<style> .focusBox { position: relative; width: 340px; height: 240px; overflow: hidden; font: 12px/1.5 Verdana, Geneva, sans-serif; text-align: left; background: white; }.focusBox .pic img { width: 340px; height: 240px; display: block; }.focusBox .txt-bg { position: absolute; bottom: 0; z-index: 1; height: 36px; width:100%; background: #333; filter: alpha(opacity=40); opacity: 0.4; overflow: hidden; }.focusBox .txt { position: absolute; bottom: 0; z-index: 2; height: 36px; width:100%; overflow: hidden; }.focusBox .txt li{ height:36px; line-height:36px; position:absolute; bottom:-36px;}.focusBox .txt li a{ display: block; color: white; padding: 0 0 0 10px; font-size: 12px; font-weight: bold; text-decoration: none; }.focusBox .num { position: absolute; z-index: 3; bottom: 8px; right: 8px; }.focusBox .num li{ float: left; position: relative; width: 18px; height: 15px; line-height: 15px; overflow: hidden; text-align: center; margin-right: 1px; cursor: pointer; }.focusBox .num li a,.focusBox .num li span { position: absolute; z-index: 2; display: block; color: white; width: 100%; height: 100%; top: 0; left: 0; text-decoration: none; }.focusBox .num li span { z-index: 1; background: black; filter: alpha(opacity=50); opacity: 0.5; }.focusBox .num li.on a,.focusBox .num a:hover{ background:#f60; } </style> <script type="text/javascript" src="[!--news.url--]skin/default/js/jquery.SuperSlide.js"></script> <div class="focusBox"> <ul class="pic" style="position: relative; width: 340px; height: 240px;"> <li style="position: absolute; width: 340px; left: 0px; top: 0px; display: list-item;"><a href="/" target="_blank"><img src="[!--news.url--]skin/default/images/s1.jpg"></a></li> <li style="position: absolute; width: 340px; left: 0px; top: 0px; display: none;"><a href="/" target="_blank"><img src="[!--news.url--]skin/default/images/s2.jpg"></a></li> <li style="position: absolute; width: 340px; left: 0px; top: 0px; display: none;"><a href="/" target="_blank"><img src="[!--news.url--]skin/default/images/s3.jpg"></a></li> </ul> <ul class="num"> <li class=" on"><a>1</a><span></span></li> <li class=" "><a>2</a><span></span></li> <li class=""><a>3</a><span></span></li> </ul> </div> <script type="text/javascript"> jQuery(".focusBox").slide({ titCell:".num li", mainCell:".pic",effect:"fold", autoPlay:true,trigger:"click",startFun:function(i){jQuery(".focusBox .txt li").eq(i).animate({"bottom":0}).siblings().animate({"bottom":-36});}}); </script>
标签:style blog io color ar os sp java div
原文地址:http://www.cnblogs.com/walter371/p/4096100.html