谁可以帮下 dedecms 的调用代码 如下图
<script src="/style/jquery-144minjs"></script>
<script src="/style/slidesminjqueryjs"></script> /调用相关jq代码/
<script>
$(function(){
$('#products')slides({
preload: true,
preloadImage: 'img/loadinggif',
effect: 'slide, fade',
crossfade: true,
slideSpeed: 200,
fadeSpeed: 500,
generateNextPrev: true,
generatePagination: false
});
});
</script>
<div id="products_example">
<div id="products">
<div class="slides_container">
{dede:fieldid function="Getimgs1(@me,370,275,4)" /} /调用大图集/
</div>
<ul class="pagination">
{dede:fieldid function="Getimgs(@me,138,138,4)" /} /调用小图集/
</ul>
</div>
</div>
在后台添加图集进行测试,这里把测试结果粘贴
找到dede默认的indexhtm文件的这段代码
<div class="picnews">
<dl class="tbox light">
<dt class='light'><strong>图文资讯</strong></dt>
<dd class='light'>
<div class="infiniteCarousel">
<div class="wrapper">
<ul id='imgscroll'>
{dede:arclist row=10 orderby=pubdate type='image' imgwidth='143' imgheight='106'}
<li><a href="[field:arcurl/]">[field:image/]<span class="title">[field:title/]</span></a></li>
{/dede:arclist}
</ul>
</div>
</div>
</dd>
</dl>
</div>
{dede:arclist row=10 orderby=pubdate type='image' imgwidth='143' imgheight='106'}
<li><a href="[field:arcurl/]">[field:image/]</a></li>
{/dede:arclist}这一段就是调用的代码了,如果还想要图文结合可以这样
{dede:arclist row=10 orderby=pubdate type='image' imgwidth='143' imgheight='106'}
<li><a href="[field:arcurl/]">[field:image/]<span class="title">[field:title/]</span></a></li>
{/dede:arclist}
导航代码
{dede:channel type='self' typeid ='栏目ID'}<a href='[field:typelink/]'>[field:typename/]</a>
{/dede:channel}
列表代码
{dede:arclist typeid=1 row=20 channelid=2 col=5 titlelen=20 orderby='pubdate' imgwidth=160 imgheight=123}
<table cellspacing=2 cellpadding=0 width="98%" border=0>
<tbody>
<tr>
<td align=middle>[field:imglink/]</td></tr>
<tr>
<td align=middle>[field:textlink/]</td></tr></tbody></table>
{/dede:arclist}
方法1:
这个模板的大小控制是由CSS控制的
要修改CSS
右边区域修改
templets/style/picturecss文件
pbox 样式
如大小
pbox dl dt{
width:188px;
height:132px;
display:block;
overflow:hidden;
}
pbox dl dt a img{
display:block;
width:expression(thiswidth > thisheight && thiswidth >176 176 : true);
height:expression(thisheight > thiswidth && thisheight > 132 132 : true);
max-width:176px;
max-height:132px;
margin:0px auto 0px;
}
方法2:
{dede:list pagesize='15' imgwidth='100' imgheight='70' infolen='180'}
方法3:
把调用代码中标签[field:imglink/]换成
<a href='[field:arcurl /]' target="_blank"><img src='[field:picname /]' border='0' width='' height=''></a>
0条评论