includes/clientside/static/flyin.js
changeset 74 68469a95658d
parent 39 c83ff194977a
child 81 d7fc25acd3f3
--- a/includes/clientside/static/flyin.js	Sat Jul 21 18:12:10 2007 -0400
+++ b/includes/clientside/static/flyin.js	Wed Jul 25 18:06:34 2007 -0400
@@ -137,7 +137,11 @@
   {
     topc = GlideEffect.easeInOut(i, topi, diff_top, frames);
     leftc = GlideEffect.easeInOut(i, lefti, diff_left, frames);
-    setTimeout('var o = fly_in_cache['+rand_seed+']; o.style.top=\''+topc+'px\'; o.style.left=\''+leftc+'px\';', timeout);
+    var code = 'var o = fly_in_cache['+rand_seed+']; o.style.top=\''+topc+'px\';';
+    if ( !height_taken_care_of )
+      code += ' o.style.left=\''+leftc+'px\'';
+    code += ';';
+    setTimeout(code, timeout);
     timeout += timerstep;
     
     var ratio = i / frames;