Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  May 24th, 2017, 03:00am


Board Hacks
Important News
Please read the notes posted with any codes carefully, as they will usually tell you where they need to go.
Welcome to the Conforums Hacks Board!

All codes here have been tested but we accept no responsibility if these codes do not work on your board, or have an adverse effect when used in combination with other codes.

This board is read only. Any queries or requests for codes should be made on the Coding Forum

Helpful sites
Google
Dynamic Drive

The Staff
Roger
Dave
GIzzy



« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Topics/Posts Cell Highlight  (Read 4314 times)
Dave
I've always wanted one of these wink
Conforums Administrator


member is offline

Avatar

Mr Fixit...


Homepage PM

Gender: Male
Posts: 17634
xx Topics/Posts Cell Highlight
« Thread started on: Feb 5th, 2004, 3:14pm »

Code submitted by InvaderJello



This code highlights the Topics/Posts cells(the too small ones with numbers in them)on the main page. Put this code in your MAIN FOOTERS

Code:
<script>
// Topics/Posts cell highlight by Jello

var TD=document.getElementsByTagName("TD")
var Color = "00ff00"
for(t=0;t<TD.length;t++){
if(TD[t].width=="1%" && TD[t].className.match("windowbg")){
TD[t].onmouseover=function(){this.style.backgroundColor=Color; };
TD[t].onmouseout=function(){this.style.backgroundColor=this.bgColor};
TD[t].onclick = function(){
location = this.previousSibling.all[1].innerHTML.split("\"")[1];}
if(TD[t+1].width=="24%"){TD[t].onclick=function(){location = this.previousSibling.previousSibling.all[1].innerHTML.split("\"")[1];}}}
}
</script>  
 

You can change the color to match your forum by changing
Code:
var Color="00ff00"
 
Just change the color!

Preview = http://jellotest.conforums.com
User IP Logged

Have you read the FAQ or checked the Hacks board before posting?
No?
Then please do so...
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls