Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Obviously Not a Developer - Can Anyone Help?

843810Apr 13 2006 — edited Apr 14 2006
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 HERE 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">&nbsp;{BAND_NAME}</td>
  </tr>
  <tr>
    <td class="thBandInfo">{BAND_STORY}</td>
    <td class="thBandInfo"><img src="{BAND_IMAGE}&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>

          <?php if ('{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>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 12 2006
Added on Apr 13 2006
2 comments
177 views