How to Kill Lightbox in your blog:
and thanks to Skilled4Men who provided a positioning tip which makes it load and work faster.
1. Go to Layout/Design Editor;
2. Add new HTML/Javascript gadget under your blog's Header;
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;
6. Save Layout/Design;
7. All done.
8. If this does work immediately, give your blog a few seconds to load and try again!
9. Please leave a comment if this works or not for you!
8. If this does work immediately, give your blog a few seconds to load and try again!
9. Please leave a comment if this works or not for you!
Jeff & Brent
with help from Skilled4Men
No comments:
Post a Comment