SCLUB免費論壇申請-使用者論壇's Archiver

繽紛色彩 發表於 2016-3-23 16:14

想問問『友情鏈結』可否實現走馬燈

[i=s] 本帖最後由 繽紛色彩 於 2016-3-23 22:57 編輯 [/i]

請教无界前輩或其他高人
有沒有可實現『友情鏈結』logo向左走或向右手
當然論壇介紹等資料
會在點入logo中才會看得到

无界 發表於 2016-3-23 16:21

[i=s] 本帖最後由 无界 於 2016-3-23 16:23 編輯 [/i]

[b]回復 [url=http://sclub.com.tw/discuz/redirect.php?goto=findpost&pid=267976&ptid=32337]1#[/url] [i]繽紛色彩[/i] [/b]

编辑discuz.htm模板

找到[code]$_DCACHE['forumlinks'][2][/code]改为[code]
<marquee direction=left scrollamount=6 onmouseover="this.stop()" onmouseout="this.start()">
$_DCACHE['forumlinks'][2]
</marquee>
[/code]顺便介绍几种跑马灯效果[code]<marquee behavior=alternate>表示双向移动</marquee>
<marquee direction=right>表示运动方向向右</marquee>
<marquee scrollamount="50">数值越大运动越快</marquee> [/code]

4rphotoclub 發表於 2016-3-23 21:06

我也要來支持这个教程!

繽紛色彩 發表於 2016-3-23 22:21

[quote]回復  繽紛色彩

编辑discuz.htm模板

找到改为顺便介绍几种跑马灯效果
[size=2][color=#999999]无界 發表於 2016-3-23 16:21[/color] [url=http://www.sclub.com.tw/discuz/redirect.php?goto=findpost&pid=267977&ptid=32337][img]http://www.sclub.com.tw/discuz/images/common/back.gif[/img][/url][/size][/quote]
已修改模版
logo文風不動
沒有變化

无界 發表於 2016-3-23 23:00

[b]回復 [url=http://sclub.com.tw/discuz/redirect.php?goto=findpost&pid=268001&ptid=32337]4#[/url] [i]繽紛色彩[/i] [/b]


    不是有
$_DCACHE['forumlinks'][0]
$_DCACHE['forumlinks'][1]
$_DCACHE['forumlinks'][2]

这三种么?
0是logo
1是logo加文字
2是文字

繽紛色彩 發表於 2016-3-23 23:49

[quote]回復  繽紛色彩


    不是有
$_DCACHE['forumlinks'][0]
$_DCACHE['forumlinks'][1]
$_DCACHE['forumlink ...
[size=2][color=#999999]无界 發表於 2016-3-23 23:00[/color] [url=http://joinbbs.net/discuz/redirect.php?goto=findpost&pid=268004&ptid=32337][img]http://joinbbs.net/discuz/images/common/back.gif[/img][/url][/size][/quote]
是否將代碼整理如下:[code]    <marquee direction=left scrollamount=6 onmouseover="this.stop()" onmouseout="this.start()">
$_DCACHE['forumlinks'][0]
$_DCACHE['forumlinks'][1]
$_DCACHE['forumlinks'][2]
    </marquee>[/code]

无界 發表於 2016-3-24 00:10

[b]回復 [url=http://sclub.com.tw/discuz/redirect.php?goto=findpost&pid=268006&ptid=32337]6#[/url] [i]繽紛色彩[/i] [/b]


    不是的 ,你搜索$_DCACHE['forumlinks'][0],再修改

繽紛色彩 發表於 2016-3-24 00:12

<!--{if [color=Red]$_DCACHE['forumlinks'][0][/color] || [color=Red]$_DCACHE['forumlinks'][1][/color] || [color=Red]$_DCACHE['forumlinks'][2][/color]}-->
        <div class="mainbox list">
                <span class="headactions"><img id="forumlinks_img" src="{IMGDIR}/$collapseimg[forumlinks].gif" alt="" onclick="toggle_collapse('forumlinks');" /></span>
                <h3>{lang board_links}</h3>
                <div id="forumlinks" style="$collapse[forumlinks]">
                <!--{if [color=Red]$_DCACHE['forumlinks'][0][/color]}-->
                        <div class="forumlinks">
                                <ul class="s_clear">[color=Red]$_DCACHE['forumlinks'][0][/color]</ul>
                        </div>
                <!--{/if}-->
                <!--{if [color=Red]$_DCACHE['forumlinks'][1][/color]}-->
                        <div class="forumimglink">
                                [color=Red]$_DCACHE['forumlinks'][1][/color]
                        </div>
                <!--{/if}-->
                <!--{if [color=Red]$_DCACHE['forumlinks'][2][/color]}-->
                        <div class="forumtxtlink">
                                <ul class="s_clear">
                                [color=Red]$_DCACHE['forumlinks'][2][/color]
                                </ul>
                        </div>
請問是否每項紅色代碼都需要修改?

无界 發表於 2016-3-24 00:26

[b]回復 [url=http://sclub.com.tw/discuz/redirect.php?goto=findpost&pid=268009&ptid=32337]8#[/url] [i]繽紛色彩[/i] [/b]


   <ul class="s_clear">$_DCACHE['forumlinks'][0]</ul>

这个

繽紛色彩 發表於 2016-3-24 00:33

[i=s] 本帖最後由 繽紛色彩 於 2016-3-24 00:35 編輯 [/i]

<!--{if $_DCACHE['forumlinks'][0] || $_DCACHE['forumlinks'][1] || $_DCACHE['forumlinks'][2]}-->
        <div class="mainbox list">
                <span class="headactions"><img id="forumlinks_img" src="{IMGDIR}/$collapseimg[forumlinks].gif" alt="" onclick="toggle_collapse('forumlinks');" /></span>
                <h3>{lang board_links}</h3>
                <div id="forumlinks" style="$collapse[forumlinks]">
                <!--{if $_DCACHE['forumlinks'][0]}-->
                        <div class="forumlinks">
                                <ul class="s_clear">[color=Red]$_DCACHE['forumlinks'][0][/color]</ul>
                        </div>
                <!--{/if}-->
                <!--{if $_DCACHE['forumlinks'][1]}-->
                        <div class="forumimglink">
                                $_DCACHE['forumlinks'][1]
                        </div>
                <!--{/if}-->
                <!--{if $_DCACHE['forumlinks'][2]}-->
                        <div class="forumtxtlink">
                                <ul class="s_clear">
                                [color=Red]$_DCACHE['forumlinks'][2][/color]
                                </ul>
                        </div>

即共修改兩個選項?

无界 發表於 2016-3-24 00:43

$_DCACHE['forumlinks'][0]这个是logo

$_DCACHE['forumlinks'][1]这个是logo加文字

$_DCACHE['forumlinks'][2]这个是纯文字的

你随便改一个,全改都可以。

頁: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.