home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 July
/
Chip_2003-07_cd1.bin
/
internet
/
lufiweb
/
html
/
menu3
/
funkce.js
< prev
next >
Wrap
Text File
|
2003-03-25
|
2KB
|
55 lines
if (top == self) self.location.href="varovani.htm";
function DS(){window.status='DalÜφ strßnka'}
function PS(){window.status='P°edchozφ strßnka'}
function E(){window.status=''}
function Dalsi(delka)
{ret=new String(window.location.href);
while (ret.indexOf('/')>-1)
{ret=ret.substring(ret.indexOf('/')+1,ret.length)}
jmeno=ret.substring(0,delka);
ext=ret.substring(ret.indexOf('.'),ret.length);
cislo=new Number(ret.substring(delka,ret.indexOf('.')));
window.location.href=jmeno+(cislo+1)+ext;
ret=null;
}
function Predchozi(delka)
{ret=new String(window.location.href);
while (ret.indexOf('/')>-1)
{ret=ret.substring(ret.indexOf('/')+1,ret.length)}
jmeno=ret.substring(0,delka);
ext=ret.substring(ret.indexOf('.'),ret.length);
cislo=new Number(ret.substring(delka,ret.indexOf('.')));
window.location.href=jmeno+(cislo-1)+ext;
ret=null;
}
function Oddel(){
document.write('<HR>' )
}
function VratDatum()
{
var c=new String(document.lastModified);
//var pr=new String(navigator.appName);
//if (pr.indexOf('Explorer'))
{
prvni=c.indexOf('/');
posledni=c.indexOf('/',prvni+1);
var c2=new String(c.substring(0,prvni));
var c1=new String(c.substring(prvni+1,posledni));
var c3=new String(c.substring(posledni+1,c.indexOf(' ')));
if (c1.substring(0,1)=='0') {datum=c1.substring(1,c1.length+1)+'.'}
else {datum=c1+'.'};
if (c2.substring(0,1)=='0') {datum=datum+c2.substring(1,c2.length+1)+'. '}
else {datum=datum+c2+'. '};
datum=datum+c3
return datum;}
}
function end_of_web_page()
{with (document)
{
write('<FONT SIZE=-3>© Lu.Fi@seznam.cz, ');
if (Date.parse(lastModified))
{write(VratDatum()+'.</font>')}
}
}