Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
<script type="text/Javascript">
// Different Hide/Show Icons for Different Categories by Chris
// Do not redistribute without permission of the creator

// Scroll down to find edit portion
var aAH = document.links;
function iconChange(cid, onicon, officon){
if(location.href.match(/action=(view_board|home)/i) || !location.href.match(/action=/i)){
for(a=0;a<aAH.length;a++){
if(aAH[a].name == cid && aAH[a].getElementsByTagName("img")[0]){
var c = aAH[a].getElementsByTagName("img")[0]
c.src = (c.alt.match(/Collapse/)?onicon:officon);
break;
}
}
}
}


// EDIT HERE. Repeat the following line as necessary:
// SYNTAX: iconChange(CATID, "VISIBLE ICON URL", "HIDDEN ICON URL");
iconChange(1, "URL of visible icon", "URL of hidden icon");
iconChange(3, "URL of visible icon", "URL of hidden icon");
</script>


This will make the arrows to hide/show a category different for each category.

Module goes in the global footers.


Last Edit: Nov 4, 2008 1:33:43 GMT by Chris

newBookmarkLockedFalling