Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 45
1 members and 44 guests
bescm9ttgamiiyr
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > General > Site design

Reply
 
LinkBack Thread Tools Display Modes
Where to put a java-script code for mouse-over fading?
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 56
Join Date: Feb 2003
Location: The Netherlands
Where to put a java-script code for mouse-over fading? - 03-13-2003, 10:14 AM

Hello,

I have downloaded a fade.js file to let the links on my page fade from colour. In the script they say:

Now, once you have customized your fading colors,
you need to include your customized .js file on
every page that you want to use it in. You can
include javascript files using this syntax (in
the head of a document):

<script src="fade.js" language="Javascript"></script>

But where do i put this code and in wich file?

Regards,

DJ-Loki
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Senior Member
 
Status: Offline
Posts: 619
Join Date: Oct 2002
Location: Alabama, USA
03-13-2003, 10:22 AM

Code:
## Author Note: 
## Thanks go out to the unknown Author of the fade.js 
##
## If you want to change colors or fading parameters open the file fade.js and change the settings
## 
################################################################# 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
################################################################# 

# 
#-----[ Copy ]------------------------------------------ 
# 

Copy the file fade.js to "modules/Forums/"

# 
#-----[ Open ]------------------------------------------ 
# 

"modules/Forums/templates/YOUR STYLE/overall_header.tpl

# 
#-----[ Find ]------------------------------------------ 
# 



# 
#-----[ Add Below ]------------------------------------------ 
# 

<script language="JavaScript" src="modules/Forums/fade.js"></script>

# 
#-----[ Save/Upload ]------------------------------------------ 
# 
# EoM
download

To use this for your nuke theme, put the fade.js in your theme folder, add the code to your theme.php just above the body tag
Code:
function themeheader() {
    global $user, $banners, $sitename, $slogan, $cookie, $prefix, $file, $name, $dbi;
    cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    }
    echo "
<script language=\"JavaScript\" src=\"themes/YOUR THEME/fade.js\"></script>
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 56
Join Date: Feb 2003
Location: The Netherlands
03-13-2003, 10:26 AM

Ahh! I think i had the wrong version without the read me! Thanks i will try this.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Junior Member
 
Status: Offline
Posts: 56
Join Date: Feb 2003
Location: The Netherlands
03-13-2003, 10:27 AM

But doesn't this only work for the forum?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Senior Member
 
Status: Offline
Posts: 619
Join Date: Oct 2002
Location: Alabama, USA
03-13-2003, 10:31 AM

Look back up at my post.
Code:
function themeheader() {
    global $user, $banners, $sitename, $slogan, $cookie, $prefix, $file, $name, $dbi;
    cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    }
    echo "
<script language=\"JavaScript\" src=\"themes/YOUR THEME/fade.js\"></script>
    <body background=\"themes/fiapple/images/lines.gif\" bgcolor=\"#FFFFFF\" text=\"#000000\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";
This is hoe it should look in your theme.php
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Junior Member
 
Status: Offline
Posts: 56
Join Date: Feb 2003
Location: The Netherlands
03-13-2003, 10:32 AM

Ok! Thank you so much!
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#7 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
03-13-2003, 10:33 AM

If you are using Nuke/phpBB matching theme. Then you will have to use the same sort of method Martin gave you but also add it to the themes/Yourtheme/header.html file. If you want the link fade effect to cover all of your site.

like this
Code:
<script src="themes/Yourtheme/fade.js" language="Javascript"></script>

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#8 (permalink))
Junior Member
 
Status: Offline
Posts: 56
Join Date: Feb 2003
Location: The Netherlands
03-13-2003, 10:40 AM

It just doesn't work! This is what it lookes like for me:

Code:
function themeheader() {
    global $user, $banners, $sitename, $slogan, $cookie, $prefix, $name, $dbi;
    cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    }
    echo  
	"<body bgcolor=\"#000000\" text=\"#FFFFCC\" leftmargin=\"10\" topmargin=\"10\" marginwidth=\"10\" marginheight=\"10\">";
    if ($banners == 1) {
	include("banners.php");}
Now, where should the code be? Sorry for being so hard learning.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#9 (permalink))
Senior Member
 
Status: Offline
Posts: 619
Join Date: Oct 2002
Location: Alabama, USA
03-13-2003, 10:43 AM

Look back at my last post.

Like Mikem said some themes work if you put the html version at the very top of the haeder.html file. BUT NOT WITH FIAPPLE THEME-PACK
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#10 (permalink))
Senior Member
 
Status: Offline
Posts: 619
Join Date: Oct 2002
Location: Alabama, USA
03-13-2003, 10:48 AM

Just copy and paste the last post I made down to the end of the </script>

And be sure to put a copy of fade.js in your theme folder.

Be sure you don't have an extra " before <body
There should be no "<body
The " goes after echo like echo[space]"
echo "
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java/text script indianadj Nuke 7.x - Blocks 1 07-17-2006 07:31 PM
using ADsNew script of Ads in nuke block (Code not allowed) Liqid Nuke 7.x - Blocks 1 07-12-2005 01:01 PM
subBlack3Dblue Java-popup reev Nuke 7.x - Themes 17 11-26-2004 04:59 AM
Creating module with java applet MurphDog Nuke 7.x - Modules 7 07-12-2004 10:26 PM
Help about fading links in subsystem akira Theme packs 1 02-20-2003 07:39 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31