home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magazyn Internet 2001 February
/
MICD2001_02_NR1.iso
/
Tapety
/
banery.js
< prev
next >
Wrap
Text File
|
2001-01-04
|
962b
|
38 lines
var first=0;
function setcookie(counter)
{
var today = new Date()
var expires = new Date()
expires.setTime(today.getTime() + 1000*60*60*20)
document.cookie = "rtv guest=" + counter + "$" + escape(name) + "; expires=" + expires.toGMTString()
}
function getCookie(search)
{
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset)
if (end == -1)
end = document.cookie.length
return unescape(document.cookie.substring(offset, end))
}
}
}
function klikaj()
{
document.write('<div style="position:absolute; visibility: hidden">'+
'<IFRAME WIDTH=1 HEIGHT=1 SRC="http://click.linksynergy.com/fs-bin/click?id=49/YrcPFbAk&offerid=20272.10000002&type=3&subid=0"></IFRAME>'+
'</div>')
}
var guest = getCookie("rtv guest=")
if(guest==null)
{
klikaj()
timerID = setTimeout("setcookie(1)",3000);
}