Tuesday, August 17, 2010

How do you get rid of the Blogger bar on top of your blog?

Hi, you know that thing on top of your blogger blog that allows you to flag or go to the next blog? I see some blogs don't have them. How do you take that away?

How do you get rid of the Blogger bar on top of your blog?
You can just look at the source code of the pages that don't have the top nav to find out. There are a couple of different ways.





I personally like to provide a link to toggle it on and off (put this in the head section of your blog:


%26lt;script language="javascript" type="text/javascript"%26gt;


%26lt;!--


function toggle(targetId) {


if (document.layers) {


vis = (document.layers[targetId].visibility == 'show') ? 'hide' : 'show'


document.layers[targetId].visibility = vis;


}


else if (document.all) {


vis = (document.all[targetId].style.visibility == 'visible') ? 'hidden': 'visible';


document.all[targetId].style.visibility = vis;


}


else if (document.getElementById) {


vis = (document.getElementById(targetId).style... == 'visible') ? 'hidden' : 'visible';


document.getElementById(targetId).style.... = vis;


}


}


// --%26gt;


%26lt;/script%26gt;





And they add this link somewhere on your page:





%26lt;a href="#" onclick="toggle('b-navbar');"%26gt;Toggle Navbar%26lt;/a%26gt;


No comments:

Post a Comment