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: How do I remove the Blogger bar at the top of my site?This is, far and away, the #1 question we're asked when people see the work we've done with…
-
Featured Blogger Site: Rebekah Brooks JewelryRebekah Brooks is a small handmade jewelry company based in Massachusetts. Fulfilling a lifelong i…
-
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…
-
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…
-
Question: Why is my Blogger blog not displaying correctly in IE 9?As web developers we learn to live with what we call "cross-browser compatibility" issues…
-
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…
-
Tip: Better titles for your article posts and pagesOne of the simplest ways you can improve your Blogger site's search engine optimization (SEO), …
Post a Comment
Post a Comment