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
-
Validating for Rich Pins for PinterestPinterest recently announced new functionality for "Rich Pins" for Pinterest for differen…
-
Tip: How to upload a new template for your Blogger siteWe've been providing some Blogger templates for people to download and add to their sites for f…
-
Is Wordpress better than Blogger for SEO? No answer.If only we had a dollar for each time we were asked this question, or were told that everyone shoul…
-
Blogger Template: Sartorial 2 and Sartorial 3 (free!)In the spirit of sharing, we've decided to open up our Sartorial 2 and Sartorial 3 templates …
-
Tip: Updated way to remove the Blogger NavbarIt's been a while since we took a look at the Blogger navbar, mainly because we simply got in t…
-
Thumbnail and summary including YouTube thumbsVideo bloggers, as well as bloggers that simply have some YouTube videos in their blog posts, have …
-
Tip: Using JQuery to process and include Blogger RSS feeds into your siteIn our last post we discussed the types of RSS feeds that your Blogger site automatically creates …

Post a Comment
Post a Comment