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] Show/Hide News System v1.0; By Ryan Fan
Topic Started: Jan 25 2010, 09:19 AM (47 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: Ryan Fan
[CODE
 
Show/Hide News System v1.0]Mod
Name
: Show/Hide News System v1.0
Description: When you click on the navibar link, it shows a news
box, when you clickl on hide, it removes it :wacko:
Preview/Screenshot In Use:
Check This

Admin Cp >> Board Wrappers >> Footer:

Quote:
 
<script type='text/javascript'>
<!--
// Show/Hide News System
// created by Ryan Fan
// http://www.ifsz.com , 2005
if(location.href.match('idx'))
{
function addNews()
{
document.getElementsByTagName('div')[2].innerHTML += "<br><div
align='center' width='150'><div class='maintitle'>News
Box</div><div class='tableborder'>NEWS
Text
<br><br></div></div>"
}
{
document.getElementsByTagName('td')[1].innerHTML +=
"&nbsp;·&nbsp;<a href='javascript:addNews();'>Show
News</A>&nbsp;·&nbsp;<a href='URL TO BOARD
INDEX
'>Hide News</A>"
}
}
//-->
</script>

:)
Note:
This is the v1.0.
It has only one bug.
When you click twice, on the Show link, it adds another box :/
This will be fixed on v2.0 :)
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply