Showing posts with label sidebar. Show all posts
Showing posts with label sidebar. Show all posts

Tuesday, December 1, 2009

Vertical navigation menu with sub menus dropping to the right of anchor

verticalmenu A flexible menu script that can enables drop down sub menus to the right of each menu link. Each drop down menu is simply implemented as plain HTML on the page, making them search engine friendly and simple to edit and deploy. Here are the highlights of this script:

  • Ability to style the currently selected anchor link using CSS, or for image anchors
  • Global settings to set the delay before each menu disappears onMouseout
  • Decides itself whether to enable shadows and a fade-in effect when the menu is revealed

Click here to see the demo


Steps to follow:

1. Login into your Blogger dashboard > Layouts > Edit HTML

2. Insert the following section code below into your template right after the section code: ]]></b:skin>
<link href='http://www./scripts/anylinkcssmenu.css' rel='stylesheet' type='text/css'/>

<script src='http://www./scripts/anylinkcssmenu.js' type='text/javascript'>
</script>

<script type='text/javascript'>
//anylinkcssmenu.init(&quot;menu_anchors_class&quot;) ////Pass in the CSS class of anchor links (that contain a sub menu)
anylinkcssmenu.init(&quot;anchorclass&quot;)
</script>

<style type='text/css'>
/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */
.urbangreymenu{
width: 170px; /*width of menu*/
}

.urbangreymenu .headerbar{
font: bold 13px Verdana;
color: white;
background: #606060;
margin-bottom: 0; /*bottom spacing between header and rest of content*/
text-transform: uppercase;
text-indent: 10px;
padding: 7px 0 7px 0; /*31px is left indentation of header text*/
}

.urbangreymenu ul{
list-style-type: none;
margin: 0;
padding: 0;
margin-bottom: 0; /*bottom spacing between each UL and rest of content*/
}

.urbangreymenu ul li{
padding-bottom: 2px; /*bottom spacing between menu items*/
}

.urbangreymenu ul li a{
font: normal 12px Arial;
color: black;
position: relative;
background: #E9E9E9;
display: block;
padding: 5px 0;
line-height: 17px;
padding-left: 8px; /*link text is indented 8px*/
text-decoration: none;
}

.urbangreymenu ul li a:visited{
color: black;
}

.urbangreymenu ul li a:hover, .urbangreymenu ul li a.selectedanchor{ /*hover state CSS*/
color: white;
background: black;
}
</style>
Note: The above code references the external .js file "anylinkcssmenu.js” , "anylinkcssmenu.js”, which you need to download (right click, and select "Save As").

3. Navigate over to Layout > Page Elements to “Add a Gadget” and paste the following section code below into the box.
<div id="submenu3" class="anylinkcsscols">

<div class="column"> 
<b>title</b> 
    <ul>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    </ul>
</div>

<div class="column">
    <b>title</b> 
    <ul>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    </ul>
</div>

<div class="column">
    <b>title</b>

          <ul>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    </ul>
</div>

</div><!--webbot bot="HTMLMarkup" endspan i-checksum="32594" -->
<p align="left"><b>Demo:(sub menus drop to the right of
anchor):</b></p>
<p align="left"><!--webbot bot="HTMLMarkup" startspan --><div class="urbangreymenu">

<h3 class="headerbar">Resources</h3>

          <ul>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    </ul>
</div>

<div id="submenu2" style="width: 150px; background:#E9E9E9" class="anylinkcss"> 
    <ul>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    </ul>

</div><!--webbot bot="HTMLMarkup" endspan i-checksum="55946" --></p>

<p align="left"><!--4th anchor link-->

<p><a data-image="news.gif" data-overimage="newsover.gif" href=http://.com class="anchorclass" rel="submenu4"><img style="border-width:0" src="news.gif"/></a></p>

<div id="submenu4" style="background: #FEEBAB" class="anylinkcsscols">

<div class="column"> 
    <b>title</b>
    <ul>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    </ul>

</div>

<div class="column">

        <b>title</b>
    <ul>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    </ul>

</div>

<div class="column">
    <b>title</b>
    <ul>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    <li><a href="http://.com">link</a></li>
    </ul>
</div>
</div>

Note: Replace to your links and navigation, CSS can also be modified to fit your template.

4. Save the HTML and view your template.

** Tutorial completed

Tuesday, November 24, 2009

How to add a digital clock to your Blogger

dc This digital clock script attempts to mimic that cool “glow in the dark” look of a LCD watch when it comes to its interface. This clock can also display the time in standard 12-hour format, with a “AM” and “PM” indicator. Note that in non IE4+/NS6+ browsers, a regular form clock is displayed instead.

Click here to see the demo

Steps to follow:

1. Login into your Blogger dashboard > Layouts > Edit HTML

2. Insert the following section code below into your template right before the closing of head. </head>


<style>
<!--
.styling{
background-color:black;
color:lime;
font: bold 15px MS Sans Serif;
padding: 3px;
}
-->
</style>
3. Next, go to Layouts > Page Elements > and Add an HTML/JavaScript Gadget. Insert the following section code below as the HTML and after saving, move the gadget where you want the calendar to appear.

<span id="digitalclock" class="styling"></span>
<script>
<!--
var alternate=0
var standardbrowser=!document.all&&!document.getElementById

if (standardbrowser)
document.write('<form name="tick"><input type="text" name="tock" size="6"></form>')

function show(){
if (!standardbrowser)
var clockobj=document.getElementById? document.getElementById("digitalclock") : document.all.digitalclock
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var dn="AM"

if (hours==12) dn="PM"
if (hours>12){
dn="PM"
hours=hours-12
}
if (hours==0) hours=12
if (hours.toString().length==1)
hours="0"+hours
if (minutes<=9)
minutes="0"+minutes

if (standardbrowser){
if (alternate==0)
document.tick.tock.value=hours+" : "+minutes+" "+dn
else
document.tick.tock.value=hours+"   "+minutes+" "+dn
}
else{
if (alternate==0)
clockobj.innerHTML=hours+"<font color='lime'>&nbsp;:&nbsp;</font>"+minutes+" "+"<sup style='font-size:1px'>"+dn+"</sup>"
else
clockobj.innerHTML=hours+"<font color='black'>&nbsp;:&nbsp;</font>"+minutes+" "+"<sup style='font-size:1px'>"+dn+"</sup>"
}
alternate=(alternate==0)? 1 : 0
setTimeout("show()",1000)
}
window.onload=show

//-->
</script>

** Tutorial completed

Sunday, November 22, 2009

How to add a basic calendar to your Blogger

calendarbv If you need a simple, elegant calendar to display the current days of the month, Basic Calendar is an excellent script for the purpose. Uses CSS to allow easy changing to its appearance, everything from calendar dimensions, colors, down to the font used to highlight the current day.

Click here to see the demo

Steps to follow:

1. Login into your Blogger dashboard > Layouts > Edit HTML

2. Insert the following section code below into your template right before the closing of head. </head>

<style type="text/css">
.main {
width:200px;
border:1px solid black;
}
.month {
background-color:black;
font:bold 12px verdana;
color:white;
}
.daysofweek {
background-color:gray;
font:bold 12px verdana;
color:white;
}
.days {
font-size: 12px;
font-family:verdana;
color:black;
background-color: lightyellow;
padding: 2px;
}
.days #today{
font-weight: bold;
color: red;
}
</style>
<script type="text/javascript" src="basiccalendar.js">
</script>

Note: The above references an external .js file. Download basiccalendar.js (by right clicking, and selecting "Save As"), and upload to your webpage directory.


Note: Within the above code, you may customize the CSS rules to change all visual aspects of the calendar.

3. Next, go to Layouts > Page Elements > and Add an HTML/JavaScript Gadget. Insert the following section code below as the HTML and after saving, move the gadget where you want the calendar to appear.


<script type="text/javascript">

var todaydate=new Date()
var curmonth=todaydate.getMonth()+1 //get current month (1-12)
var curyear=todaydate.getFullYear() //get current year

document.write(buildCal(curmonth ,curyear, "main", "month", "daysofweek", "days", 1));
</script> 

** Tutorial completed

Thursday, September 17, 2009

How to manually add tabbed contents to your Blogger blog

contentpic From this tutorial, you will be able to add tabbed contents to your Blogger’s blog. Tabbed contents are usually placed in sidebars to save space and reduce loading time, it can also be appealing to have in some templates. Widgets that are usually placed inside tabbed contents to reduce loading time are the archive, labels, about the author, subscribe box, recent posts/comments, and social networking updates, such as twitter and facebook. Before attempting any tutorials, make sure you back-up your existing template just in case it doesn’t turn out as expected.

Steps to follow:

1. Login to your Blogger dashboard

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

3. Search for the following section code:

]]></b:skin>

and add the following section code immediately after it:

<link href='http://www.blogspotvision.com/bspotvision/tabbedcontent/tabview.css' rel='stylesheet' type='text/css'/>
<link href='http://www.blogspotvision.com/bspotvision/tabbedcontent/border_tabs.css' rel='stylesheet' type='text/css'/>
<script src='http://www.blogspotvision.com/bspotvision/tabbedcontent/yahoo-dom-event.js' type='text/javascript'/>
<script src='http://www.blogspotvision.com/bspotvision/tabbedcontent/element-beta-min.js' type='text/javascript'/>
<script src='http://www.blogspotvision.com/bspotvision/tabbedcontent/tabview-min.js' type='text/javascript'/>

<style type='text/css'>
.yui-content { padding:1em; /* pad content container */
}
.yui-navset .yui-content {
border:1px solid #ccc;
}
.yui-navset .yui-nav .selected a, .yui-navset .yui-nav a:hover {
background-color:#fff;
}
.yui-navset .yui-nav li a {
background:#e5e5e5 url(http://developer.yahoo.com/yui/examples/tabview/img/round_4px_trans_gray.gif) no-repeat;
}
.yui-navset .yui-nav li a em {
background:transparent url(http://developer.yahoo.com/yui/examples/tabview/img/round_4px_trans_gray.gif) no-repeat top right;
padding:0.5em;
}
/* top oriented */
.yui-navset-top .yui-nav { margin-bottom:-21px; } /* for overlap, based on content border-width */
.yui-navset-top .yui-nav li a {
border-bottom:1px solid #ccc;
}
.yui-navset-top .yui-nav .selected a { border-bottom:0; }
.yui-navset-top .yui-nav .selected a em { padding-bottom:0.6em; } /* adjust height */
</style>

4. Next, go to Layouts > Page Elements, and click Add a Gadget.

5. Copy and paste the following section code in it and click Save.

<div id="demo" class="yui-navset">
<ul class="yui-nav">
<li><a href="#tab1"><em>Tab1</em></a></li>
<li class="selected"><a href="#tab2"><em>Tab2</em></a></li>
<li><a href="#tab3"><em>Tab3</em></a></li>
</ul><br/>
<div class="yui-content">

<div id="tab1"><p>Tab One Content</p></div>
<div id="tab2"><p><ul><li><a href="http://yourblog.blogspot.com/search/label/yourlabel/">Your Label/Link text</a></li></ul></p></div>
<div id="tab3"><p>Tab Three Content</p></div>
</div>
</div>
<script>
(function() {
var tabView = new YAHOO.widget.TabView('demo');

YAHOO.log("The example has finished loading; as you interact with it, you'll see log messages appearing here.", "info", "example");
})();
</script>

6. Your done, if you want to add your labels in one of the contents, you will have to add them manually. The following section code highlighted in red indicates a link, for example:

<div id="tab2"><p><ul><li><a href="http://yourblog.blogspot.com/search/label/yourlabel/">Your Label/Link text</a></li></ul></p></div>