Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
6 kaklik 1
ctwice=0;amp='&';refr=20000;rndom=0;ldd=0;onff=1;timezone=0
2
 
3
if(typeof document.layers=='object'){window.location='info.php?why=netscape'}
4
 
5
if(typeof document.all=='object'){use_rnd=1
6
document.write('<meta http-equiv="Page-Enter" content="revealtrans(duration=0)"><meta http-equiv="Page-Exit" content="revealtrans(duration=0)">')
7
document.write('<link rel="stylesheet" type="text/css" href="'+skin_dir+'/msie.css" />');}
8
 
9
/* bottom frame accessible */
10
function cdone(){
11
if((parent.length!=0)&&(typeof parent.c=='object')&&(typeof parent.c.ldd=='number')&&(parent.c.ldd==1)){
12
return true}else{return false}}
13
 
14
/* add smiley */
15
function add_smiley(z){
16
if(window.opener&&window.opener.parent.length!=0&&window.opener.cdone()){
17
obj=window.opener.parent.c.document.fms.entry
18
tt=obj.value;obj.value=tt+z
19
window.opener.set_focus();self.close()}return false}
20
 
21
/* print email address */
22
function print_mail(a,b){document.write('<a href="mailto:'+a+'@'+b+'">'+a+'@'+b+'</a>')}
23
 
24
/* set random number */
25
function rand_number(){if(use_rnd!=0){rndom=Math.round(99999999*Math.random())}}
26
 
27
/* refresh chat frame */
28
function chat(){rand_number()
29
t=document.fms.time_offset.value
30
u=document.fms.name.value
31
v=document.fms.xpas.value
32
j=document.fms.last.value
33
parent.b.location='chat.php?time_offset='+t+amp+'name='+u+amp+'xpas='+v+amp+'last='+j+amp+'r='+rndom
34
return false}
35
 
36
/* change refresh rate */
37
function change_rate(a,b,c,d){refr=a*1000;
38
document.im0.src=c;document.im1.src=c;
39
document.im2.src=c;document.im3.src=c;
40
document.im4.src=c;b.src=d;chat()
41
set_focus();return false}
42
 
43
/* onmouseover/onmouseout 'refresh rate' images */
44
function over_out(a,b,c){
45
if(a.src.indexOf(b)==-1){a.src=c}
46
return true}
47
 
48
/* set refresh timeout */
49
function set_rtime(){self.scrollTo(0,1000)
50
if(cdone()){refr=parent.c.refr
51
nn=setTimeout('parent.c.chat()',refr)}
52
else{url=self.location.toString()
53
nn=setTimeout('self.location=url',refr)}}
54
 
55
/* clear refresh timeout */
56
function clear_rtime(){if(typeof nn=='number'){clearTimeout(nn)}}
57
 
58
/* check entry */
59
function entry_ok(){e=document.fms.entry;
60
if(e.value.length>0&&ctwice==0){ctwice=1
61
if((parent.length!=0)&&(typeof parent.b=='object')&&(typeof parent.b.nn=='number')){parent.b.clear_rtime()}
62
setTimeout('e.value="";e.focus();ctwice=0',500)
63
return true}else{chat()}e.focus();return false}
64
 
65
/* go to url */
66
function go_url(o,p,r){
67
rand_number();if(r==1){amp='?'}
68
if(p<3&&parent.length!=0){
69
parent.frames[p].location=o+amp+'r='+rndom}
70
else{self.location=o+amp+'r='+rndom}return false}
71
 
72
/* logout */
73
function log_out(){
74
n=parent.c.document.fms.name.value
75
parent.location='index.php?name='+n
76
return false}
77
 
78
/* print online user */
79
function usr(q,p){document.write('<span title="'+p+'">'+q+'</span><br />')}
80
 
81
/* focus entry */
82
function set_focus(){if(cdone()){
83
parent.c.document.fms.entry.focus()}}
84
 
85
/* set the latest message */
86
function set_last(r){if(cdone()){parent.c.document.fms.last.value=r}}
87
 
88
/* play sound */
89
function snd(){if(cdone()&&parent.c.onff==1){
90
if(typeof document.all=='object'){document.write('<object type="application/x-shockwave-flash" data="'+skin_dir+'/sound.swf" width="1" height="1"><param name="movie" value="'+skin_dir+'/sound.swf"></object>')}
91
else{document.write('<embed type="application/x-shockwave-flash" src="'+skin_dir+'/sound.swf" quality="high" width="1" height="1" name="movie" pluginspage="http://www.macromedia.com/go/getflashplayer">')}
92
}}
93
 
94
/* set time */
95
function time_win(n){rand_number();timezone=1
96
dd=window.open('time_offset.php?time_offset='+n+amp+'r='+rndom,'offset','width=160,height=390,resizable=1');
97
dd.focus();return false}
98
 
99
/* set time offset */
100
function set_offset(n){if(window.opener){
101
if(window.opener&&window.opener.parent.length!=0&&window.opener.cdone()){
102
window.opener.parent.c.document.fms.time_offset.value=n;window.opener.parent.c.chat()}
103
}self.location='time_offset.php?time_cookie='+n;return false}
104
 
105
/* load history */
106
function show_hist(){rand_number()
107
t=document.fms.time_offset.value
108
u=document.fms.name.value
109
v=document.fms.xpas.value
110
go_url('history.php?time_offset='+t+amp+'name='+u+amp+'xpas='+v,1,0)
111
return false}