» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 58
0 members and 58 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Oral Chelation - initial cleansing of your veins & arteries

Register Now! Contact Us

About this Page
This is a discussion on Highlighted Table Cells within the Theme packs forums, part of the nukemods releases category; I've done this before on an old site of mine. But, it was super simple and I knew where ...


Go Back   Nukemods Forum » nukemods releases » Theme packs

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-04-2003, 02:56 PM
Junior Member
 
Join Date: Nov 2002
Location: Florida
Posts: 48
Send a message via ICQ to Rider Send a message via AIM to Rider Send a message via MSN to Rider Send a message via Yahoo to Rider
Highlighted Table Cells
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-04-2003, 02:59 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
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
  #3 (permalink)  
Old 02-04-2003, 03:21 PM
Junior Member
 
Join Date: Nov 2002
Location: Florida
Posts: 48
Send a message via ICQ to Rider Send a message via AIM to Rider Send a message via MSN to Rider Send a message via Yahoo to Rider
Yay
It worked!

-Rider
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-04-2003, 03:24 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Re: Yay
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
  #5 (permalink)  
Old 02-04-2003, 03:50 PM
Senior Member
 
Join Date: Oct 2002
Location: Alabama, USA
Posts: 619
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
  #6 (permalink)  
Old 02-04-2003, 03:59 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
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
  #7 (permalink)  
Old 02-04-2003, 04:04 PM
Senior Member
 
Join Date: Oct 2002
Location: Alabama, USA
Posts: 619
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 09:38 PM
nuke_module table Oztac Nuke 7.x - General 0 11-12-2005 06:09 PM
Table sizing kow_patt Open topics 0 02-25-2005 08:01 PM
table adjustment ferhanz Open topics 0 05-12-2003 04:49 AM
How to add a table? zlaxzzor Purged Topics 3 11-21-2002 08:59 PM


All times are GMT -5. The time now is 06:36 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.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