home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 December / Chip_2000-12_cd1.bin / tema / amadea / Scripts / Menu.js next >
Encoding:
Text File  |  2000-02-05  |  960 b   |  52 lines

  1. function menuTit(style, caption)
  2. {
  3. document.write("<p class='MnuTitleText",style,"'>");
  4. document.write(caption);
  5. document.write("</p>");
  6. };
  7.  
  8.  
  9. function menuSubTit(style, caption)
  10. {
  11. document.write("<p class='MnuSubTitleText",style,"'>");
  12. document.write(caption);
  13. document.write("</p>");
  14. };
  15.  
  16.  
  17. function menuItem(style, caption, anchor, target)
  18. {
  19. document.write("<p class='MnuItemText",style,"'>");
  20. document.write("<a href='",anchor,"'");
  21. if (target != null)
  22.   {
  23.     document.write(" target='",target,"'");
  24.   }
  25. document.write(">");
  26. document.write(caption);
  27. document.write("</a>");
  28. document.write("</p>");
  29. };
  30.  
  31.  
  32.  
  33.  
  34.  
  35. function togleDetailsVis(details, indicator, imgExpand, imgCollapse)
  36. {
  37. if (details.style.display == '') 
  38.     {
  39.     details.style.display = 'none';
  40.     if (indicator != null)
  41.         { indicator.src = imgExpand; }
  42.     } 
  43. else 
  44.     {
  45.     details.style.display='';
  46.     if (indicator != null)
  47.         { indicator.src = imgCollapse; }
  48.     }
  49.  
  50. }
  51.  
  52.