/*js代码*/
<script src="js/js/myfocus-2.0.1.min.js" type="text/javascript"></script>
/*选择需要的效果*/
<script src="js/js/mf-pattern/mF_YSlider.js" type="text/javascript"></script>
<link href="js/js/mf-pattern/mF_YSlider.css" type="text/css" rel="stylesheet" />
<script type="text/javascript">
myFocus.set({id:'picBox'}) /*调用焦点图中的id*/
pattern:'mF_fancy'; //对应的风格
time:3;//切换图片的时间
width:1000;
height:600;
txtHeight:'default'//文字层高度设置:'default'为默认高度:0为隐藏
</script>
/*html代码*/
<div class="ad" id="picBox">
<div class="loading"><img src="img/loading.gif" alt="图片加载中" /></div>
<div class="pic">
<ul>
<li><a><img src="img/ad2.jpg"/></a></li>
<li><img src="img/ad3.jpg"/></li>
<li><img src="img/ad4.jpg"/></li>
</ul>
</div>
</div>
</div>
/*css代码*/
.ad{height: 310px;
overflow: hidden;
}
myfocus文件中可下载