includes/clientside/static/faders.js
changeset 507 586fd7d3202d
parent 473 518bc2b214f1
child 509 175df10e0b56
--- a/includes/clientside/static/faders.js	Mon Mar 17 09:47:19 2008 -0400
+++ b/includes/clientside/static/faders.js	Tue Mar 18 14:32:40 2008 -0400
@@ -487,3 +487,30 @@
     }
 }
 
+function whiteOutElement(el)
+{
+  var top = $(el).Top();
+  var left = $(el).Left();
+  var width = $(el).Width();
+  var height = $(el).Height();
+  
+  var blackout = document.createElement('div');
+  blackout.style.position = 'absolute';
+  blackout.style.top = top + 'px';
+  blackout.style.left = left + 'px';
+  blackout.style.width = width + 'px';
+  blackout.style.height = height + 'px';
+  
+  blackout.style.backgroundColor = '#FFFFFF';
+  domObjChangeOpac(60, blackout);
+  blackout.style.backgroundImage = 'url(' + scriptPath + '/includes/clientside/tinymce/themes/advanced/skins/default/img/progress.gif)';
+  blackout.style.backgroundPosition = 'center center';
+  blackout.style.backgroundRepeat = 'no-repeat';
+  blackout.style.zIndex = getHighestZ() + 2;
+  
+  var body = document.getElementsByTagName('body')[0];
+  body.appendChild(blackout);
+  
+  return blackout;
+}
+