<script> $(document).ready(function () { openoff('#part2_{dede:field.id/}'); openoff('#part2_{dede:field.reid/}'); }) function openoff(obj){ $(obj).next("dd").css("display","block"); $(obj).addClass("launched"); } </script> <div class="menu" id="sidebar" data-csnow="2" data-class3="0" data-jsok="2"> {dede:channelartlist typeid=27} <dl class="list-none navnow"> <dt id='part2_{dede:field name="id"/}' ><a href='{dede:field name="typeurl"/}' title='{dede:field name="typename"/}' ><span>{dede:field name="typename"/}</span></a></dt> <dd class="sub" > {dede:channel type='son' noself='yes'} <h4 id='part3_[field:id/]'><a href="[field:typedir function="str_replace('{cmspath}','',@me)"/]" title='[field:typename /]' class='nav'><span>[field:typename /]</span></a></h4> {/dede:channel} </dd> </dl> {/dede:channelartlist} <div class="clear"></div> </div> <Style type="text/css"> .launched{background-image:url(/skin/images/nav_hover.jpg);color: #d5b687;} .list-none{ list-style:none; padding:0px; margin:0px;} .menu dl{ margin-top:5px; } .menu dt{cursor: pointer;margin-top: 10px;font-weight: bold;font-size: 16px;font-family: "微軟雅黑";color: #0d2180;line-height: 53px;padding-left: 48px; background: url(/skin/images/nav.jpg) no-repeat;} .menu h4 a{ display: block;width: 200px;height: 28px;font-family: "微軟雅黑";text-align: center;font-size: 14px;line-height: 28px;color: #333; } .menu h4 span{ display: block;width: 200px;height: 28px; font-weight:100;font-family: "微軟雅黑";text-align: center;font-size: 14px;line-height: 28px;color: #333; } .menu h4 a:hover{color: #fff;background-color: #d5b687;} </Style> |
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權(quán)益請與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除!謝謝!
轉(zhuǎn)載請注明: 織夢模板下載產(chǎn)品頁折疊菜單進(jìn)入定位默認(rèn)展開的方法