home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 May
/
Chip_2003-05_cd1.bin
/
bonus
/
www.paladix.cz
/
js
/
svetlo.js
< prev
Wrap
Text File
|
2003-04-05
|
1KB
|
48 lines
function msieversion()
{
var ua=window.navigator.userAgent;
var msie=ua.indexOf("MSIE ");
if(msie>0)
return parseInt(ua.substring(msie+5,ua.indexOf(".", msie)));
else
return 0;
}
function go()
{
if(msieversion()>=4){
if(document.all.image.width>document.all.image.height){
if(document.all.image.width>screen.width-45)
image.width = screen.width-45;
}
else{
if (document.all.image.height>screen.height-45)
image.height = screen.height-45;
}
}
}
function OpenWindow(Num)
{
window.open("foto"+Num+".html","Moje_nejlepsi_svetlo","toolbar=0,scrollbars=0,fullscreen=1,resizable=0,titlebar=0");
}
function GetCookie(name)
{
var CookieName=name+"=";
var nStart=document.cookie.indexOf(CookieName)
if (nStart==-1)
return null
var nEnd=document.cookie.indexOf(";",nStart+CookieName.length)
if (nEnd==-1)
nEnd=document.cookie.length
return unescape(document.cookie.substring(nStart+CookieName.length,nEnd))
}
function SetCookie(name, value)
{
var CookieName=name+"="+escape(value)+"; expires=Sat, 31 Dec 2005 23:59:59 UTC;";
document.cookie=CookieName
}
function Remember()
{
SetCookie("name",document.PosliForm.name.value);
SetCookie("email",document.PosliForm.email.value);
}