Oke Sob, Langsung Aja Kali Ini Pak Bendot's Ingin Bagi-bagi tips tentang cara Membuat menu Melayang di sisi Kiri blog
Mau tahu cara membuat menu melayang ini? lihat demonya di sini. Ikuti langkah-langkah berikut ini:1.Klik Rancangan/Tata Letak lalu Klik Tambah Gadget dan pilih HTML/JavaScript
2.Copy dan Paste Kode Berikut ini
<script src="http://sidebarmenu.googlecode.com/files/sidebarprototype.js" type="text/javascript"></script>
<script src="http://sidebarmenu.googlecode.com/files/sidebareffets.js" type="text/javascript"></script>
<script src="http://sidebarmenu.googlecode.com/files/sidebarmenu.js" type="text/javascript"></script>
<style>
body{
font-size:75%;
}
a{
outline: none;
}
a:active{
outline: none;
}
#sideBar{
text-align:left;
}
#sideBar h2{
color:#F0FFFF;
font-size:110%;
font-family:arial;
margin:10px 10px 10px 10px;
font-weight:bold !important;
}
#sideBar h2 span{
font-size:125%;
font-weight:normal !important;
}
#sideBar ul{
margin:0px 0px 0px 0px;
padding:0px 0px 0px 0px;
}
#sideBar li{
margin:0px 5px 5px 10px;
padding: 0 0 0 10px;
list-style-type:none;
display:block;
background-color:#DA1074;
width:177px;
color:#FFFFFF;
}
#sideBar li a{
width:100%;
}
#sideBar li a:link,
#sideBar li a:visited{
color:#FFFFFF;
font-family:verdana;
font-size:100%;
text-decoration:none;
display:block;
margin:0px 0px 0px 0px;
padding:0 0 0 20px;
width:100%;
}
#sideBar li a:hover{
color:#FFFF00;
text-decoration:underline;
}
#sideBar{
position: fixed;
width: auto;
height: auto;
top: 140px;
left:0px;
background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXEIC11Jote44zKe9cx145C55O1svwZWVLOgB8n0CVttEieXbRl13gci79P-dEs6nPw4kxpxZxEAWu8dC85EZLo_g96IXU5t4YWAjuRY-ZaG0u9ou1gGcc5-LZe84taWpgF0AGTfyYsExJ/s320/left.collapse.border.png);
background-position:top right;
background-repeat:repeat-y;
}
#sideBarTab{
float:left;
height:137px;
width:28px;
}
#sideBarTab img{
border:0px solid #FFFFFF;
}
#sideBarContents{
float:left;
overflow:hidden !important;
width:200px;
height:320px;
}
#sideBarContentsInner{
width:200px;
}</style>
<div id="sideBar">
<div id="sideBarContents" style="display:none;">
<div id="sideBarContentsInner">
<h2>Left<span>Menu</span></h2>
<ul>
<li><a href="#">Link One</a></li>
<li><a href="#">Link Two</a></li>
<li><a href="#">Link Three</a></li>
<li><a href="#">Link Four</a></li>
</ul>
</div> </div>
<a id="sideBarTab" href="#"><img alt="sideBar" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9egzAw4-1oK5DmfhXiQ91fIEgknXQI-nlf-5fb_NgwP12AUFghHfdU-evfYBFabBxvLksw5qwIVMAXDP7PuRvX0hA-jWJGWAVhI1xr2LWPa5Ycv6uJDFUy5r3BUfqHPZ8tkMlOdwOXcjq/s320/sidebarcollapse.png" title="sideBar" /></a>
</div>
body{font-size:75%;}a{outline: none;}a:active{outline: none;}#sideBar{text-align:left;}#sideBar h2{color:#F0FFFF;font-size:110%;font-family:arial;margin:10px 10px 10px 10px;font-weight:bold !important;}#sideBar h2 span{font-size:125%;font-weight:normal !important;}#sideBar ul{margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;}#sideBar li{margin:0px 5px 5px 10px;padding: 0 0 0 10px;list-style-type:none;display:block;background-color:#DA1074;width:177px;color:#FFFFFF;}#sideBar li a{width:100%;}#sideBar li a:link,#sideBar li a:visited{color:#FFFFFF;font-family:verdana;font-size:100%;text-decoration:none;display:block;margin:0px 0px 0px 0px;padding:0 0 0 20px;width:100%;}#sideBar li a:hover{color:#FFFF00;text-decoration:underline;}#sideBar{position: fixed;width: auto;height: auto;top: 140px;left:0px;background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXEIC11Jote44zKe9cx145C55O1svwZWVLOgB8n0CVttEieXbRl13gci79P-dEs6nPw4kxpxZxEAWu8dC85EZLo_g96IXU5t4YWAjuRY-ZaG0u9ou1gGcc5-LZe84taWpgF0AGTfyYsExJ/s320/left.collapse.border.png);background-position:top right;background-repeat:repeat-y;}#sideBarTab{float:left;height:137px;width:28px;}#sideBarTab img{border:0px solid #FFFFFF;}#sideBarContents{float:left;overflow:hidden !important;width:200px;height:320px;}#sideBarContentsInner{width:200px;}
Silahkan ganti kode berikut sesuai dengan keinginan Anda:
Link One
Link Two
Link Three
Link Four
Keterangan:
# = Alamat Link
Link One/Two/Three/Four= Nama Link
Tidak ada komentar:
Posting Komentar
Catatan: Hanya anggota dari blog ini yang dapat mengirim komentar.