1 頁 (共 1 頁)

[問題] 連結變色!!

發表於 : 2005-01-14 05:09
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
新手入門還煩請指導,謝謝各位大大^_^

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

發表於 : 2005-01-14 07:40
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
第一個不可修改其它可依個人需求去修改,不改也能正常顯示.

發表於 : 2005-01-14 13:37
chang hone
感謝sh85216s大大~剛測試成功了^^,謝謝您!!!
我發現錯誤的地方是在\r
<script src="templates/chunkstyle/ fade.js"></script>

紅色的地方入徑改成\就成功了,因為我是架在自己電腦^_^"
另外請教的是顏色部份要改在那個地方?? 能否請大大示範給小弟了解!!
抱歉新手入門,還請多多指教^^

發表於 : 2005-02-13 20:35
黑風凱特
(解決)