agiftcodotcom Posted June 9, 2004 Share Posted June 9, 2004 I would like to know if it's possible to make the categories create their own table cells. The reason for this being, I want to make my categories appear similar to THIS if you add this to your header.. <script language="JavaScript1.2"> <!-- Distributed by Hypergurl http://www.hypergurl.com --> function changeto(highlightcolor){ source=event.srcElement if (source.tagName=="TR"||source.tagName=="TABLE") return while(source.tagName!="TD") source=source.parentElement if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore") source.style.backgroundColor=highlightcolor } function changeback(originalcolor){ if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore") return if (event.toElement!=source) source.style.backgroundColor=originalcolor } </script> And this to your categories.php <table border=1 bgcolor="D2000F" onMouseover="changeto('A10012')" onMouseout="changeback('D2000F')"> You can almost get THIS result. The only reason I say almost is because all of the categories are in the same cell right now. Is there a way to change that? Contributions I used : Updated 06-13-04 23:42 ---------------- Vote on My Graphis Poll Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.