If you are seeing this message, it is possible the page did not load properly. Please hit reload/refresh on your browser.
If you still see this message, you probably do not have a browser that supports web standards, although its content is accessible to any browser or Internet device.

Cool Tips & Tricks Cool Tips & Tricks

Help Communities:
Help Forums Bug Base
<< Prev Topic | Next Topic >>
Cool Tips & Tricks ::: Javascript FAQ ::: Hide icon legend on main page
New Topic    Add Reply
Topic: Hide icon legend on main page  (?)  Click to receive email notification of replies Click to stop receiving email notification of replies email this topic to a friend
Nutrocker

ezboard Moderator
ezSupporter
Posts: 15871
Posted: 6/15/05 3:32 pm    
Hide icon legend on main page
Summary: Hide the table containing the icon legend "These forums have new messages" on the main page.

HEAD (box #1):
 
<script type="text/javascript">
/* BEGIN EZURL */
ezURL = document.location.href.match("http:\/\/((?:pub|b|p)([0-9]+)|beta|vanchau|inbox)\.ezboard\.com\/(b|f)([a-zA-Z0-9]+(?=frm[0-9]+)|[a-zA-Z0-9]+(?!frm[0-9]+))(frm[0-9]+|)(?:(?:[\.]{1})([a-zA-Z0-9\=\+\&\.]+)|)(?:(?:[\x3F]{1})([a-zA-Z0-9\=\+\&\.]+)|)(?:.*)");
try {
        if (ezURL.length > 0) {
                ezPub = ezURL[2].length > 0 ? ezURL[2] : ezURL[1];
                ezFullPub = ezURL[1];
                ezIsBoard = ezURL[3] == "b" ? true : false;
                ezBoardID = ezURL[4];
                ezForum = ezURL[5];
                ezPage = ezURL[6];
                ezQuery = ezURL[7];
                }
} catch (e) { }
ezURL = null;
/* END EZURL */
</script>

This script is used in many of the other scripts offered here. Only one copy should be installed.

FOOTER (box #4):
 
<script type="text/javascript">
/* HIDE ICON LEGEND ON MAIN PAGE */
if (ezIsBoard) {
        allTables = document.getElementsByTagName("table") ;
        for (at=0; at < allTables.length; at++) {
                if (allTables[at].innerHTML.toLowerCase().indexOf("<table")  == -1) {
                        if (allTables[at].innerHTML.toLowerCase().indexOf("alt=\"these forums have new messages\"")  != -1) {
                                allTables[at].style.display = "none";
                        }
                }
        }
}
/* END HIDE ICON LEGEND ON MAIN PAGE */
</script>

History:
05/02/2004 - Updated EZurl script (colo move)
14/4/2004 - Updated Ezurl script
6/13/2003 - fixed mistake
6/8/2003 - updated to fix table-within-table issue
6/2/2003 - written by phalen180

Credits:
written by phalen180
suggested by Sukidoa


  reply to this message

Click to receive email notification of replies Click to stop receiving email notification of replies email this topic to a friend

New Topic    Add Reply

jump to:
Topic Control Image::: Topic Commands
<< Prev Topic | Next Topic >>

Icon Legend

reply button:::Reply to Post Button   edit button:::Edit Post Button  delete button:::Delete Post Button (Moderator Only)

subscribe/unsubscribe to thread button:::Subscribe to Thread Button   email to friend button:::Email to Friend Button  



- Cool Tips & Tricks - Javascript FAQ -

Communitiesezboard Help Communities:

Help Forums Help Forums Bug Base Bug Base





Powered By ezboard® Ver. 7.32
Copyright ©1999-2007 ezboard, Inc.