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:
Locked Topic
[ C ] Disappearing above the board content
Topic Started: May 10 2012, 12:10 PM (352 Views)
Im Gold
Member
[ *  * ]
Board Address: http://ea-rs.us
Board Software: Zetaboards
Description: A code so that when you are viewing a forum or a topic, the content in the 'above the board' section disappears. So like the 'above the board' things only appear when at homepage.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Wrap a DIV around the Above the Board content:

Before:
Code:
 
<div id="above_the_board">
After:
Code:
 
</div>
Then add this script to the Below the Board wrapper:
Code:
 
<script type="text/javascript">
if (location.href.indexOf('/forum') !== -1 || location.href.indexOf('/topic') !== -1) {
$('#above_the_board').remove();
}
</script>
Offline Profile Goto Top
 
Im Gold
Member
[ *  * ]
Thanks alot!
Offline Profile Goto Top
 
Eccentric Feline
Member Avatar
梦想
[ *  *  *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic