mobliehtmpicFour.html
1.16 KB
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
<if condition="empty($adimg)">
<div id="banner{{no}}" class="ad_temp">
<div class="bd">
<ul class="temp5">
<foreach>
<li>
<a <?php if('{{imgurl}}' != ''): ?>href="{{imgurl}}"<?php endif; ?>>
<?php if('{{src}}' != ''): ?>
<img src="{{src}}" />
<?php else:?>
<span>建议宽度640</span>
<?php endif; ?>
<?php if('{{title}}' != ''): ?>
<div class="mengban">{{title}}</div>
<?php endif; ?>
</a>
</li>
</foreach>
</ul>
</div>
<div class="hd">
<ul></ul>
</div>
</div>
<else/>
<iframe id="ifbox" src="{$adimg}" style="border: none;width: 100%"></iframe>
<script>
var wid="{$adimg_width}";
var hei="{$adimg_height}";
$(function (){
var width1=$(window).width();
var height1=width1*parseFloat(hei)/parseFloat(wid)
$("#ifbox").css("height",height1+"px");
})
</script>
</if>
<script type="text/javascript">
TouchSlide({
slideCell: "#banner{{no}}",
titCell: ".hd ul", //开启自动分页 autoPage:true ,此时设置 titCell 为导航元素包裹层
effect: "leftLoop",
mainCell: ".bd ul",
autoPage: true, //自动分页
autoPlay: true //自动播放
});
</script>