- Log in your Blogger account.
- From the Dashboard, go to Layout
- Choose Edit HTML
- Scroll down a bit or look for :
</head>
- Immediately above that, copy/paste :
<script language="javascript" type="text/javascript"> function toggleVis( elemID ) { var elem = document.getElementById( elemID ); if( elem.style.display != 'none' ) { elem.style.display = 'none'; } else { elem.style.display = 'block'; } } </script>
- Save your template.
- To use it, you just have to create a DIV and give it an ID. And then, create an instance which (e.g. on click) will invoke the 'toggle visibility' function of your DIV.
- Example :
<a onclick="toggleVis('example');">
Click here to toggle visibility of the following element</a> <div id="example">This is the element to be toggled</div>
produces...
Click here to toggle visibility of the following element
This is the element to be toggled
Implement the Toggle Visibility function - Show/Hide anything
Labels: Blogger, Design, HTML, JavaScript, Template, Toggle Visibility, TutorialHTML Tutorial - <a> tag
Posted by
Dr.K@meleon
at
1:44 PM
.
0
comments
Usage : Creates hyperlinks, the text that you can click on in your web browser to go to another web page
Syntax :
<A HREF="URL" params>TEXT-TO-BE-DISPLAYED</A>
Optional Params :
NAME: name a section of the page
TARGET: which window the document should go in
TITLE: suggested title for the document to be opened
onClick: script to run when the user clicks on this anchor
onMouseOver: script to run when the mouse is over the link
onMouseOut: script to run when the mouse is no longer over the link
Example :
<A HREF="http://bloglates.blogspot.com">Bloglates!</A>
produces...
Bloglates!
How to change the favIcon
Posted by
Dr.K@meleon
at
1:04 AM
.
0
comments
- Log in your Blogger account.
- From the Dashboard, go to Layout
- Choose Edit HTML
- In the first few lines, look for :
<head>
- Immediately below that, copy/paste :
<link href='URL' rel='shortcut icon'/>
- Replace URL with the location of your favIcon image
(e.g. http://xxx.googlepages.com/fav.ico) - Save your template.
- Done! The new FavIcon will show up after one-or-two browser refreshes.
How to remove the Navigation Bar
Labels: Blogger, CSS, Design, NavBar, Template, Tutorial- Log in your Blogger account.
- From the Dashboard, go to Layout
- Choose Edit HTML
- Scroll a bit down, and look for :
<b:skin><![CDATA[/*
- A few lines below that, copy/paste :
#navbar-iframe {
height:0px;
visibility:hidden;
display:none
} - Save your template.
- Done! The NavBar is gone.