Currently Open Code

The (X)H.T.M.L. Structure Layer Markup Code

Each Topic is associated with its own id and class:

When a user opens a page the external .css instructs the browser via the id and class attributes in the markup to disable that page hyperlink and change the font color to yellow in the TOPICS section of the navigation list.

This markup code for the body and list item elements structures the Currently Open topic hyperlink:

  1. /* Currently Open markup code */
  2.  
  3. <body id="currently">
  4.  
  5.    <ul>
  6.       <li class="currently">
  7.          <a href="CurrentlyOpen.htm"
  8.             title="This page is currently open.">Currently Open Code
  9.          </a>
  10.       </li>
  11.    </ul>
  12.  
  13. /* end Currently Open markup code */

top

The C.S.S. Presentation Layer Code

Each project contains two types of Topics: Standard and Specific

  1. Standard Topics: These Topics are generic to each project and are always listed:
    1. Home
    2. Getting Started
    3. Acknowledgements
    4. References
    5. Design Notes
  2. Specific Topics: These Topics are specific to this project and differ with each tutorial:
    1. NAV Container
    2. Skip to Content Section
    3. Horizontal Rule
    4. Link States Section
    5. Topics Section
    6. A Help Authoring User Guide Section
    7. Section Heading Code
    8. Currently Open Code

The external .master style sheet associates:

The Currently Open topic selectors are defined accordingly:
color: yellow; - sets the color of all text characters to yellow
cursor: default; - changes the mouse cursor from a link cursor to the default cursor
text-decoration: none; - removes any underlining of links, etc.
background: #000 url(images/star.gif) no-repeat center right; - calls and sets the Star image from the images folder, replaced through c.s.s.
font-weight: bold; - sets all text characters to bold

top

This .css presenation layer code transforms the markup code structure:

  1. /* Currently Open presentation code: */
  2.   /* Standard selectors for EACH project */
  3.   /* Specific selectors for THIS project */
  4.  
  5. #acknowledgements #nav .acknowledgements a,
  6. #designnotes #nav .designnotes a,
  7. #gettingstarted #nav .gettingstarted a,
  8. #homenav #nav .homenav a,
  9. #references #nav .references a,
  10. #currently #nav .currently a,
  11. #guide #nav .guide a,
  12. #hr #nav .hr a,
  13. #linkstates #nav .linkstates a,
  14. #navcontainer #nav .navcontainer a,
  15. #section #nav .section a,
  16. #skip2 #nav .skip2 a,
  17. #topics #nav .topics a {
  18.   color: yellow;
  19.   cursor: default;
  20.   text-decoration: none;
  21.   background: transparent url(images/star.gif) no-repeat center right;
  22.   font-weight: bold; }
  23.  
  24. /* end Currently Open presentation code */

top