home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 October / Chip_2001-10_cd1.bin / tema / webgen / rubr_menu.js < prev    next >
Text File  |  2001-08-19  |  918b  |  11 lines

  1. pocet=5;konec='</table>';var pol=new Array();var text=new Array();
  2. uvod='<table with=100% BORDER=1 CELLPADDING=2  CELLSPACING=0  BORDERCOLORDARK="#F0F0F0" BORDERCOLOR="#F0F0F0" BORDERCOLORLIGHT="#003974" WIDTH="100%" BGCOLOR="#E3F1FF"  RULES="groups"><tr><td align=left><span class=rubrikanadpis>Rubriky:</span></td></tr>'
  3. pol[0]='index.html';text[0]='';
  4. pol[1]='download.htm';text[1]='Download programu';
  5. pol[2]='popis.htm';text[2]='Popis programu';
  6. pol[3]='aplikace.htm';text[3]='Aplikace';
  7. pol[4]='dotazy.htm';text[4]='StßlΘ dotazy';
  8. document.write(uvod);for (var i=0; i < pocet; i++){ if (window.location.pathname.indexOf(pol[i])<0) 
  9. document.write('<tr><td align=left><a href="',pol[i],'" class=rubrika>',text[i],'</a></td></tr>'); else{ 
  10. if (window.location.pathname.indexOf(pol[0])<0) document.write('<tr><td align=left><span class=rubrika_akt>',text[i],'</span></td></tr>');}} document.write(konec);
  11.