[問題] 連結變色!!

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
chang hone
星球普通子民
星球普通子民
文章: 18
註冊時間: 2005-01-10 16:30

[問題] 連結變色!!

文章 chang hone »

想請教各位大大,小弟在論壇中搜尋找到連結變色的外掛檔案!!
下載後發現有不了解的地方,還請解答!! 內容如下:

代碼: 選擇全部

############################################################## 
## MOD Title: Fading Links
## MOD Author: Unknown (Scotty) <scotty@phpbb2-users.de> www.phpbb2-users.de
## MOD Author, Secondary:  AbelaJohnB <abela@phpbb.com> (John B. Abela) http://www.JohnAbela.Com/
## MOD Author, Secondary:  Chance <don@w3site.us> (Don E. Blackwell) http://w3sites.us/
## MOD Description: Allows your hyperlinks to change color with mouseover javascript.
## MOD Version: 2.0.2 
## 
## Installation Level: Easy
## Installation Time: ~1 Minutes 
## Files To Edit: 
##					templates/subSilver/overall_header.tpl
## Included Files:
##					fade.js
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes:
##
## There are many versions of the script in this MOD available on the web
## I do not take credit for the core code that creates the various effects
## I've merely added to the script to provide additional features requested by 
## various users.
##
## To install this MOD, just copy the fade.js file to your phpBB templates directory and 
## make the necessary modifications (below) to each of your themes.
############################################################## 
## MOD History: 
## 
##   2004-04-07 - Version 2.0.2
##      - Fixed more fade bugs
##      - Made changes to MOD template to make it valid
##   2004-04-04 - Version 2.0.0 / 2.0.1
##      - Found and fixed minor bug causing some things to fade that shouldn't after submission
##      - Tested compatible with phpBB 2.0.8a
##      - Tested with EasyMOD alpha 0.0.11a
##      - Added cross-browser compatibility for standard fade effect
##      - Added multiple classes ability (ie set the fade colors for alternate links)
##      - Provided users guide for easy usage
##
##   2003-08-08 - Version 1.0.2
##      - Tested compatible with phpBB 2.0.6
##      - Tested compatible with EasyMOD alpha 0.0.10a
##      - Color declarations now modular for use with varying styles
##
##   2003-07-19 - Version 1.0.1 
##      - Updated For phpBB 2.0.5
## 
##   Unknown
##      - Initial Release
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 
# 
#-----[ COPY ]------------------------------------------ 
#

copy fade.js to templates/fade.js

# 
#-----[ OPEN ]------------------------------------------ 
# 

templates/subSilver/overall_header.tpl

# 
#-----[ FIND ]------------------------------------------ 
# 

<!-- END switch_enable_pm_popup -->

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

<script language="javaScript"> [color=red]←是否需求修改?[/color]
fadeClasses = new Array(""); // Determines which classes get which colors [color=red]←是否需求修改?[/color]
startColors = new Array("{T_BODY_LINK}"); // MouseOut link colors  [color=red]←是否需求修改轉換顏色?[/color]
endColors = new Array("{T_BODY_HLINK}"); // MouseOver link color [color=red]←是否需求修改轉換顏色?[/color]
stepIn = 20; // delay when fading in [color=red]←是否需求修改?[/color]
stepOut = 20; // delay when fading out [color=red]←是否需求修改?[/color]
autoFade = true;
sloppyClass = true;

</script>
<script src="templates/chunkstyle/fade.js"></script>

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM
新手入門還煩請指導,謝謝各位大大^_^
頭像
sh85216s
竹貓忠實會員
竹貓忠實會員
文章: 306
註冊時間: 2003-09-04 20:13
來自: 阿里阿度

Re: [問題] 連結變色!!

文章 sh85216s »

chang hone 寫:

代碼: 選擇全部

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

<script language="javaScript"> [color=red]←是否需求修改?[/color]
fadeClasses = new Array(""); // Determines which classes get which colors [color=red]←是否需求修改?[/color]
startColors = new Array("{T_BODY_LINK}"); // MouseOut link colors  [color=red]←是否需求修改轉換顏色?[/color]
endColors = new Array("{T_BODY_HLINK}"); // MouseOver link color [color=red]←是否需求修改轉換顏色?[/color]
stepIn = 20; // delay when fading in [color=red]←是否需求修改?[/color]
stepOut = 20; // delay when fading out [color=red]←是否需求修改?[/color]
autoFade = true;
sloppyClass = true;

</script>
<script src="templates/chunkstyle/fade.js"></script>

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM
第一個不可修改其它可依個人需求去修改,不改也能正常顯示.
架設主機︰Fedora Core 5
上網方式:Hinet ADSL (2M/512K)
安裝程式:Apache + php + MySql
phpBB2 版本: phpBB 2.0.21
phpBB2 連結網址: 小站
chang hone
星球普通子民
星球普通子民
文章: 18
註冊時間: 2005-01-10 16:30

文章 chang hone »

感謝sh85216s大大~剛測試成功了^^,謝謝您!!!
我發現錯誤的地方是在\r
<script src="templates/chunkstyle/ fade.js"></script>

紅色的地方入徑改成\就成功了,因為我是架在自己電腦^_^"
另外請教的是顏色部份要改在那個地方?? 能否請大大示範給小弟了解!!
抱歉新手入門,還請多多指教^^
黑風凱特
星球公民
星球公民
文章: 267
註冊時間: 2004-12-13 22:12
來自: 台灣台北
聯繫:

文章 黑風凱特 »

(解決)
圖檔
主題已鎖定

回到「外掛問題討論」