多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
  原作者:孤独的狐狸 chm整合-yufan  Q:956932910 个人网站[http://www.sxwzjs.cn/](http://www.sxwzjs.cn/) 论坛推荐[http://bbs.lampym.com/index.php?c=thread&fid=12](http://bbs.lampym.com/index.php?c=thread&fid=12)         后台插件管理->广告插件安装->添加广告位->广告管理->添加广告->添加图片广告     调用广告 一般广告位置后面有调用代码  大家也可以自己改id <!-- 广告:1 开始--> <script language="javascript" src="/fine/index.php?s=adsense&a=get&id=4"></script> <!-- 广告:1 结束-->         大家把js放在js文件  图片放在images文件 下载地址[http://pan.baidu.com/s/1jGwvLEA](http://pan.baidu.com/s/1jGwvLEA)   大家如果要改成轮播的话 请看下面  感谢孤独的狐狸提供插件和资料  <script type="text/javascript" src="{SITE_THEME}js/jquery.SuperSlide.2.1.1.js"></script>  <style type="text/css">   /* css 重置 */   *{margin:0; padding:0; list-style:none; }   body{ background:#fff; font:normal 12px/22px 宋体;  }   img{ border:0;  }   a{ text-decoration:none; color:#333;  }   a:hover{ color:#1974A1;  }   .js{width:90%; margin:10px auto 0 auto; }   .js p{ padding:5px 0; font-weight:bold; overflow:hidden;  }   .js p span{ float:right; }   .js p span a{ color:#f00; text-decoration:underline;   }   .js textarea{ height:100px;  width:98%; padding:5px; border:1px solid #ccc; border-top:2px solid #aaa;  border-left:2px solid #aaa;  }     /* 本例子css */   .focusBox { position: relative; width:800px; height:280px; overflow: hidden; }   .focusBox .pic img { width:800px; height:280px; display: block; }   .focusBox .hd { overflow:hidden; zoom:1; position:absolute; bottom:5px; right:10px; z-index:3}   .focusBox .hd li{float:left; line-height:15px; text-align:center; font-size:12px; width:25px; height:10px; cursor:pointer; overflow:hidden; background:#919191; margin-left:4px; filter:alpha(opacity=80); opacity:.8; -webkit-transition:All .5s ease;-moz-transition:All .5s ease;-o-transition:All .5s ease }   .focusBox .hd .on{ background:#fff; filter:alpha(opacity=100);opacity:1;   }     .focusBox .prev,   .focusBox .next { width:45px; height:99px; position:absolute; top:91px; z-index:3; filter:alpha(opacity=20); -moz-opacity:.2; opacity:.2; -webkit-transition:All .5s ease;-moz-transition:All .5s ease;-o-transition:All .5s ease}   .focusBox .prev { background-image:url({SITE_THEME}images/index.png); background-position:-112px 0; left:0 }   .focusBox .next { background-image:url({SITE_THEME}images/index.png); background-position:-158px 0; right:0 }   .focusBox .prev:hover,   .focusBox .next:hover { filter:alpha(opacity=60); -moz-opacity:.6; opacity:.6 }  </style>  <div class="focusBox" style="margin:0 auto">   <ul class="pic">   {list table=adsense.adsense_data aid=4 order=listorder_asc num=5 cache=36000}       {php $setting=string2array($t['setting']);}          <!--这里是循环的幻灯片数据图片-->            <li><a href="{$setting['setting_url']}"><img src="{$setting['setting_thumb']}" alt="{$t['name']}"></a></li>          <!--end-->   {/list}      </ul>   <a class="prev" href="javascript:void(0)"></a>   <a class="next" href="javascript:void(0)"></a>   <ul class="hd">      {list table=adsense.adsense_data aid=4 order=listorder_asc num=5 cache=36000}      {/list}   </ul>  </div>  <script type="text/javascript">   jQuery(".focusBox").slide({ mainCell:".pic",effect:"left", autoPlay:true, delayTime:300});  </script>