Subject: Bg DW 04 MX Pgs 239 – 240
Posted By: Jacky Kenna Post Date: 7/4/2005 2:37:46 AM
Hi All
Hope someone can help.

I have taken the code design as on pages 239 240 and have attempted to implement this into my site. All works fine except that I so not get the bold whish tells the user which screen they are are.  If you have a moment please cast your eyes over the code.

Thanks in advance.

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <table width="100%"  border="0" cellpadding="0" cellspacing="0"  bgcolor="#C1CBD7">
          <tr>
            <td width="24"></td>
                 <td><div align="center"></div></td>
                <td><a href="../index.html">Home</a></td>
                <td>&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/buildOverview.php">Builder Overview</a></td>
                <td>&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/locationC.htm">Location Criteria</a></td>
                <td>&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/customData.htm">Custom Data</a></td>
                <td>&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/selectGroups.htm">Selection Groups</a></td>
                <td>&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/ctrlScrBldger.htm">Contol Screen Builder</a></td>
                <td>&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/rptScrBldger.htm">Reports Screen Builder</a></td>
                <td>&nbsp;&nbsp;</td>
                <td><a href="../mainScreens/ControlAction.php">Controler</a></td>
                <td>&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/Bulk%20Load.php" id="contact">Bulk Load </a></td>
            <td width="24"></td>
      </tr>
      </table>
 
    <script language="JavaScript" type="text/javascript">
                           Var sPageName = '<%=Request.ServerVariables("SCRIPT_NAME")%>';
                           sPageName = sPageName.substr(sPageName.lastIndexOf('/') + 1) .toLowercase();
                          sPageName = sPageName.substr (0, sPageName.lastIndexOf('.'));            
                           if (document.getElementById(sPageName))
                        {
                        document.getElementById(sPageName) .style.fontweight = 'Bold';
                        document.getElementById(sPageName) .style.fontsize = '14pt';
                        }    
                    </script>


Reply By: Imar Reply Date: 7/4/2005 3:12:58 AM
Check your case usage:

Var should be var
fontweight should be fontWeight
fontsize should be fontSize

There might be more....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.

Go to topic 32410

Return to index page 517
Return to index page 516
Return to index page 515
Return to index page 514
Return to index page 513
Return to index page 512
Return to index page 511
Return to index page 510
Return to index page 509
Return to index page 508