<%/*[comment]广告位[/comment]*/%>
<%@page pageEncoding="UTF-8"%>
<%@page trimDirectiveWhitespaces="true"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="gen" uri="http://help.jspgen.com/taglib/jstl"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="${config.statie}js/swiper/swiper.min.css">
<style type="text/css">*{margin:0;padding:0;}ul,li{margin:0;padding:0;list-style:none;}img{border:none;}</style>
</head>
<body>
<gen:if test="${not empty ad}">
  <gen:if test="${ad.genre == 'file'}"><a href="${ad.view}" target="_blank">
    <gen:if test="${ad.exte == 'swf'}"><img src="${config.statie}images/spacer.gif" style="position:absolute;margin:0;padding:0;border:0;width:${adarea.width}px;height:${adarea.height}px;"><embed src="${ad.file}" quality="autohigh" wmode="opaque" name="flashad" swliveconnect="true" width="${adarea.width}" height="${adarea.height}" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" />
    <gen:else /><img src="${ad.file}" border="0" width="${adarea.width}" height="${adarea.height}"></gen:if></a>
  <gen:else />${ad.code}</gen:if>
<gen:elseif test="${not empty adList}" />
  <!--轮播图开始-->
  <div class="swiper-container" style="width:${adarea.width}px;height:${adarea.height}px;">
    <ul class="swiper-wrapper">
      <c:forEach items="${adList}" var="ad">
        <li class="swiper-slide"><a href="${ad.view}" target="_blank"><gen:if test="${ad.exte == 'swf'}">
            <img src="${config.statie}images/spacer.gif" style="position:absolute;margin:0;padding:0;border:0;width:${adarea.width}px;height:${adarea.height}px;">
            <embed src="${ad.file}" quality="autohigh" wmode="opaque" name="flashad" swliveconnect="true" width="${adarea.width}" height="${adarea.height}" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" />
          <gen:else />
            <img src="${ad.file}" border="0" width="${adarea.width}" height="${adarea.height}">
          </gen:if></a></li>
      </c:forEach>
    </ul>
    <div class="swiper-pagination"></div>
  </div>
</gen:if>
</body>
<gen:if test="${not empty adList}">
<script type="text/javascript" src="${config.statie}js/jquery.js"></script>
<script type="text/javascript" src="${config.statie}js/jquery.grapes.js"></script>
<script type="text/javascript" src="${config.statie}js/swiper/swiper.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
    if($('.swiper-container').length>0){var $swiper=new Swiper('.swiper-container',{pagination:'.swiper-pagination',loop:true,autoplay:5000});}
});
</script>
</gen:if>
</html>