equal
deleted
inserted
replaced
19 var o = a[i]; |
19 var o = a[i]; |
20 var r = /fade-?(\w{3,6})?/.exec(o.className); |
20 var r = /fade-?(\w{3,6})?/.exec(o.className); |
21 if (r) |
21 if (r) |
22 { |
22 { |
23 if (!r[1]) r[1] = ""; |
23 if (!r[1]) r[1] = ""; |
24 if (!o.id) o.id = 'autofat_'+Math.floor(Math.random() * 100000); |
24 if (!o.id) o.id = 'autofat_'+Math.floor(Math.random() * 100000); |
25 if (o.id) Fat.fade_element(o.id,null,null,"#"+r[1]); |
25 if (o.id) Fat.fade_element(o.id,null,null,"#"+r[1]); |
26 } |
26 } |
27 } |
27 } |
28 }, |
28 }, |
29 fade_element : function (id, fps, duration, from, to) |
29 fade_element : function (id, fps, duration, from, to) |
64 setTimeout("Fat.set_bgcolor('"+id+"','"+to+"')", delay); |
64 setTimeout("Fat.set_bgcolor('"+id+"','"+to+"')", delay); |
65 }, |
65 }, |
66 set_bgcolor : function (id, c) |
66 set_bgcolor : function (id, c) |
67 { |
67 { |
68 var o = document.getElementById(id); |
68 var o = document.getElementById(id); |
69 if(!o) return; |
69 if(!o) return; |
70 o.style.backgroundColor = c; |
70 o.style.backgroundColor = c; |
71 }, |
71 }, |
72 get_bgcolor : function (id) |
72 get_bgcolor : function (id) |
73 { |
73 { |
74 var o = document.getElementById(id); |
74 var o = document.getElementById(id); |