I'm going to admit something: I like the Lightbox feature in Blogger. While the Blogger Product Team took some heat for rolling it out, they also pretty quickly added in the ability to turn it off for your entire site. Yes, there is a setting that turns it off, never to come back. But what if you want it in your site, but perhaps need to disable it on a case by case basis? Perhaps for certain page types, specific pages, etc.
(this image example shows you how to completely disable Lightbox in Blogger)
The script below kills it. We didn't write the script, but perhaps it'll help someone out.
<script type="text/javascript">
//<![CDATA[
function killLightbox() {
var images = document.getElementsByTagName('img');
for (var i = 0 ; i < images.length ; ++i) {
images[i].onmouseover=function() {
var html = this.parentNode.innerHTML;
this.parentNode.innerHTML = html;
this.onmouseover = null;
};
}
}
if (window.addEventListener) {
window.addEventListener('load',killLightbox,undefined);
} else {
window.attachEvent('onload',killLightbox);
}
//]]>
</script>
Here is the clean version.
Popular
-
Tip: A better automatic thumbnail and summary script for BloggerWhen we first started creating custom websites using Blogger, one of the first real script needs th…
-
Hangout On Air: Friday Request Line for 10/12/2012Web fonts, social sharing, focusing on your user experience, rel=author and much more more!
-
Tip: Adding interactive captions to your Blogger images on hoverFor a long time I've been disappointed with the way most content management systems provide ima…
-
Hangout on Air: Custom Picasa Album Slideshows in BloggerHow did we manage to present such a potentially complex topic in under 15 minutes?! Yesterday's…
-
Google+, Hangouts, and the Friday Request Line!Thank you for being a reader and possibly a subscriber to our site, BlogXpertise. While still very …
-
First post variation on the thumbnail and summary scriptIt seems as though we're getting a bit carried away with our thumbnail and summary script ... …
-
Tip: Making index page images link to the post pageThis tip mainly applies to blogs that take advantage of jump breaks in their posts as a way to shor…

Post a Comment
Post a Comment