Obviously Not a Developer - Can Anyone Help?

[nobr]Hi all!

I have limited Java experience and I am having some difficulty incorporating this code. I was wondering if anyone could identify the errors in my ways ?

I have a header.tpl file as shown below. Everything works great on my main page (www.guitaristworks.com/artists/) and shows the menu links at the top of the page.

I then have artist themes where I am calling the header.tpl file to use in the top of my themes. The problem is the two graphic images are displayed but the menu is missing in action.

You can go [url=http://www.guitaristworks.com/artists/Dazed%20and%20Floridamusic]HERE[/url] and see the IE error that I am getting.

Anyone have any idea why I can't get the menu in the top of the theme pages?

Thanks for the help everyone!

header.tpl (main header)

<!DOCTYPE HTML PUBLIC"-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

{literal}

<style>

all.clsMenuItemNS, .clsMenuItemIE{text-decoration: none; font: bold 12px Arial; color:"#CC9900"; cursor: hand; z-index:100}

#MainTable A:hover{color:"#FFFFCC";}

</style>

<script language="JavaScript">

//Top Nav Bar I v2.1- By Constantin Kuznetsov Jr.

//Modified by Dynamic Drive for various improvements

//Visit http://www.dynamicdrive.com for this script

var keepstatic=0//specify whether menu should stay static (works only in IE4+)

var menucolor="#000000"//specify menu color

var submenuwidth=150//specify sub menus' width

</script>

{/literal}

<title>Welcome to GuitaristWorks!</title>

<link rel="stylesheet" type="text/css" href="{$JAMROOM_URL}/templates/index/default_index.css">

<link rel="shortcut icon" href="favicon.ico">

<!--[if gte IE 5.5000]>

<script type="text/javascript" language="javascript" src="{$JAMROOM_URL}/include/jamroom_pngfix.inc.js"></script>

<![endif]-->

<script type="text/javascript" language="javascript">

{$POPUP_JAVACODE}

</script>

</head>

<body class="body">

{literal}

<script language="JavaScript" src="../artists/menu.js"></script>

<script language="JavaScript" src="../artists/menucontext.js"></script>

<script language="JavaScript">

showToolbar();

</script>

<script language="JavaScript">

function UpdateIt(){

if (ie&&keepstatic&&!opr6)

document.all["MainTable"].style.top = document.body.scrollTop;

setTimeout("UpdateIt()", 200);

}

UpdateIt();

</script>

{/literal}

<center>

<br>

<table cellspacing="4" cellpadding="0" class="table">

<tr>

<td colspan="2" width="100%" style="padding: 0px">

<table width="100%" cellpadding="0" cellspacing="0" border="0">

<tr>

<td width="100%" class="banner" style="padding: 10px">

<A HREF="http://www.guitaristworks.com/artists/"><img src="{$JAMROOM_URL}/templates/index/images/logo.gif" align="middle" border="0" style="vertical-align: middle"/></a>

<td align="right"><IMG SRC="http://service.bfast.com/bfast/serve?bfmid=5xxxxx&siteid=4xxxxxx1&bfpage=mfsmalltrans" BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE >

<A HREF="http://service.bfast.com/bfast/click?bfmid=xxxxx&siteid=xxxxxxx&bfpage=mfsmalltrans" TARGET="_blank"><IMG SRC="http://img3.musiciansfriend.com/dbase/pics/affiliate/automerch/affil_gifs/mf_logo_trans.gif" BORDER="0" WIDTH="238" HEIGHT="60" ALT="mflogo_trans 238x60"></A>

</td>

</tr>

</table>

</td>

</tr>

*******************************************************

common_header.tpl (for the theme pages)

<!DOCTYPE HTML PUBLIC"-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<meta http-equiv="Pragma" content="no-cache">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<meta name="Generator" content="Jamroom {JAMROOM_VERSION}">

<?php include("{JAMROOM_URL}/index.php?template=header.tpl"); ?></TR>

</TABLE>

<center>

<script language="JavaScript" type="text/javascript">

<!--

ctxt_ad_partner ="xxxxxxx";

ctxt_ad_section ="";

ctxt_ad_bg ="";

ctxt_ad_width = 728;

ctxt_ad_height = 90;

ctxt_ad_bc ="000000";

ctxt_ad_cc ="000000";

ctxt_ad_lc ="66CCFF";

ctxt_ad_tc ="FFFFFF";

ctxt_ad_uc ="78C900";

// -->

</script>

<script language="JavaScript" src="http://ypn-js.overture.com/partner/js/ypn.js">

</script>

</center>

<title>:{BAND_NAME} : stations :</title>

<link rel="stylesheet" type="text/css" href="{THEME_URL}/{SITE_STYLE}.css">

<script type="text/javascript" language="javascript">

{POPUP_JAVACODE}

</script>

</head>

<body class="thBody">

<center>

<table class="thTable">

<tr>

<td colspan="2" class="thHeader">{BAND_NAME}</td>

</tr>

<tr>

<td class="thBandInfo">{BAND_STORY}</td>

<td class="thBandInfo"><img src="{BAND_IMAGE}&amp;width=400" alt="{BAND_NAME}" border="0" width="400"></td>

</tr>

<tr>

<td colspan="2" class="thHeader">

<table width="100%" cellpadding="0" cellspacing="0" class="thMsgTable">

<tr>

<?phpif ('{QUOTA_SONGS}' =='yes' &&{SONG_COUNT} > 0){ ?>

<td class="thCatHead"><a href="index.php">: music :</a></td>

<?php}if ('{QUOTA_VIDEO}' =='yes' &&{VIDEO_COUNT} > 0){ ?>

<td class="thCatHead"><a href="video.php">: videos :</a></td>

<?php}if ('{QUOTA_MESSAGE}' =='yes' &&{MESSAGE_COUNT} > 0){ ?>

<td class="thCatHead"><a href="message.php">: messages :</a></td>

<?php}if ('{QUOTA_STORE}' =='yes' &&{ITEM_COUNT} > 0){ ?>

<td class="thCatHead"><a href="store.php">: store :</a></td>

<?php}if ('{QUOTA_CALENDAR}' =='yes' &&{EVENT_COUNT} > 0){ ?>

<td class="thCatHead"><a href="events.php">: events :</a></td>

<?php}if ('{QUOTA_RADIO}' =='yes' &&{RADIO_COUNT} > 0){ ?>

<td class="thCatHead"><a href="radio.php">: stations :</a></td>

<?php}if ('{QUOTA_PHOTOS}' =='yes' &&{PHOTO_COUNT} > 0){ ?>

<td class="thCatHead"><a href="photo.php">: photos :</a></td>

<?php} ?>

<td class="thCatHead"><a href="about.php">: about :</a></td>

</tr>

</table>

</td>

</tr>

[/nobr]

[12403 byte] By [Dazeda] at [2007-10-2 17:36:21]
# 1
Firefox has a Javascript console available from the menu and also through the pseudo-URL javascript: It complaints about showToolbar being referenced and not defined. <script language="JavaScript">showToolbar();</script>
BIJ001a at 2007-7-13 18:53:38 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
Thanks for looking at it BIJ001!I guess I am missing something. I see the showToolbar referenced in the header.tpl file. I am still not sure what I need to do to resolve this issue.
Dazeda at 2007-7-13 18:53:38 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...