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] Different maintitle for a different categor; By Ryan Fan
Topic Started: Jan 25 2010, 09:16 AM (100 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: Ryan Fan
[CODE
 
Different maintitle for a different categor]Mod Name: Different maintitle for a different category
Description: Customize your board, with a different maintitle for a certain category :wacko:
Preview/Screenshot In Use:

Check This


Admin Cp >> Board Wrappers >> Footer:


Quote:
 
<script type='text/javascript'>
<!--
// Different maintitle for a different category
// created by Ryan Fan
// http://www.ifsz.com , 2005
a=0
b=document.getElementsByTagName('div')
for(a=0;a<b.length;a++)
{
if(b[a].innerHTML.match(/Category Name/i) && b[a].className=="maintitle")
{
b[a].style.backgroundImage = "url('MAINTITLE URL')"
}
}
//-->
</script>


How to add for more categories:

Find:
Quote:
 
if(b[a].innerHTML.match(/Category Name/i) && b[a].className=="maintitle")
{
b[a].style.backgroundImage = "url('MAINTITLE URL')"
}


Add under it:

Quote:
 
if(b[a].innerHTML.match(/Category2 Name/i) && b[a].className=="maintitle")
{
b[a].style.backgroundImage = "url('MAINTITLE2 URL')"
}


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