files/html/old/layout01/script.js

Plain text | Download

  1. //////// start: SWAPMENU 
  2. var tmpId="everett" 
  3. function sub(ID) { 
  4.  if(tmpId) document.getElementById( tmpId ).style.visibility="hidden" 
  5.  if(ID)  document.getElementById( ID ).style.visibility="visible" 
  6.  tmpId=ID 
  7. //////// end: SWAPMENU 
  8. //////// start: PRINT MENU 
  9.  
  10. href=new Array( 
  11.  1, "everett.pl?home", "everett.pl?about", "everett.pl?pictures", "everett.pl?guestbook", "everett.pl?network", "everett.pl?projects", "everett.pl?mailme", "everett.pl?sitemap", "getdata.pl", 
  12.  1, "http://mozilla.org", "http://www.westciv.com.au/style_master/academy/css_tutorial/properties/user_interface.html", "http://www.webreview.com/style/css1/charts/mastergrid.shtml", "http://www.coolhomepages.com/", 
  13.  1, "http://www.nncreations.com/indexs.php", "http://sydlandske.cjb.net", "http://floffern.cjb.net", "http://hem.passagen.se/habsfan", "http://www.hanuman.co.jp/monkeys", "http://www.lostharbour.org", 
  14.  1, "http://www.linux.com", "http://www.slackware.com", "http://freshmeat.net", "http://www.linuxmafia.org", 
  15.  1, "http://www.altavista.com", "http://kvasir.sol.no", "http://www.yahoo.com", "http://ftpsearch.lycos.com", "http://www.mp3sound.com/", 
  16.  1, "http://cjb.net", "http://www.telefonkatalogen.no/", "http://www.dinside.no/data", "http://mother.netcom.no/", "http://www.dictionary.com/", "http://www.hia.no/", "http://www.dnb.no/markets/valuta/valkalk.cfm" 
  17. txt=new Array( 
  18.  "everett", "home", "about", "pictures", "guestbook", "projects", "network info?", "contact me", "sitemap", "search", 
  19.  "web", "mozilla", "westciv/CSS tutorial", "CSS1 mastergrid", "cool homepages", 
  20.  "hp", "Naomi", "Lars Thomas", "|floffy|", "HabsFan", "smokeymonkey2", "lostharbour", 
  21.  "linux", "linux.com", "Slackware", "freshmeat", "Linuxmafia", 
  22.  "search", "altavista", "Kvasir", "Yahoo", "file search", "Mp3Sound", 
  23.  "more", "cjb.net", "telefonkatalogen.no", "dinside/data", "netcom/mother", "Dictionary", "Høgskolen I Agder", "currency converter" 
  24. var f=0 
  25. function print_menu() { 
  26.  while(txt[f] && href[f]) { 
  27.   if(href[f]==1) { 
  28.    if(f==0) document.write(      '<div id="' +txt[f] +'">\n') 
  29.    else  document.write('</div>\n<div id="' +txt[f] +'">\n') 
  30.   } 
  31.   else { 
  32.    if(f<href.length && href[f+1]!=1) 
  33.     document.write('<a href="' +href[f] +'">' +txt[f] +"</a>, ") 
  34.    else 
  35.     document.write('<a href="' +href[f] +'">' +txt[f] +"</a>") 
  36.   } 
  37.   f++ 
  38.  } 
  39.  document.write("</div>") 
  40. //////// end: PRINT MENU