首页幻灯片调用 灵动标签怎么写啊 帝国cms
1个回答
展开全部
写2次相同的灵动标签,分别调用不同字段即可。
<div class="focusBox" style="margin:0 auto">
<ul class="pic">
[e:loop={8,4,1,1}]<li><a href="<?=$bqr[titleurl]?>" target="_blank"><img src="<?=$bqr[titlepic]?>"/></a></li>[/e:loop]
</ul>
<div class="txt-bg"></div>
<div class="txt">
<ul>
[e:loop={8,4,1,1}]<li><a href="<?=$bqr[titleurl]?>"><?=$bqr[title]?></a></li>[/e:loop]
</ul>
</div>
<ul class="num">
<li><a>1</a><span></span></li>
<li><a>2</a><span></span></li>
<li><a>3</a><span></span></li>
<li><a>4</a><span></span></li>
</ul>
</div>
<script type="text/javascript">
jQuery(".focusBox").slide({ titCell:".num li", mainCell:".pic",effect:"fold", autoPlay:true,trigger:"click",startFun:function(i){ jQuery(".focusBox .txt li").eq(i).animate({"bottom":0}).siblings().animate({"bottom":-36});}});
</script>
</div>
[/size][size=4][size=6][/size][color=Orange][/color]
<div class="focusBox" style="margin:0 auto">
<ul class="pic">
[e:loop={8,4,1,1}]<li><a href="<?=$bqr[titleurl]?>" target="_blank"><img src="<?=$bqr[titlepic]?>"/></a></li>[/e:loop]
</ul>
<div class="txt-bg"></div>
<div class="txt">
<ul>
[e:loop={8,4,1,1}]<li><a href="<?=$bqr[titleurl]?>"><?=$bqr[title]?></a></li>[/e:loop]
</ul>
</div>
<ul class="num">
<li><a>1</a><span></span></li>
<li><a>2</a><span></span></li>
<li><a>3</a><span></span></li>
<li><a>4</a><span></span></li>
</ul>
</div>
<script type="text/javascript">
jQuery(".focusBox").slide({ titCell:".num li", mainCell:".pic",effect:"fold", autoPlay:true,trigger:"click",startFun:function(i){ jQuery(".focusBox .txt li").eq(i).animate({"bottom":0}).siblings().animate({"bottom":-36});}});
</script>
</div>
[/size][size=4][size=6][/size][color=Orange][/color]
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询