home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 July
/
Chip_2003-07_cd1.bin
/
internet
/
lufiweb
/
myweb
/
funkce.js
< prev
next >
Wrap
Text File
|
2003-05-19
|
4KB
|
123 lines
//<script>
function getPocet(a,b)
{j=0;do{j++;}while(j*b<a)return j*b;}
function OffLine()
{
alert("DalÜφ podrobnosti najdete v OnLine verzi.");
}
function begin_of_web_page(p)
{
document.write('<font face="Arial" size="1"><b>OffLine verze</b>|<a href="http://lufik.pescz.cz/www/" target="_top"><font face="Arial" size="1">OnLine verze</font></a></font><br>');
}
function begin_of_web_pageX()
{
document.write('<font face="Arial" size="1"><a href="http://lufik.pescz.cz/www/" target="_top"><font face="Arial" size="1">OnLine verze</font></a></font>');
}
function O4(x,y)
{window.open('','obr4',' toolbar=0, location=0,scrollbars=0, resizable=0, top=10, left=10,width='+(x+20)+', height='+(y+30))}
/*function OP(x,y)
{
if(screen.width<(x+20)) {x=screen.width-20; window.open('','obrp',' toolbar=0, location=0,scrollbars=1, resizable=0, top=10, left=0,width='+(x+20)+', height='+(y+30))}
else
{window.open('','obrp',' toolbar=0, location=0,scrollbars=0, resizable=0, top=10, left=0,width='+(x+20)+', height='+(y+30))}
}
*/
/*function O41(k,x,y)
{//alert('v O14 '+k+' '+x+' '+y);
window.open(k,'obr4',' toolbar=0, location=0,scrollbars=0, resizable=0, top=10, left=10,width='+(x+20)+', height='+(y+30))}
*/
/*function O41o(k,x,y)
{window.open(k,'obro',' toolbar=0, location=0,scrollbars=yes, resizable=yes, top=20, left=20,width='+(x-10)+', height='+(y-10))}
*/
/*function O41p(k)
{window.open(k,'obr4',' toolbar=0, location=0,scrollbars=yes, resizable=yes, top=10, left=10,width='+(screen.width-20)+', height='+(screen.height-40))}
*/
function Odkaz(Jmeno,Sirka,Vyska,Popis,Popis_,Sirka_,Vyska_,Barva,Typ,Adresa)
{this.j=Jmeno;this.s=Sirka;this.v=Vyska;this.p=Popis;this.p_=Popis_;this.sa=Sirka_;this.va=Vyska_;this.b=Barva;this.t=Typ;this.a=Adresa;}
var Jarka='#FFEBC1';
var Zdenek='#DBE4FF';
var Lucka='#FFDBFF';
var browser = navigator.appName;
var verze = parseInt(navigator.appVersion);
if (1 && (browser == "Microsoft Internet Explorer" && verze >= 4) || (browser == "Netscape" && verze >= 4))
{
// zjisti vlastnosti obrazovky
sirka = screen.width- 3*44-20;
vyska = screen.height-2*17;
}
else
{
sirka=800- 3*44-20;
vyska=600-2*17;
}
var dilu=10;
var levy=3;
var pravy=7;
var sp=pravy*sirka;
function Aktiv(pol)
{
document.all.item(pol).style.background='#FFDFFF';
document.all.item(pol).style.color='#C400C4';
}
function noAktiv(pol)
{
document.all.item(pol).style.background='';
document.all.item(pol).style.color='';
}
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;}
}
WWW_='../../www/index.html';
function end_of_web_page(p)
{
WWW_=p+WWW_;
if(p=='') p="../index/";
with (document)
{
write('<BR><BR><BR>');
write('<HR size=1 align=center width=100%>');
if (Date.parse(lastModified))
{write('<FONT face="Arial" SIZE=1>© LuFi, '+VratDatum()+'.')}
write('</font> <IMG align=middle SRC='+p+'kytka_m1a.gif BORDER=0> ');
write('<a href="'+WWW_+'" target="_top"><font size=1>ROZCESTN═K</font></a>')
write('<HR size=1 align=center width=100%>');
}
}
/*function end_of_web_page_info()
{}*/
function DejIndex(pole)
{
return pole.length-((i-1)*bunek+j);
}
function ZBRZ(id,z)
{
if(z)
{
document.all.item(id).style.display = "";
}
else
{
document.all.item(id).style.display = "none";
}
}