1 <?xml version=
"1.0" encoding=
"utf-8"?>
3 <xsd:schema id=
"root" xmlns=
"" xmlns:
xsd=
"http://www.w3.org/2001/XMLSchema" xmlns:
msdata=
"urn:schemas-microsoft-com:xml-msdata">
4 <xsd:import namespace=
"http://www.w3.org/XML/1998/namespace" />
5 <xsd:element name=
"root" msdata:
IsDataSet=
"true">
7 <xsd:choice maxOccurs=
"unbounded">
8 <xsd:element name=
"metadata">
11 <xsd:element name=
"value" type=
"xsd:string" minOccurs=
"0" />
13 <xsd:attribute name=
"name" use=
"required" type=
"xsd:string" />
14 <xsd:attribute name=
"type" type=
"xsd:string" />
15 <xsd:attribute name=
"mimetype" type=
"xsd:string" />
16 <xsd:attribute ref=
"xml:space" />
19 <xsd:element name=
"assembly">
21 <xsd:attribute name=
"alias" type=
"xsd:string" />
22 <xsd:attribute name=
"name" type=
"xsd:string" />
25 <xsd:element name=
"data">
28 <xsd:element name=
"value" type=
"xsd:string" minOccurs=
"0" msdata:
Ordinal=
"1" />
29 <xsd:element name=
"comment" type=
"xsd:string" minOccurs=
"0" msdata:
Ordinal=
"2" />
31 <xsd:attribute name=
"name" type=
"xsd:string" use=
"required" msdata:
Ordinal=
"1" />
32 <xsd:attribute name=
"type" type=
"xsd:string" msdata:
Ordinal=
"3" />
33 <xsd:attribute name=
"mimetype" type=
"xsd:string" msdata:
Ordinal=
"4" />
34 <xsd:attribute ref=
"xml:space" />
37 <xsd:element name=
"resheader">
40 <xsd:element name=
"value" type=
"xsd:string" minOccurs=
"0" msdata:
Ordinal=
"1" />
42 <xsd:attribute name=
"name" type=
"xsd:string" use=
"required" />
49 <resheader name=
"resmimetype">
50 <value>text/microsoft-resx
</value>
52 <resheader name=
"version">
55 <resheader name=
"reader">
56 <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=
2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
58 <resheader name=
"writer">
59 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=
2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
61 <data name=
"fatfunctions" xml:
space=
"preserve">
63 // @name The Fade Anything Technique
64 // @namespace http://www.axentric.com/aside/fat/
66 // @author Adam Michela
69 make_hex : function (r,g,b)
71 r = r.toString(
16); if (r.length ==
1) r = '
0' + r;
72 g = g.toString(
16); if (g.length ==
1) g = '
0' + g;
73 b = b.toString(
16); if (b.length ==
1) b = '
0' + b;
74 return
"#" + r + g + b;
76 fade_all : function ()
78 var a = document.getElementsByTagName(
"*");
79 for (var i =
0; i < a.length; i++)
82 var r = /fade-?(\w{
3,
6})?/.exec(o.className);
86 if (o.id) Fat.fade_element(o.id,null,null,
"#"+r[
1]);
90 fade_element : function (id, fps, duration, from, to)
93 if (!duration) duration =
3000;
94 if (!from || from==
"#") from =
"#FFFF33";
95 if (!to) to = this.get_bgcolor(id);
97 var frames = Math.round(fps * (duration /
1000));
98 var interval = duration / frames;
102 if (from.length <
7) from += from.substr(
1,
3);
103 if (to.length <
7) to += to.substr(
1,
3);
105 var rf = parseInt(from.substr(
1,
2),
16);
106 var gf = parseInt(from.substr(
3,
2),
16);
107 var bf = parseInt(from.substr(
5,
2),
16);
108 var rt = parseInt(to.substr(
1,
2),
16);
109 var gt = parseInt(to.substr(
3,
2),
16);
110 var bt = parseInt(to.substr(
5,
2),
16);
113 while (frame < frames)
115 r = Math.floor(rf * ((frames-frame)/frames) + rt * (frame/frames));
116 g = Math.floor(gf * ((frames-frame)/frames) + gt * (frame/frames));
117 b = Math.floor(bf * ((frames-frame)/frames) + bt * (frame/frames));
118 h = this.make_hex(r,g,b);
120 setTimeout(
"Fat.set_bgcolor('"+id+
"','"+h+
"')", delay);
123 delay = interval * frame;
125 setTimeout(
"Fat.set_bgcolor('"+id+
"','"+to+
"')", delay);
127 set_bgcolor : function (id, c)
129 var o = document.getElementById(id);
130 o.style.backgroundColor = c;
132 get_bgcolor : function (id)
134 var o = document.getElementById(id);
138 if (window.getComputedStyle) c = window.getComputedStyle(o,null).getPropertyValue(
"background-color");
139 if (o.currentStyle) c = o.currentStyle.backgroundColor;
140 if ((c !=
"" && c !=
"transparent") || o.tagName ==
"BODY") { break; }
143 if (c == undefined || c ==
"" || c ==
"transparent") c =
"#FFFFFF";
144 var rgb = c.match(/rgb\s*\(\s*(\d{
1,
3})\s*,\s*(\d{
1,
3})\s*,\s*(\d{
1,
3})\s*\)/);
145 if (rgb) c = this.make_hex(parseInt(rgb[
1]),parseInt(rgb[
2]),parseInt(rgb[
3]));
150 var oldonload = window.onload;
151 if (typeof window.onload != 'function') {
152 window.onload = function() { Fat.fade_all(); };
154 window.onload = function() {