mobliehtmpicFour.html 1.16 KB
<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>