includes/clientside/static/flyin.js
changeset 74 68469a95658d
parent 39 c83ff194977a
child 81 d7fc25acd3f3
equal deleted inserted replaced
73:0a74676a2f2f 74:68469a95658d
   135   
   135   
   136   for ( var i = 0; i < frames; i++ )
   136   for ( var i = 0; i < frames; i++ )
   137   {
   137   {
   138     topc = GlideEffect.easeInOut(i, topi, diff_top, frames);
   138     topc = GlideEffect.easeInOut(i, topi, diff_top, frames);
   139     leftc = GlideEffect.easeInOut(i, lefti, diff_left, frames);
   139     leftc = GlideEffect.easeInOut(i, lefti, diff_left, frames);
   140     setTimeout('var o = fly_in_cache['+rand_seed+']; o.style.top=\''+topc+'px\'; o.style.left=\''+leftc+'px\';', timeout);
   140     var code = 'var o = fly_in_cache['+rand_seed+']; o.style.top=\''+topc+'px\';';
       
   141     if ( !height_taken_care_of )
       
   142       code += ' o.style.left=\''+leftc+'px\'';
       
   143     code += ';';
       
   144     setTimeout(code, timeout);
   141     timeout += timerstep;
   145     timeout += timerstep;
   142     
   146     
   143     var ratio = i / frames;
   147     var ratio = i / frames;
   144     
   148     
   145     if ( !nofade )
   149     if ( !nofade )