home *** CD-ROM | disk | FTP | other *** search
/ Essentials of Interactive Physiology / Essentials of Interactive Physiology.iso / pc / files / glossary / shared / code / navbar.js < prev   
Encoding:
Text File  |  2000-09-08  |  636 b   |  16 lines

  1. //----------------------------------------------------------------
  2. // GLOSSARY FUNCTIONS
  3. //----------------------------------------------------------------
  4.  
  5. // used by glonav to choose the selected letter.
  6. function openSelectedLetter() {    
  7.     chosenLetterNdx = document.forms[0].contents.selectedIndex
  8.     chosenLetter    = document.forms[0].contents.options[chosenLetterNdx].value
  9.        
  10.     //load the word list in the proper frame
  11.     parent.wordlist.location = "wordlist/" + chosenLetter + 'words.htm'
  12.     // load the first word in the definition frame
  13.     parent.definition.location = "words/" + chosenLetter + "words/" + chosenLetter + '1.htm'
  14. }
  15.  
  16.