We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
[CODE] rowLight; By Elliott Hird
Topic Started: Jan 25 2010, 11:00 AM (95 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: Elliott Hird
[CODE
 
rowLight]Here's another row highlight code. Goes in JavaScript.
Quote:
 
<script language="javascript">
<!--
// rowLight v1
// © Senetonai, http://www.senetonai.com/
newcol = "#DDDDDD"
function mover(el)
{
t=el.getElementsByTagName("td")
for (i=0;i<t.length;i++)
{
t.style.backgroundColor = newcol
}
window.status = t[t[1].getElementsByTagName("a").length > 0 ? 1 : 2].getElementsByTagName("a")[0].href
}
function mout(el)
{
t=el.getElementsByTagName("td")
for (i=0;i<t.length;i++)
{
t.style.backgroundColor = ""
}
window.status = ""
}
function mclick(el)
{
t=el.getElementsByTagName("td")
location.href = t[t[1].getElementsByTagName("a").length > 0 ? 1 : 2].getElementsByTagName("a")[0].href
}
window.onload = function ()
{
t=document.getElementsByTagName("td")
for (i=0;i<t.length;i++)
{
if (t.className=="row4" && t.getElementsByTagName("a").length > 0 && (t.getElementsByTagName("a")[0].href.indexOf("showforum") != -1 || t.getElementsByTagName("a")[0].href.indexOf("showtopic") != -1))
{
t.parentNode.onmouseover = function () { mover(this) }
t.parentNode.onmouseout = function () { mout(this) }
t.parentNode.onclick = function () { mclick(this) }
t.parentNode.style.cursor = "pointer"
t.parentNode.style.cursor = "hand"
}
}
}
-->
</script>
Change the bit in red to a # then a hex colour code, a good colour picker is here, another one is here.

Take a look!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply