Here is the box function that I have been using. It doesn't need different
code for Netscape/IE, has some optional Title bar stuff, and works on all
the browsers I've checked it on (the old box looked kinda wierd on IE for
Mac, which is the browser I usually use).
see it at:
http://www.blankbox.com/cvs/freetrade/htdocs/index.php3
- Isaac =)
/*
** Function: startBox
** Input: [$BoxTitle, [$BoxOptions]]
** Ouput: None (uses print).
** Description: Starts a nice looking box. If a Title is given,
** it will have a title bar:
** +-------------------+
** | Title Options |
** +-------------------+
** | |
*/
function startBox( $BoxTitle=FALSE, $BoxOptions=FALSE )
{
global $Browser_Version;
global $SiteColor;
if( $Browser_Version >= 3 )
{
print("<table border='0' cellpadding='0' cellspacing='0'
bgcolor='$SiteColor->Border'>\n");
print("<tr><td>\n");
print("<table border='0' cellspacing='1' cellpadding='5'
width='100%'>\n");
if ($BoxTitle)
{
print("<tr><td bgcolor='$SiteColor->Highlight2'>");
print("<b>$BoxTitle</b>");
if ($BoxOptions)
{
print(" | $BoxOptions\n");
}
print("</td></tr>\n");
}
print("<tr><td bgcolor='$SiteColor->TableBackground'>\n");
}
else
{
print("<table border='1'>\n");
if ($BoxTitle)
{
print("<tr><td>");
print("<b>$BoxTitle</b>");
if ($BoxOptions)
{
print(" | $BoxOptions\n");
}
print("</td></tr>\n");
}
print("<tr><td>");
}
}
function endBox()
{
global $Browser_Version;
if( $Browser_Version >= 3 )
{
print("</td></tr>\n");
print("</table>\n");
print("</td></tr>\n");
print("</table>\n\n");
}
else
{
print("</td></tr>\n");
print("</table>\n\n");
}
|----------------------------|\ | | | /|----------------------------|
Isaac Reuben | \| | |/ | [EMAIL PROTECTED]
-------------------------
"Maybe she's just pieces of me you've never seen" - Tori Amos
|-------------------------------------------------------------------|
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]