轮播图用例,用查询语句选取具有图片附件的文档进行轮播图上展示

<div class="slideBox">
    <div class="bd">
        <ul id="lunbo">
            <trs_documents id="知识产权要闻" num="5" startpos="0" where="wcmdocument.ATTACHPIC=1 or wcmdocument.ATTACHPIC=3">
                <li class="lunbo">
                    <a href="<trs_document field='_recurl' urlisabs='true'></trs_document>" target="_blank"
                        title="<trs_document field='doctitle' autolink='false'></trs_document>">
                        <img src="<trs_appendix field='_recurl' mode='pic' index='0' urlisabs='true' autolink='true'></trs_appendix>"
                            alt="<trs_document field='docpeople'></trs_document>">
                    </a>
                </li>
            </trs_documents>
        </ul>
    </div>
    <div class="bg">
        <div class="lunbo-btn">
            <ul>
                <trs_documents id="知识产权要闻" num="5" startpos="0" where="wcmdocument.ATTACHPIC=1 or wcmdocument.ATTACHPIC=3">
                    <li class="lunboinfo">
                        <trs_document num="55" field="doctitle" autolink="true" target="_blank" urlisabs="true"></trs_document>
                    </li>
                </trs_documents>
            </ul>
        </div>
        <div class="hd">
            <ul>
                <li onclick="gotolunbo(1)"></li>
                <li onclick="gotolunbo(2)"></li>
                <li onclick="gotolunbo(3)"></li>
                <li onclick="gotolunbo(4)"></li>
                <li onclick="gotolunbo(5)"></li>
            </ul>
        </div>
    </div>
</div>