bhq@iemsoft.cn
2018-11-27 e2b48dac099e43f4b3243cdf19a7522e4b5eccbe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
    .scrollimg{ position:relative; overflow:hidden; margin:0px auto; /* 设置焦点图最大宽度 */ }
    .scrollimg .hd{ position: absolute;
bottom:0px;
text-align: center;
width: 100%;}
    .scrollimg .hd li{display: inline-block;
width: .4em;
height: .4em;
margin: 0 .4em;
-webkit-border-radius: .8em;
-moz-border-radius: .8em;
-ms-border-radius: .8em;
-o-border-radius: .8em; 
border-radius: .8em;
background: #FFF;
filter: alpha(Opacity=60);
opacity: .6;
box-shadow: 0 0 1px #ccc; text-indent:-100px; overflow:hidden; }
    .scrollimg .hd li.on{ filter: alpha(Opacity=90);
opacity: .9;
background:#E71F19;
box-shadow: 0 0 2px #ccc; }
    .scrollimg .bd{ position:relative; z-index:0; }
    .scrollimg .bd li{ position:relative; text-align:center;  }
    .scrollimg .bd li img{ background:url(images/loading.gif) center center no-repeat;  vertical-align:top; width:100%;/* 图片宽度100%,达到自适应效果 */}
    .scrollimg .bd li a{ -webkit-tap-highlight-color:rgba(0,0,0,0);  }  /* 去掉链接触摸高亮 */
    .scrollimg .bd li .tit{ display:block; width:100%;  position:absolute; bottom:0; text-indent:10px; height:28px; line-height:28px; background:url(images/focusBg.png) repeat-x; color:#fff;  text-align:left;  }
</style>
<div id="scrollimg" class="scrollimg">
 
                <div class="bd">
                    <ul>
            {foreach from=$wap_index_ad item=ad name=wap_index_ad}
          <li><a href="{$ad.url}"><img src="{$ad.image}" width="100%" /></a></li>
          {/foreach}
                    </ul>
                </div>
 
                <div class="hd">
                    <ul></ul>
                </div>
            </div>
            <script type="text/javascript">
                TouchSlide({ 
                    slideCell:"#scrollimg",
                    titCell:".hd ul", //开启自动分页 autoPage:true ,此时设置 titCell 为导航元素包裹层
                    mainCell:".bd ul", 
                    effect:"leftLoop", 
                    autoPage:true,//自动分页
                    autoPlay:true //自动播放
                });
            </script>