Sunday, September 18, 2011

Kill Lightbox



How to Kill Lightbox in your blog:
note:  this work-around only works after the blog has fully loaded

1.  Go to Layout/Design Editor;
2.  Add new HTML/Javascript gadget anywhere in your blog;
3.  Do not title the new gadget;
4.  Add the following script to the gadget (you can copy and paste):

<script type="text/javascript">
//<![CDATA[
function killLightbox() {
 var images = document.getElementsByTagName('img');
 for (var i = 0 ; i < images.length ; ++i) {
  images[i].onmousemove=function() {  
   var html = this.parentNode.innerHTML;   
   this.parentNode.innerHTML = html;
  };
 }
}

if (window.addEventListener) {
 window.addEventListener('load',killLightbox,false);
} else {
 window.attachEvent('onload',killLightbox);
}
//]]>
</script>


5.  Save gadget;
6.  Save Layout/Design;
7.  All done.
8.  Your blog must completely load for this work-around to work!
9.  Please leave a comment if this works or not for you!




News Flash Guys...This Works and the New Pain In The ASS LightBox is TUNED OFF on this Blog........

Jeff & Brent

No comments:

Post a Comment