1 if (typeof(Bytex64) == 'undefined') Bytex64 = {};
3 Bytex64.FX.version = 1.0;
5 Bytex64.FX.Effect = function(fx, secs) {
9 this.run = function() {
10 Bytex64.FX.run(this.fx, this.secs);
14 Bytex64.FX.ParallelEffect = function(fxs, secs) {
15 this.fx = function(p) {
22 this.run = function() {
23 Bytex64.FX.run(this.fx, this.secs);
27 Bytex64.FX.EffectChain = function(chain) {
31 this.fx_current = function(p) {
32 this.chain[this.current].fx(p);
35 this.run = function() {
44 Bytex64.FX.run(fx, this.chain[this.current].secs);
47 this.run_next = function() {
50 if (this.current >= this.chain.length) {
60 Bytex64.FX.updateInterval = 50;
62 Bytex64.FX.run = function(fx, secs) {
66 var start = (new Date()).getTime();
70 interval = setInterval(function() {
71 var d = (new Date()).getTime() - start;
73 clearInterval(interval);
78 }, Bytex64.FX.updateInterval);
81 Bytex64.FX.create = function(fx, secs) {
83 Bytex64.FX.run(fx, secs);
87 Bytex64.FX.fadeIn = function(elem) {
90 elem.style.display = 'block';
91 elem.style.opacity = p;
95 Bytex64.FX.fadeOut = function(elem) {
97 elem.style.opacity = 1.0 - p;
99 elem.style.display = 'none';
103 /* vim: set ts=4 sts=4 sw=4 expandtab: */