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

  1. pocet=0;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></span></td></tr>';
  3. document.write(uvod);for (var i=0; i < pocet; i++){ if (window.location.pathname.indexOf(pol[i])<0) 
  4. document.write('<tr><td align=left><a href="',pol[i],'" class=rubrika>',text[i],'</a></td></tr>'); else{ 
  5. document.write('<tr><td align=left><span class=rubrika_akt>',text[i],'</span></td></tr>');}} document.write(konec);
  6.