home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 July / Chip_2003-07_cd1.bin / internet / lufiweb / html / menu8 / js3 / funkce.js next >
Encoding:
Text File  |  2003-03-25  |  1.7 KB  |  56 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. function Zpet()
  29. {parent.text.location.href=document.refferer}
  30. function end_of_web_page()
  31. {with (document)
  32.   {
  33.   write('<FONT SIZE=-3>© Lu.Fi@seznam.cz, ');
  34.   if (Date.parse(lastModified))
  35.   {write(VratDatum()+'.</font>')}
  36.   }
  37. }
  38. function VratDatum()
  39. {
  40. var c=new String(document.lastModified);
  41. //var pr=new String(navigator.appName);
  42. //if (pr.indexOf('Explorer'))
  43. {
  44. prvni=c.indexOf('/');
  45. posledni=c.indexOf('/',prvni+1);
  46. var c2=new String(c.substring(0,prvni));
  47. var c1=new String(c.substring(prvni+1,posledni));
  48. var c3=new String(c.substring(posledni+1,c.indexOf(' ')));
  49. if (c1.substring(0,1)=='0') {datum=c1.substring(1,c1.length+1)+'.'}
  50. else {datum=c1+'.'};
  51. if (c2.substring(0,1)=='0') {datum=datum+c2.substring(1,c2.length+1)+'. '}
  52. else {datum=datum+c2+'. '};
  53. datum=datum+c3
  54. return datum;}
  55. }
  56.