home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 July / Chip_2003-07_cd1.bin / internet / lufiweb / html / menu8 / js7 / funkce.js < prev    next >
Encoding:
Text File  |  2003-03-25  |  1.7 KB  |  57 lines

  1. if (top == self) self.location.href="varovani.htm";
  2. function DS(){window.status='Dal∞φ strßnka'}
  3. function PS(){window.status='P°edchozφ strßnka'}
  4. function E(){window.status=''}
  5. function Dalsi(delka)
  6. {ret=new String(window.location.href);
  7. while (ret.indexOf('/')>-1)
  8. {ret=ret.substring(ret.indexOf('/')+1,ret.length)}
  9. jmeno=ret.substring(0,delka);
  10. ext=ret.substring(ret.indexOf('.'),ret.length);
  11. cislo=new Number(ret.substring(delka,ret.indexOf('.')));
  12. window.location.href=jmeno+(cislo+1)+ext;
  13.  ret=null;
  14.  }
  15. function Predchozi(delka)
  16. {ret=new String(window.location.href);
  17. while (ret.indexOf('/')>-1)
  18. {ret=ret.substring(ret.indexOf('/')+1,ret.length)}
  19. jmeno=ret.substring(0,delka);
  20. ext=ret.substring(ret.indexOf('.'),ret.length);
  21. cislo=new Number(ret.substring(delka,ret.indexOf('.')));
  22. if (cislo>1) {window.location.href=jmeno+(cislo-1)+ext} 
  23.  ret=null;
  24. }
  25. function Oddel(){
  26. document.write('<HR>' )
  27.  
  28. }
  29. function Zpet()
  30. {parent.text.location.href=document.refferer}
  31. function end_of_web_page()
  32. {with (document)
  33.   {
  34.   write('<FONT SIZE=-3>© Lu.Fi@seznam.cz, ');
  35.   if (Date.parse(lastModified))
  36.   {write(VratDatum()+'.</font>')}
  37.   }
  38. }
  39. function VratDatum()
  40. {
  41. var c=new String(document.lastModified);
  42. //var pr=new String(navigator.appName);
  43. //if (pr.indexOf('Explorer'))
  44. {
  45. prvni=c.indexOf('/');
  46. posledni=c.indexOf('/',prvni+1);
  47. var c2=new String(c.substring(0,prvni));
  48. var c1=new String(c.substring(prvni+1,posledni));
  49. var c3=new String(c.substring(posledni+1,c.indexOf(' ')));
  50. if (c1.substring(0,1)=='0') {datum=c1.substring(1,c1.length+1)+'.'}
  51. else {datum=c1+'.'};
  52. if (c2.substring(0,1)=='0') {datum=datum+c2.substring(1,c2.length+1)+'. '}
  53. else {datum=datum+c2+'. '};
  54. datum=datum+c3
  55. return datum;}
  56. }
  57.