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…
-
Tip: Using Masonry to create a fluid layout for your BlogAre you a fan of Pinterest , and like the way that they have a fluid layout of boxes down the site,…
-
Website redesign launch of Concentrics Restaurants!This week we're proud to announce the launch of the website redesign for Concentrics Restaurant…
-
Hangout on Air: Friday Request Line for 10/19/2012Less is more, user-centric design, focusing on your user experience, and lots of template manipulat…
-
Using Blogger page types to affect your blog designIn many of our tips we recommend wrapping the Javascript code that we're providing in something…
-
Question: Can I use my own domain name with my Blogger site? Will hosting still be free?Coming across a blog that is using a blogspot.com address, like yourblog.blogspot.com , tells us on…
-
Tip: Creating a newspaper layout in Blogger with the first image before the articleA request that often is brought up in Blogger development forums is the desire to break the convent…

Post a Comment
Post a Comment