久久久精品2019免费观看_亚洲国产精品成人久久久_69国产成人综合久久精品91_国产精品久久精品视

dedeCMS:讓圖文資訊圖片流滾動起來的方法

  核心提示:打開 empletsdefaultindex.htm,找到代碼:dl class='tbox' dtstrong圖文資訊/strong/dt dd ul class='e1' {dede:arclist row=15 orderby=pubdate type='image.' imgwidth…

itE-SPACE: normal; COLOR: rgb(34,34,34); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px">打開 empletsdefaultindex.htm,
找到代碼:
<dl class="tbox">
        <dt><strong>圖文資訊</strong></dt>
        <dd>
          <ul class="e1">
          {dede:arclist row=15 orderby=pubdate type='image.' imgwidth='124' imgheight='94'}
          <li><a href="[field:arcurl/]">[field:image/]<span title="liehuo.net" title="liehuo.net" class="title">[field:title/]</span></a></li>
          {/dede:arclist}
          </ul>
        </dd>
      </dl>
以上代碼row為顯示的圖文資訊條數(shù),每行5個,建議設(shè)置為5的倍數(shù)。修改以上代碼如下
<dl class="tbox">
        <dt><strong>圖文資訊</strong></dt>
<dd>
          <ul class="e1">http://www.fan86.com<marquee scrolldelay=0 onMouseover="this.stop()" onMouseOut="this.start()" style='WIDTH: 710px; HEIGHT: 104px;

' behavior="alternate" scrollamount='3' direction='left'>{dede:arclist
row=10 type='image.' imgwidth='124' imgheight='94'}
           <li><a href="[field:arcurl/]">[field:image/]<span class="title">[field:title/]</span></a></li>
{/dede:arclist}</marquee>
          </ul>
        </dd>
</dl>
這里要注意一下 behavior的屬性,值可以是scroll(連續(xù)滾動)slide(滑動一次)alternate(來回滾動)

未經(jīng)允許不得轉(zhuǎn)載:445IT之家 » dedeCMS:讓圖文資訊圖片流滾動起來的方法

贊 (0) 打賞

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

微信掃一掃打賞