Showing posts with label horizontal navigation bar. Show all posts
Showing posts with label horizontal navigation bar. Show all posts

Tuesday, May 24, 2011

Another Magnifying Menu using CSS and HTML



SEE THE LIVE DEMO

Similar to the fisheye menu, this magnifying menu doesn't use javascript and only magnifies the image selected. The images are held as foreground images and have associated text (out of site) for text readers. The styling for this is very simple and the enlargement can be set to any value you please (so long as it does not completely cover adjacent images so that they cannot be selected.) This one gives a x2 enlargement which is probably the maximum value it should be set to for compatibility reasons. 



Steps for this tutorial:

1. Log into your Blogger dashboard and navigate to Design > Edit HTML.

2. Insert the following CSS code into your head section.



3. Next, add a new HTML/JavaScript gadget under Page Elements and add the following HTML code.



Note: Change link and images. Each image will appear to the right of the the previous one.

Saturday, March 12, 2011

CSS3 Garage Door Horizontal Menu


preview-blogger

CSS Code Snippet
This section code should be inserted before the closing head tag.



HTML Code Snippet
This section code should be inserted where you want the output to appear.



JavaScript Code Snippet
This section code should be inserted before the closing head tag.


Saturday, February 26, 2011

The Future Now - CSS3 Exploding Menu for Blogger


preview-blogger

CSS Code Snippet
This section code should be inserted before the closing head tag.



HTML Code Snippet
This section code should be inserted where you want the output to appear.



Sunday, February 13, 2011

How to add a horizontal chrome drop down navigation menu with Javascript to Blogger

chrome_drop_down_menupreview-blogger

JavaScript Code Snippet
This section code should be inserted before the closing head tag.




CSS Code Snippet This section code should be inserted before the closing head tag.




HTML Code Snippet This section code should be inserted where you want the output to appear.

Monday, October 26, 2009

How to add a multi-level navigation bar to your Blogger

ddmenu From this tutorial, you will be able to add a multi-level navigation bar to the header of your Blogger powered blog. The entire interface is rendered in plain HTML, enabling this script to be easily customized to fit your Blogger template and allow all of its content to be search engine friendly. You can also set which tab you want to be selected by default when the page loads (ie. 1st, 2nd, 3rd tab, etc.), or have the script automatically select a tab based on a match between the current page’s URL and one of the menu tabs’. If there is a match then that tab will be selected. Before attempting this tutorial, make sure you back up your current template in case it doesn’t turn out as expected.

Click here to see the demo page

Steps to follow:

1. Login to your Blogger Dashboard and select the Layout tab > Edit HTML (do not click on “Expand Widget Template”)

2. Hold CTRL+F and find the following section code:

<div id='main-wrapper'>
3. Once you’ve located this code, right underneath it should have the following section code:
<b:section class='main' id='main' showaddelement='no'>
<b:widget id='Blog1' locked='false' title='Blog Posts' type='Blog'/>
</b:section>
</div>
4. You will need to modify the showaddelement to “yes” and the locked to “true”, so it will look like this:
<b:section class='main' id='main' showaddelement='yes'>
<b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'/>
</b:section>
</div>
5. Once you’ve modified your section code, hold CTRL+F and locate the following section code: ]]></b:skin>

6. Paste the following section code right underneath it:
<script src='http://www.blogspotvision.com/bspotvision/dropdowntabs/dropdowntabfiles/dropdowntabs.js' type='text/javascript'>

/***********************************************
* Drop Down Tabs Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
7. Next, you will need to paste the following section code right above: ]]></b:skin>
/* Drop Down Navigation
----------------------------------------------- */
.bluetabs{
border-bottom: 1px solid gray;
}
.bluetabs ul{
padding: 3px 0;
margin-left: 0;
margin-top: 1px;
margin-bottom: 0;
font: bold 12px Verdana;
list-style-type: none;
text-align: left; /*set to left, center, or right to align the menu as desired*/
}
.bluetabs li{
display: inline;
margin: 0;
}
.bluetabs li a{
text-decoration: none;
padding: 3px 7px;
margin-right: 3px;
border: 1px solid #778;
color: #2d2b2b;
background: white url(media/bluetab.gif) top left repeat-x; /*THEME CHANGE HERE*/
}
.bluetabs li a:visited{
color: #2d2b2b;
}
.bluetabs li a:hover{
text-decoration: underline;
color: #2d2b2b;
}
.bluetabs li.selected{
}
.bluetabs li.selected a{ /*selected main tab style */
background-image: url(media/bluetabactive.gif); /*THEME CHANGE HERE*/
border-bottom-color: white;
}
.bluetabs li.selected a:hover{ /*selected main tab style */
text-decoration: none;
}

/* ######### Style for Drop Down Menu ######### */
.dropmenudiv_b{
position:absolute;
top: 0;
border: 1px solid #918d8d; /*THEME CHANGE HERE*/
border-width: 0 1px;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
background-color: white;
width: 200px;
visibility: hidden;
}
.dropmenudiv_b a{
width: auto;
display: block;
text-indent: 5px;
border: 0 solid #918d8d; /*THEME CHANGE HERE*/
border-bottom-width: 1px;
padding: 2px 0;
text-decoration: none;
color: black;
}
* html .dropmenudiv_b a{ /*IE only hack*/
width: 100%;
}
.dropmenudiv_b a:hover{ /*THEME CHANGE HERE*/
background-color: #edf3f3;
}
8. Before you save your template, preview it first to see if all section codes have been properly applied. If you can preview your blog, your codes have been properly applied, if you can’t, your codes are not properly applied.

9. Once you’re able to preview it, Save Template and switch over to Page Elements, under the Layout tab of your Blogger’s Dashboard. You should be able to see “Add a Gadget” under your header now.

10. Click “Add a Gadget” and select HTML and paste the following section code in the box:
<div id="bluemenu" class="bluetabs">
<ul>
<li><a href="http://www.blogspotvision.com">Home</a></li>
<li><a href="http://www.blogspotvision.com" rel="dropmenu1_b">CSS</a></li>
<li><a href="http://www.blogspotvision.com" rel="dropmenu2_b">Partners</a></li>
<li><a href="http://www.blogspotvision.com">Tools</a></li>
</ul>
</div>

<!--1st drop down menu -->
<div id="dropmenu1_b" class="dropmenudiv_b">
<a href="http://www.blogspotvision.com">Horizontal CSS Menus</a>
<a href="http://www.blogspotvision.com">Vertical CSS Menus</a>
<a href="http://www.blogspotvision.com">Image CSS</a>
<a href="http://www.blogspotvision.com">Form CSS</a>
<a href="http://www.blogspotvision.com">DIVs and containers</a>
<a href="http://www.blogspotvision.com">Links and Buttons</a>
<a href="http://www.blogspotvision.com">Other</a>
</div>

<!--2nd drop down menu -->
<div id="dropmenu2_b" style="width: 150px;" class="dropmenudiv_b">
<a href="http://www.blogspotvision.com">CSS Drive</a>
<a href="http://www.blogspotvision.com">JavaScript Kit</a>
<a href="http://www.blogspotvision.com">Coding Forums</a>
<a href="http://www.blogspotvision.com">JavaScript Reference</a>
</div> <script type="text/javascript">
//SYNTAX: tabdropdown.init("menu_id", [integer OR "auto"])
tabdropdown.init("bluemenu")
</script>

11. Click “Save” and your template should now have Drop Down Menus.

*Tutorial Completed

Wednesday, July 29, 2009

How to add a horizontal navigation bar to your header

horizonmenu From this tutorial, you will be able to add a horizontal navigation bar to your header. As we all know, Blogger’s default templates doesn’t supply this option in it’s gadgets, but we are able to manually add it with html/javascript. Remember to always back up your current existing template before beginning any tutorials in case it doesn’t turn out as expected.

Steps to follow:

1. Login to your Blogger dashboard

2. Go to Layout > Edit HTML (Click on “expand widgets” box)

3. Now search for the following section code: ]]></b:skin>
and add the following section code below right BEFORE it

/* Menu Control
----------------------------------------------- */
.menu{
margin: 0;
padding: 0px;
font: bold 12px Verdana;
background: #000;
width:900px;
height:31px;

}

.menu ul{
margin: 0;
padding: 0;
list-style-type: none;
}

.menu ul li{
position: relative;
display: inline;
float: left;

}

.menu ul li a{
display: block;
background: #000;
color: white;
padding: 8px 10px;
border-right: 1px solid #778;
color: #2d2b2b;
text-decoration: none;
}

* html .menu ul li a{
display: inline-block;
}

.menu ul li a:link, .menu ul li a:visited{
color: white;
}

.menu ul li a:hover{
background: black;
color: white;
}

Note: You will need to replace the section code in red with your width’s template and adjust the height’s px to fit your style.

4. Next, you will need to search for the following section code:

<div id='header-wrapper'>
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true' title='test (Header)' type='Header'/>
</b:section>
</div>

5. Add the following section code below right under it:

<div class='menu'>
<ul>
<li><a href='http://'>Home</a>
<li><a href='http://search/label/tutorials'>Tutorials</a></li>
    <li><a href='http://search/label/templates'>Templates</a></li>
    <li><a href='http://search/label/widgets'>Widgets</a></li>
  <li><a href='http://search/label/designs'>Designs</a></li>
<li><a href='http://search/label/icons'>Icons</a></li>
<li><a href='http://search/label/fonts'>Fonts</a></li>
      </li>
</ul>
<br style='clear: left'/>
</div>

Note: You will need to replace all links in blue with that of yours, and all texts in red are texts that will be displayed in the menu bar.

6. Your done! You can also add some designs to your horizontal bar, check out the design section.