Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 56
4 members and 52 guests
car8rpopetclean, dogja2mbone9xpw, goe9dkfq42here, parttarcts
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > nukemods releases > Theme packs

Reply
 
LinkBack Thread Tools Display Modes
Highlighted Table Cells
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 48
Join Date: Nov 2002
Location: Florida
Highlighted Table Cells - 02-04-2003, 01:56 PM

I've done this before on an old site of mine. But, it was super simple and I knew where to put it. On my site the code is as follows:

In head section:
Code:
<script language="JavaScript1.2">

var ns6=document.getElementById&&!document.all
var ie=document.all

function changeto(e,highlightcolor){
source=ie? event.srcElement : e.target
if (source.tagName=="TR"||source.tagName=="TABLE")
return
while(source.tagName!="TD"&&source.tagName!="HTML")
source=ns6? source.parentNode : source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function contains_ns6(master, slave) { //check if slave is contained by master
while (slave.parentNode)
if ((slave = slave.parentNode) == master)
return true;
return false;
}

function changeback(e,originalcolor){
if (ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore"))
return
else if (ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore"))
return
if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
source.style.backgroundColor=originalcolor
}

</script>
And then in the main table code:

Code:
<table border="1" cellpadding="2" cellspacing="3" width="100%" bordercolor="#efefef" onMouseover="changeto(event, '3366cc')" onMouseout="changeback(event, 'white')">
That is correct, right? If so, what file exactly do I need to make the changes to have it for my forums? I am using fiapple theme.

-Rider
 Send a message via ICQ to Rider Send a message via Yahoo to Rider Send a message via AIM to Rider Send a message via MSN to Rider  
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: 2,905
Join Date: Sep 2002
02-04-2003, 01:59 PM

Try putting that <script> in the overall_header.tpl for fiapple template in the last parts of that file where the <body> HTML starts.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Yay
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 48
Join Date: Nov 2002
Location: Florida
Yay - 02-04-2003, 02:21 PM

It worked!

-Rider
 Send a message via ICQ to Rider Send a message via Yahoo to Rider Send a message via AIM to Rider Send a message via MSN to Rider  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Yay
Old
  (#4 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
Re: Yay - 02-04-2003, 02:24 PM

Quote:
Originally Posted by Rider
It worked!

-Rider
well, diggity dang. cool :-)
   
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
02-04-2003, 02:50 PM

OK I'm in suspence. What file is the "main table code" where you put the colors and stuff in?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
02-04-2003, 02:59 PM

Quote:
Originally Posted by Martin
OK I'm in suspence. What file is the "main table code" where you put the colors and stuff in?
just looks like a rollover color change for the table cells with links.

mikem
   
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: 619
Join Date: Oct 2002
Location: Alabama, USA
02-04-2003, 03:04 PM

Yes but I'm asking what template file do you add the code, the one that has the colors and all?
Code:
<table border="1" cellpadding="2" cellspacing="3" width="100%" bordercolor="#efefef" onMouseover="changeto(event, '3366cc')" onMouseout="changeback(event, 'white')">
   
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
fiapple211 Table Header Cells alignment issues Duke Nuke 7.x - Themes 6 12-18-2005 08:38 PM
nuke_module table Oztac Nuke 7.x - General 0 11-12-2005 05:09 PM
Table sizing kow_patt Open topics 0 02-25-2005 07:01 PM
table adjustment ferhanz Open topics 0 05-12-2003 03:49 AM
How to add a table? zlaxzzor Purged Topics 3 11-21-2002 07:59 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