geke hand
E Z B O A R D
CSS For Posting Screens

<< updated: 8/31/2003

Summary: Apply certain CSS on the posting screens only.

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>

HEAD Notes:

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

HEAD: (box #1)

<script type="text/javascript">
/* ADD SPECIAL CSS TO POSTING SCREEN */
if ( ezPage.match("showAddPollScreenFromWeb|addPollFromWeb|showAddTopicScreenFromWeb|addTopicFromWeb|showAddReplyScreenFromWeb|addReplyFromWeb|showEditScreen|editMessageFromWeb")) {
document.write("<style type=\"text/css\">\n");
document.write("form table table tr { background-color: #XXXXXX; color: #YYYYYY !important; }\n");
document.write("form table table tr a { color: #ZZZZZZ !important; }\n");
document.write("</style>\n");
}
/* END ADD SPECIAL CSS TO POSTING SCREEN */
</script>

HEAD Notes:

This example writes CSS to change the color of the table with the posting form in it, the color of the font and the color of links in the posting form. Replace XXXXXX with the color for the background, YYYYYY with the color of the font and ZZZZZZ with the color for links.

If you want to put some other posting-screen specific CSS in, just add/change the document.writes. The easiest way would be to include an @import of a remote stylesheet.

History:

8/31/2003 - updated for ezURL 5/30/2003 - written by phalen180

Credits:

written by phalen180
suggested by John WB

E Z B O A R D

design by G E K E . N E T
best viewed in 1024x768 screen resolution using a standards compliant browser
logo based on a public domain drawing of a hand making the sign of the cross, no disrespect is intended
all other contents and code copyright © 2002-2005 jonathan cook

Valid HTML 4.01! Valid CSS!