<style type="text/css">.ForumCategoryHeader img {vertical-align: middle; padding-right:5px;}</style><script type="text/javascript">$(document).ready(function() {var icons = new Array();icons.push (["Guild","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/forums/heart.gif"]);icons.push (["Fun","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/forums/fun.png"]);icons.push (["Junk","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/forums/Trash.png"]); $(".ForumCategoryHeader").each(function() { for ( var j=0; j < icons.length; j++ ) { if ($(this).html().match(icons[j][0])) { $(this).html("<img src='"+icons[j][1]+"'>"+$(this).html()); } } });});</script>
Adding hide & collapse images to forum categories
The Code
<script type="text/javascript">$(document).ready(function() { $("div.ForumCategoryHeader").each(function(){ var headerExpand = "http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/down-1.jpg"; var headerExpandMessage = "Click to expand (show) the forums in this grouping."; var headerCollapse = "http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/up-1.jpg"; var headerCollapseMessage = "Click to collapse (hide) the forums in this grouping."; var fchImageHeight = 18;/*************************** Do not change anything below*****************************/ var fchhs = $(this).parent().parent(); var fchhsimg = " <img height='"+fchImageHeight+"' src='"; if (fchhs.attr("title").match("(show)")) { $(this).html(fchhsimg+headerCollapse+"'> "+$(this).html()); fchhs.attr("title",headerCollapseMessage); } else if (fchhs.attr("title").match("(hide)")) { $(this).html(fchhsimg+headerExpand+"'> "+$(this).html().replace("- Collapsed","")); fchhs.css("text-decoration","none").attr("title",headerExpandMessage); } })});</script>
Customizing