Wrox Programmer Forums
|
BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4
This is the forum to discuss the Wrox book Beginning Dreamweaver MX by Charles E. Brown, Imar Spaanjaars, Todd Marks; ISBN: 9780764544040
Please indicate which version of the book you are using when posting questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 4th, 2005, 02:37 AM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default Bg DW 04 MX Pgs 239 – 240

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>


 
Old July 4th, 2005, 03:12 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dw Mx mikec2 Dreamweaver (all versions) 117 February 11th, 2007 06:42 PM
Beginning Dreamweaver MX 2004 - Pgs 173-185 maezee Dreamweaver (all versions) 4 July 24th, 2005 02:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.