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: 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…
-
Bringing G+ Comments to your Blogger blog without walling it offWe think it is awesome that +Blogger and +Google+ have started integrating more and more every …
-
Using Namecheap as your Domain provider with BloggerOur advice for anyone with a blog on +Blogger is that the moment you feel you'd be sad if you…
-
Website redesign launch of Concentrics Restaurants!This week we're proud to announce the launch of the website redesign for Concentrics Restaurant…
-
Tip: Understanding the Atom/RSS feeds created by BloggerIf you've heard of RSS feeds, you probably know that they're a way for your site's fans…
-
Validating for Rich Pins for PinterestPinterest recently announced new functionality for "Rich Pins" for Pinterest for differen…
-
Hangout on Air: Focusing on Your Blog's Landing PagePer the summary: Thanks to everyone who viewed and participated in today's Hangout about blog l…

Post a Comment
Post a Comment