မဂၤလာပါခင္ဗ်ာ :::: ကၽြန္ေတာ္တင္သမွ် Post ေလးမ်ားသည္ ကၽြန္ေတာ္ေလ႕လာဖူးသမွ်ကို ျပန္လည္မွ်ေ၀ေပးျခင္းျဖစ္ပါတယ္။ သူငယ္ခ်င္းအားလံုးလည္း ကၽြန္ေတာ္႕ site မွႀကိဳက္ႏွစ္သက္တဲ႕ မည္႕သည္႕ Post ကိုမဆို ျမန္မာ IT နည္းပညာဖြံ႕ၿဖိဳးတိုးတက္ေရးအတြက္ ျပန္လည္မွ်ေ၀ေပးေစလိုပါတယ္ဗ်ာ။ ::::

Dashboard

Monday, January 7, 2013

Multilevel CSS3 Menu Bar With Icons For Blogger


           Blogger ညီကိုမ်ားအတြက္ အရင္က Menu Bar ေတြနဲ႕ မတူတဲ႕ ေနာက္ထပ္ Menu Bar အသစ္
ေလးတစ္ခုမွ်ေ၀ေပးလိုက္ပါတယ္ဗ်ာ။ အခုတင္ေပးလိုက္တဲ့ Menu Bar ကေတာ႕ Icon ေလးေတြနဲ႕ဆို
ေတာ႕ တစ္မ်ိဳးဆန္းတာေပါ႕ေနာ္။ ကၽြန္ေတာ္တင္ေပးလိုက္တဲ႕  Css3 code ေတြကလည္း အခုမွစတဲ႕ Blogger ညီကိုမ်ားအတြက္ အဆင္ေျပေျပလိုက္လုပ္ႏိုင္ပါတယ္။ ေအာက္မွာလည္း သူငယ္ခ်င္းမ်ား အ
ဆင္ေျပေျပနဲ႕ လိုက္လုပ္ႏိုင္ေအာင္လို႕ Code ေတြကို ပံုနဲ႕တကြ အေသးစိတ္ရွင္းျပေပးလိုက္ပါတယ္ဗ်ာ။ လြယ္လြယ္ေလးပါ။

Facebook ရဲ႕ Like button ကိုႏွိပ္ျခင္းျဖင္႕ မိမိရဲ႕ Facebook ေပၚမွာ ဒီ Post ေလးေရာက္သြားမွာပါ။ 
ဒီ Post ေလးကိုသေဘာက်တယ္ဆိုရင္လည္း Like Button ေလးကိုႏွိပ္ခဲ႕ေပးပါေနာ္။

 
ဒီေနရာကေနစျပီေနာ္။ေသခ်ာေလးဖတ္ျပိးလိုက္လုပ္ၾကည္႕ေပးပါ။ လြယ္ပါတယ္။ 
drop down menu


HTML JAVASCRIPT A simple Drop Down Menu For Blogger
အဆင့္ 1  Design > Page Elements > Add a Gadget ကိုႏွိပ္ပါ။
အဆင္႕ 2 Eidt HTML ကုိေရြးေပးပါ။ ျပီးသြားရင္ ေအာက္က Code ကိုကူးထည္႕ေပးပါ။
အဆင္႕ 3 Save ႏွိပ္ေပးပါ။

<ul id="navbt">
<li><a href="#"><img src="http://3.bp.blogspot.com/-0-D5shInI1Y/UOlcZtDnt2I/AAAAAAAAGSE/1JK6hQhmAwg/s1600/bloggetrix-home.png" /> Home</a></li>
<li><a href="#"><span><img src="http://3.bp.blogspot.com/-SH72B_8sKyM/UOlcand-e1I/AAAAAAAAGSM/dIpSZGPefJQ/s1600/bloggetrix-top1.png" /> HTML/CSS</span></a>
<div class="subs">
<div class="col">
<ul>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 1</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 2</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 3</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 4</a></li>
<li><a href="#"><span><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Sublinks</span></a>
<div class="subs">
<div class="col">
<ul>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 41</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 42</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 43</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 44</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 45</a></li>
</ul>
</div>
<div class="col">
<ul>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 46</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 47</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 48</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 49</a></li>
</ul>
</div>
</div>
</li>
</ul>
</div>
<div class="col">
<ul>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 6</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 7</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 8</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 9</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 10</a></li>
</ul>
</div>
</div>
</li>
<li><a href="#"><span><img src="http://1.bp.blogspot.com/-WUG46uZpVOI/UOlcbHUp8yI/AAAAAAAAGSY/PRQkX5G3Guk/s1600/bloggetrix-top2.png" /> jQuery/JS</span></a>
<div class="subs">
<div class="col">
<ul>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 1</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 2</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 3</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 4</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 5</a></li>
</ul>
</div>
<div class="col">
<ul>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 6</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 7</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 8</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 9</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-XQe77MKg5HA/UOlcZjkt5qI/AAAAAAAAGSA/JlQ7K-Rjbw4/s1600/bloggetrix-bub.png" /> Link 10</a></li>
</ul>
</div>
</div>
</li>
<li><a href="#"><img src="http://3.bp.blogspot.com/-Y00EXW8ZSmU/UOlcbm4ZqHI/AAAAAAAAGSc/v68M-g7MDr8/s1600/bloggetrix-top3.png" /> PHP</a></li>
<li><a href="#"><img src="http://2.bp.blogspot.com/-6U5E7L3tcNs/UOlcb_MW7PI/AAAAAAAAGSk/Ryn__dNwG2A/s1600/bloggetrix-top4.png" /> MySQL</a></li>
<li><a href="#"><img src="http://3.bp.blogspot.com/-zbAW77u5p2Y/UOlccqY37FI/AAAAAAAAGSs/tkYBQTIKS6E/s1600/bloggetrix-top5.png" /> XSLT</a></li>
</ul>

 
ၿပီးသြားရင္ေအာက္ကအဆင္႕အတိုင္းလုိက္လုပ္ေပးပါ။

အဆင္႕ 4  Design > Edit HTML > Expand Widget Templates မွာအမွန္ျခစ္ေပးပါ။
အဆင္႕ 5 Ctrl + F ကိုႏွိပ္ျပီး ဒီကုတ္ေလးကိုရွာပါ  ]]></b:skin>
အဆင္႕ 6 ေတြ႕ျပီဆိုရင္ ]]></b:skin> ရဲ႕ အေပၚမွာေအာက္က Code ကို ကူးထည္႕ေပးပါ။
အဆင္႕ 7 အရင္ဆံုး Preview နဲ႕အရင္ၾကည္႕ပါ။ အဆင္ေျပျပီဆိုမွ Save ႏွိပ္ေပးပါ။
/* icons Css3 menu www.pyaephyo.com*/

ul#navbt {
display:block;
float:left;
font-family:Trebuchet MS,sans-serif;
font-size:0;
padding:5px 5px 5px 0;

background: -moz-linear-gradient(#f5f5f5, #c4c4c4); /* FF 3.6+ */
background: -ms-linear-gradient(#f5f5f5, #c4c4c4); /* IE10 */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f5f5f5), color-stop(100%, #c4c4c4)); /* Safari 4+, Chrome 2+ */
background: -webkit-linear-gradient(#f5f5f5, #c4c4c4); /* Safari 5.1+, Chrome 10+ */
background: -o-linear-gradient(#f5f5f5, #c4c4c4); /* Opera 11.10 */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f5f5f5', endColorstr='#c4c4c4'); /* IE6 & IE7 */
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#f5f5f5', endColorstr='#c4c4c4')"; /* IE8+ */
background: linear-gradient(#f5f5f5, #c4c4c4); /* the standard */
}
ul#navbt,ul#navbt ul {
list-style:none;
margin:0;
}
ul#navbt,ul#navbt .subs {
background-color:#444;
border:1px solid #454545;

border-radius:9px;
-moz-border-radius:9px;
-webkit-border-radius:9px;
}
ul#navbt .subs {
background-color:#fff;
border:2px solid #222;
display:none;
float:left;
left:0;
padding:0 6px 6px;
position:absolute;
top:100%;
width:300px;

border-radius:7px;
-moz-border-radius:7px;
-webkit-border-radius:7px;
}
ul#navbt li:hover>* {
display:block;
}
ul#navbt li:hover {
position:relative;
}
ul#navbt ul .subs {
left:100%;
position:absolute;
top:0;
}
ul#navbt ul {
padding:0 5px 5px;
}
ul#navbt .col {
float:left;
width:50%;
}
ul#navbt li {
display:block;
float:left;
font-size:0;
white-space:nowrap;
}
ul#navbt>li,ul#navbt li {
margin:0 0 0 5px;
}
ul#navbt ul>li {
margin:5px 0 0;
}
ul#navbt a:active,ul#navbt a:focus {
outline-style:none;
}
ul#navbt a {
border-style:none;
border-width:0;
color:#181818;
cursor:pointer;
display:block;
font-size:13px;
font-weight:bold;
padding:8px 18px;
text-align:left;
text-decoration:none;
text-shadow:#fff 0 1px 1px;
vertical-align:middle;
}
ul#navbt ul li {
float:none;
margin:6px 0 0;
}
ul#navbt ul a {
background-color:#fff;
border-color:#efefef;
border-style:solid;
border-width:0 0 1px;
color:#000;
font-size:11px;
padding:4px;
text-align:left;
text-decoration:none;
text-shadow:#fff 0 0 0;

border-radius:0;
-moz-border-radius:0;
-webkit-border-radius:0;
}
ul#navbt li:hover>a {
border-style:none;
color:#fff;
font-size:13px;
font-weight:bold;
text-decoration:none;
text-shadow:#181818 0 1px 1px;
}
ul#navbt img {
border:none;
margin-right:8px;
vertical-align:middle;
}
ul#navbt span {
background-position:right center;
background-repeat:no-repeat;
display:block;
overflow:visible;
padding-right:0;
}
ul#navbt ul span {
background-image:url("http://1.bp.blogspot.com/-6qHJT8xyxS8/UOlcZaSZsmI/AAAAAAAAGR8/-39aKs8TNEU/s1600/bloggetrix-arrow.png");
padding-right:20px;
}
ul#navbt ul li:hover>a {
border-color:#444;
border-style:solid;
color:#444;
font-size:11px;
text-decoration:none;
text-shadow:#fff 0 0 0;
}
ul#navbt > li >a {
background-color:transpa;
height:25px;
line-height:25px;

border-radius:11px;
-moz-border-radius:11px;
-webkit-border-radius:11px;
}
ul#navbt > li:hover > a {
background-color:#313638;
line-height:25px;
}

 
အားလံုးဘဲအဆင္ေျပၾကပါေစေနာ္။

2 comments:

  1. ကၽြန္ေတာ္ menu က ေအာက္ထဲ့၀င္ေနတယ္။ လုပ္ပါအုံးအကို
    ဘာျဖစ္လုိလည္းမသိဘူး drop down အထဲ့မွာ၀င္ေနလုိ

    ReplyDelete
  2. အဲဒါက Code နဲ႕မဆိုင္ေတာ႕ဘူးဗ် Template ေၾကာင့္ပါ။

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...