Tuesday, October 23, 2012

Cool Navigation Menu

Sưu tầm 1 tiện ích thanh Navigation Menu dọc có hiệu ứng trượt ngang khá đẹp và mượt cho blog
Bước 1:
- Vào Template - Edit HTML - Proceed - đánh dấu vào "Expand Widget Templates"
- Dán đoạn code này ngay trên thẻ:  ]]></b:skin>
/* CSS Navigation Menu */
margin:0;
padding:0;
}
#navigationMenu body{
font-size:14px;
color:#666;
background:#111 no-repeat;
/* CSS3 Radial Gradients */
background-image:-moz-radial-gradient(center -100px 45deg, circle farthest-corner, #444 150px, #111 300px);
background-image:-webkit-gradient(radial, 50% 0, 150, 50% 0, 300, from(#444), to(#111));
font-family:Arial, Helvetica, sans-serif;
}
#navigationMenu li{
list-style:none;
height:39px;
padding:2px;
width:40px;
}
#navigationMenu span{
/* Container properties */
width:0;
left:38px;
padding:0;
position:absolute;
overflow:hidden;
/* Text properties */
font-family:'Myriad Pro',Arial, Helvetica, sans-serif;
font-size:18px;
font-weight:bold;
letter-spacing:0.6px;
white-space:nowrap;
line-height:39px;
/* CSS3 Transition: */
-webkit-transition: 0.25s;
/* Future proofing (these do not work yet): */
-moz-transition: 0.25s;
transition: 0.25s;
}
#navigationMenu a{
background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEuKM1ytoq-RJanTTRKkn-RDgUvBXMc7D92dBbb8G6PcrARfT9-8Pu_iy51AAJ8MRxepcn8T8m5RQi6FqDF0oAIWNuOIc5skjONo7PYQQwqnUwgXPhBMKGoyi-sYD6zplsOok4eOp7ktSB/s190/navigation1.jpg') no-repeat;
height:39px;
width:38px;
display:block;
position:relative;
}
/* General hover styles */
#navigationMenu a:hover span{ width:auto; padding:0 20px;overflow:visible; }
#navigationMenu a:hover{
text-decoration:none;
/* CSS outer glow with the box-shadow property */
-moz-box-shadow:0 0 5px #9ddff5;
-webkit-box-shadow:0 0 5px #9ddff5;
box-shadow:0 0 5px #9ddff5;
}
/* Green Button */
#navigationMenu .home { background-position:0 0;}
#navigationMenu .home:hover { background-position:0 -39px;}
#navigationMenu .home span{
background-color:#7da315;
color:#3d4f0c;
text-shadow:1px 1px 0 #99bf31;
}
/* Blue Button */
#navigationMenu .math { background-position:-38px 0;}
#navigationMenu .math:hover { background-position:-38px -39px;}
#navigationMenu .math span{
background-color:#1e8bb4;
color:#223a44;
text-shadow:1px 1px 0 #44a8d0;
}
/* Orange Button */
#navigationMenu .english { background-position:-76px 0;}
#navigationMenu .english:hover { background-position:-76px -39px;}
#navigationMenu .english span{
background-color:#c86c1f;
color:#5a3517;
text-shadow:1px 1px 0 #d28344;
}
/* Yellow Button */
#navigationMenu .literary { background-position:-114px 0;}
#navigationMenu .literary:hover{ background-position:-114px -39px;}
#navigationMenu .literary span{
background-color:#d0a525;
color:#604e18;
text-shadow:1px 1px 0 #d8b54b;
}
/* Purple Button */
#navigationMenu .gotop { background-position:-152px 0;}
#navigationMenu .gotop:hover { background-position:-152px -39px;}
#navigationMenu .gotop span{
background-color:#af1e83;
color:#460f35;
text-shadow:1px 1px 0 #d244a6;
}
Bước 2:
- Vào Layout - Add a Gadget - ChọnHTML/JavaScript"
- Chép đoạn code này vào - tùy chỉnh cho thích hợp với blog của mình.
<div style='position: fixed; top: 40%; left: 0%;'/>
<ul id="navigationMenu">
<li>
<a class="Home" href="URL OF YOUR BLOG/">
<span>Home page</span></a></li>
<li>
<a class="math" href="URL OF YOUR LABEL1?max-results=7">
<span>Label 1</span></a></li>
<li>
<a class="english" href="URL OF YOUR LABEL2?max-results=7">
<span>Label 2</span></a></li>
<li>
<a class="literary" href="URL OF YOUR LABEL3?max-results=7">
<span>Label 3</span></a></li>
<li>
<a class="gotop" href="URL OF YOUR LABEL4?max-results=7">
<span>Label 4</span></a></li>
</ul>
</div>
Save!
Related Posts Plugin for WordPress, Blogger...