07/03/2014

ဘေလာ.ဂါေတြအတြက္အရမ္းလန္းတဲ. JQuery Sliding Panel ေလးပါ


ဒါေလးကေတာ.နိုင္ငံျခားဆိုဒ္တစ္ခုမွာေတြ.မိလို.အရမ္းသေဘာက်တာနဲ.သံုးခ်င္တဲ.
ဘေလာ.ဂါေဘာ္ဒါမ်ားရိွရင္လဲသံုးနိုင္ေအာင္ျပန္လည္မွ်ေ၀ေပးလိုက္တာပါ
Panel ထဲမွာဘာေတြပါသလဲဆိုေတာ.
WELCOME message / Author info / Search box
Categories / Email subscribe /
 Facebook/RSS Feed/Google+/Twitter Follower
စတာေတြပါ၀င္ပါတယ္။နမူနာႀကည္.ခ်င္ရင္ေတာ.ေအာက္က 
Demo Link မွာသြားႀကည္.နိုင္ပါတယ္


သေဘာက်လို.သုံးခ်င္တယ္ဆိုရင္ေတာ.ေအာက္ကအတိုင္းပဲဆက္လုပ္လိုက္ပါ

Step.1 Blogger Dashboard ကို၀င္လိုက္ပါ။
Step.2 Template ကိုသြားပါ
Step.3 Edit HTML ကိုနွိပ္ပါ
Step.4 Ctrl + F ကိုနွိပ္ျပီး Search box ထဲမွာ <head> ဆိုတဲ.ကုဒ္ေလးရိုက္ျပီး enter ေခါက္ပါ။
ေတြ.ျပီဆိုရင္ေအာက္မွာေပးထားတဲ.ကုဒ္ေတြကိုေကာ္ပီကူးပီးအဲဒီ<head> ဆိုတဲ.
 tag ေလးရဲ.ေအာက္မွာ Paste ခ်လိုက္ပါ


<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js' type='text/javascript'></script>
<script type='text/javascript'>
$(document).ready(function() {

$(&quot;#open&quot;).click(function(){
$(&quot;div#panel&quot;).slideDown(&quot;slow&quot;);
});

$(&quot;#close&quot;).click(function(){
$(&quot;div#panel&quot;).slideUp(&quot;slow&quot;);
});

$(&quot;#toggle a&quot;).click(function () {
$(&quot;#toggle a&quot;).toggle();
});

});</script>

<b:if cond='data:blog.pageType != &quot;item&quot;'>
<style>
body#layout #slide-top-panel {display:none !important;}
</style>
</b:if>


Step.5 Search box ထဲမွာ</head> ဆိုတဲ.ကုဒ္ေလးရိုက္ျပီးထပ္ရွာပါ။ေတြ.ပီဆိုရင္ေအာက္မွာေပး ထားတဲ.ကုဒ္ေတြကိုေကာ္ပီကူးယူပီးအဲဒီ </head>ဆိုတဲ.ကုဒ္ေလးရဲ.အေပၚမွာ Paste ခ်လိုက္ပါ.။



<style>
.clearfix:after {content: ".";display: block;height: 0;clear: both;visibility: hidden;}
.clearfix {display: inline-block;}
* html .clearfix {height: 1%;}
.clearfix {display: block;}
.clearfix {height: 1%;}
.clearfix {display: block;}

.tab {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRfD-LEfgbFsvnsXBfSARe6JcUy8wLBnSOSZDoCRLFYDQIA1pXNXbPapSBy5DFnHMl80FFNCXn3dE1zuNutRihEQoZ9sKFBFHxN3-8hT8iZq_Rf9ghjBype0fKwqi95ZWhwk9RPtwN3Cp8/s1600/sliding-panel-tab-0.png) repeat-x 0 0;
height: 42px;
position: relative;
top: 0;
z-index: 999;
}
.tab ul.login {
display: block;
position: relative;
float: right;
clear: right;
height: 42px;
width: auto;
font-weight: bold;
line-height: 42px;
margin: 0;
right: 150px;
color: white;
font-size: 80%;
text-align: center;
}
.tab ul.login li.left {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUrBH_mosl-mNy3oYGHi4MFdjYEJsfk_LzEM7LBU2ZbF6kLyPXnOHuvvOcR1KEeuTwonPluBoTCmjg9NgGygkmZRw-x8khCZJ2carQBmVIl6yhX21_EBeg1sg0dsE3cUOHx8c0rtxKbm9o/s1600/sliding-panel-tab-left.png) no-repeat left 0;
height: 42px;
width: 30px;
padding: 0;
margin: 0;
display: block;
float: left;
}
.tab ul.login li.right {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXbE3yyxqVMt4ErUxBl1eV33849mM7cfmCfW15B-1IfmltavKNjjpDLKHCizPTNJVhRRMNkakAK62FjHk64trh8O8MpYAyeR-IkkT4ztP2x_WJHBUqoTcvJluicXstc4zgWDCjE3A1rtrR/s1600/sliding-panel-tab-right.png) no-repeat left 0;
height: 42px;
width: 30px;
padding: 0;
margin: 0;
display: block;
float: left;
}
.tab ul.login li {
text-align: left;
padding: 0 6px;
display: block;
float: left;
height: 42px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj48oflMo1L-veLUakA5R2tfozpPkFTWynW82fTrKf_Y5wjTfC7JzZVPYDnzHbJfUkcOf5Cq7it-PCeYHVT6iF5gztW5xu2OCJgakTUTvGwnMkOpZe8Zgip6-wed_LJnryo6bPuO7UEP4RL/s1600/sliding-panel-tab.png) repeat-x 0 0;
}

.tab ul.login li a {color: #15ADFF;}
.tab ul.login li a:hover {color: #FFFFFF;}
.tab .sep {color:#414141}

.tab a.open, .tab a.close {
height: 20px;
line-height: 20px !important;
padding-left: 30px !important;
cursor: pointer;
display: block;
width: 100px;
position: relative;
top: 11px;
}

.tab a.open {background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYcMjSbBXEcjzMoSXegGV1wCRFh07Z9cpAI1GeooJAj3_8RZMeQ8PdER-LNXZ9kecXLyQPNMh7zhPPkH5fHXb3oEVAUejbh-JR4dhKSg0-IM7-l0eFAMUqZKc-KbzqOhqbt_qRw_zmh1d8/s1600/button-open.png) no-repeat left 0;}
.tab a.close {background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4E7HM8t0F-EuRfDgYJ886WNHoTjQ0evvMmCPgpsQMnaCqwIPDNsl6bu5xNQViO0Z8skb1F4C1-h_gOIqR0kHP5P8QtTviXNm524y7lnd5RAgbxhXWrgOvn6rdxINWzsoRcl97Rpkp5Q9B/s1600/button-close.png) no-repeat left 0;}
.tab a:hover.open {background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYcMjSbBXEcjzMoSXegGV1wCRFh07Z9cpAI1GeooJAj3_8RZMeQ8PdER-LNXZ9kecXLyQPNMh7zhPPkH5fHXb3oEVAUejbh-JR4dhKSg0-IM7-l0eFAMUqZKc-KbzqOhqbt_qRw_zmh1d8/s1600/button-open.png) no-repeat left -19px;}
.tab a:hover.close {background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4E7HM8t0F-EuRfDgYJ886WNHoTjQ0evvMmCPgpsQMnaCqwIPDNsl6bu5xNQViO0Z8skb1F4C1-h_gOIqR0kHP5P8QtTviXNm524y7lnd5RAgbxhXWrgOvn6rdxINWzsoRcl97Rpkp5Q9B/s1600/button-close.png) no-repeat left -19px;}

#slide-top-panel {
position: absolute;
top: 0;
width: 100%;
z-index: 999;
text-align: center;
margin-left: auto;
margin-right: auto;
}
#panel {
width: 100%;
height: 230px;
color: #999999;
background: #272727;
overflow: hidden;
position: relative;
z-index: 3;
display: none;
}
#panel h4 {
font-size: 18px;
color: #F2F2F2;
text-align: center;
padding: 5px 0 10px;
margin: 0;
}
#panel p {
margin: 5px 0;
padding: 0px;
}
#panel a {
text-decoration: none;
color: #15ADFF;
}
#panel a:hover {
color: white;
}
#panel .content {
width: 960px;
margin: 0 auto;
padding-top: 15px;
text-align: left;
font-size: 0.85em;
}
#panel .content .left {
width: 280px;
float: left;
padding: 0 15px;
border-left: 1px solid #333;
}
#panel .content .right {
border-right: 1px solid #333;
}
#panel .content form {
margin: 0 0 10px 0;
}
#panel .content label {
float: left;
padding-top: 8px;
clear: both;
width: 280px;
display: block;
}
#panel .content input.field {
border: 1px #1A1A1A solid;
background: #545454;
border-radius: 10px;
margin-right: 5px;
margin-top: 4px;
width: 200px;
color: white;
height: 18px;
}
#panel .content input:focus.field {
background: #7F7F7F;
}
#panel .content input.button-register {
display: block;
clear: both;
height: 24px;
width: 94px;
color: white;
background: transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinPfxfFOYninySNq9g8LI0IIYiHmiQmM4nLpKkhzHheg-T7KedFuJQFSom0kTw2MltW01KqKWQipbssrdBzuyByJ1NGiztl5uL8QQDc5VyWoGvWr70Vq9ldZWv1Dh2ZX39NK9VxRjU6t-U/s1600/button-register.png) no-repeat 0 0;
text-align: center;
cursor: pointer;
border: none;
font-weight: bold;
margin: 10px auto;
}
#sliding-panel {
width: 160px;
float: left;
}
#sliding-panel2 {
width: 160px;
float: right;
}
#sliding-panel ul, #sliding-panel2 ul{
font-family: Arial, Helvetica, sans-serif;
list-style-type:none;
margin:0;
padding:0;
}
#sliding-panel ul li a, #sliding-panel2 ul li a {
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiArFGuadzyTuaQTCZcpsV2Elabr1GV6IMdl2jAiVlMAwCdu2hCHQd4ePUcnw1Ff46O9fOBC6IPVMX5wEHXSgdMQ-pHrT-YBSAHuClrwJEDXp5PNx0QThJ8CiUo3Cq7xOuMZpc9eiWpJrJM/s1600/star-bullet.png) center left no-repeat;
margin:0;
padding:3px 3px 3px 18px;
}
#sliding-panel li, #sliding-panel2 li {
display: inline;
}
#sliding-panel a, #sliding-panel2 a{
color: #999999;
text-decoration: none;
font-size: 11px;
display: block;
padding: 3px;
width: 160px;
}
#sliding-panel a:link, #sliding-panel a:visited, #sliding-panel2 a:link, #sliding-panel2 a:visited {
color: #999999;
text-decoration: none;
}
#sliding-panel a:hover, #sliding-panel2 a:hover {
color: #FFFFFF;
}

#search-box22{
margin-top: 20px;
}

#search-box22 input[type="text"] {
float: right;
background: 10px 6px #444;
border: 0 none;
font: bold 12px Arial,Helvetica,Sans-serif;
color: #777;
width: 160px;
padding: 6px 15px 6px 35px;
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 20px;
text-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2) inset;
-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2) inset;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2) inset;
-webkit-transition: all 0.7s ease 0s;
-moz-transition: all 0.7s ease 0s;
-o-transition: all 0.7s ease 0s;
transition: all 0.7s ease 0s;
}

#search-box22 input[type="text"]:focus {
width: 190px;
}

.about-author {
width: 100%;
text-transform: none;
margin-top: 15px;
}
.authorbox {
overflow: hidden;
padding: 0;
width: 100%;
}
.authorbox .authorinfo {
}
.authorbox .authorinfo img {
float: left;
margin: 4px 10px 4px 5px;
border-radius: 100%;
width: 20%;
background: #222;
padding: 5px;
}
.authorbox .authorinfo p {
margin: 0;
padding: 0 5px;
text-align: left;
}
.authorinfo p a {
text-decoration:none;
}
.authorbox h3 {
margin: 0;
display: inline-block;
}
h3.boxtitle {
font-size: 14px;
}
</style>

height: 230px; ဆိုတဲ.value ကိုအဆင္ေျပသလိုေျပာင္းလဲနိုင္ပါတယ္။


Step.6 ေနာက္ဆံုးအဆင္.အေနနဲ. Search box ထဲမွာ <body> ဆိုတဲ.ကုဒ္ေလးရိုက္ျပီးထပ္ရွာပါ။
           (www.blogger.com က Free ေပးတဲ. Awsome Inc./Water Mark အစရွိတဲ. Template ေတြမွာ
           အဲဒီ <body> ဆိုတဲ.ကုဒ္ေလးရွာေတြ.မွာမဟုတ္ပါဘူး။အဲဒီ Template ေတြမွာေအာက္ကကုဒ္
           ေလးကိုရိုက္ပီးရွာပါ)

<body expr:class='&quot;loading&quot; + data:blog.mobileClass'>

ေတြ.ပီဆိုရင္ေအာက္ကေပးထားတဲ.ကုဒ္ေတြကိုေကာ္ပီကူးယူျပီးအဲဒီ <body> သို.မဟုတ္
<body expr:class='&quot;loading&quot; + data:blog.mobileClass'> ဆိုတဲ.ကုဒ္ေတြရဲ.ေအာက္မွာ
Paste ခ်လိုက္ပါ ။


<!-- Start sliding panel -->
<div id='slide-top-panel'>
<div id='panel'>
<div class='content clearfix'>

<!-- first section -->
<div class='left' style='width:240px !important'>

<h4>Welcome to my blog!</h4>
<div class='about-author'>
<div class='authorbox'>
  <div class='authorinfo'>
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6wcYNqY01d-K2bWmsQhcfZV_vPq6r4nwWgqLkt0YwL_2vIkUCiUBIQnQuBIWOhe2Npky_Iuk3szdpNeORgSg0P4zx57-VV6Ky-Dq0vjvURQ5UL_9UoXdTq2Vekro19ZmaOPZcbiBb0-tK/s1600/profile-pic.png'/>
<h3 class='boxtitle'>Meet the Author</h3>
<p>Ut eleifend tortor aliquet, fringilla nunc non, consectetur magna. Suspendisse potenti.</p>
</div>
</div>
</div>
<p align="right" style="margin-top: 10px;">Looking for something?</p>
<form method="get" action="/search" id="search-box22">
  <input name="q" type="text" size="40" placeholder="Search..." />
</form>

</div>

<!-- second section -->
<div class='left' style='width:320px !important'>
<h4>Categories</h4>

<div id='sliding-panel'>
<ul>
<li><a href='Link URL'>Category 1</a></li>
<li><a href='Link URL'>Category 2</a></li>
<li><a href='Link URL'>Category 3</a></li>
<li><a href='Link URL'>Category 4</a></li>
<li><a href='Link URL'>Category 5</a></li>
<li><a href='Link URL'>Category 6</a></li>
<li><a href='Link URL'>Category 7</a></li>
</ul>
</div>

<div id='sliding-panel2'>
<ul>
<li><a href='Link URL'>Category 1</a></li>
<li><a href='Link URL'>Category 2</a></li>
<li><a href='Link URL'>Category 3</a></li>
<li><a href='Link URL'>Category 4</a></li>
<li><a href='Link URL'>Category 5</a></li>
<li><a href='Link URL'>Category 6</a></li>
<li><a href='Link URL'>Category 7</a></li>
</ul>
</div>
</div>

<!-- third section -->
<div class='left right' align="center">

<h4>Subscribe to this blog!</h4>
<p style="padding:0px 30px;">Receive the latest posts by email. Just enter your email below if you want to subscribe!</p>

<form action='http://feedburner.google.com/fb/a/mailverify?uri=Feed-Name' method='post' target='_blank'>
<input class='field' name='email' type='text/' value=''/>
<input name='uri' type='hidden' value='Feed-Name'/>
<input name='lang' type='hidden' value='en_EN'/>
<input class='button-register' type='submit' value='Subscribe'/></form>

<div align='center' style="clear: both;">
<a href='http://www.facebook.com/username'><img title="Follow on Facebook" src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbdGOmtrSJYzjgFLHkeeNFnqE9_r2DSSRMxU7rgK2me3Dz8SmcLmoVWUe4Nyo1Lyz9Q6UjvPnOoMofSQpvDp1HWop120Wg5ohx7qgWE_qSuqmfYe7uM6g8g_Q5zEL1ddd7tQn3dPEffbCl/s1600/Facebook.png' style='padding:5px;' width='32'/></a>
<a href='http://blog-address.blogspot.com/atom.xml'><img title="RSS Feed" src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfsOOCZjX9BnreXnO8RcaEYP24sNEH6CwEZDpRRd0eDDsyrejiLWMtXMzcNiX3w1U-gBLEVpp6m36eTSdL9aExL-yg4WbvDK0pCixD2GZzwYNLKTYfFkn8iZsA95kl3DAOI1uGkwMyb2_i/s1600/RSS.png' style='padding:5px;' width='32'/></a>
<a href='https://plus.google.com/username'><img title="Follow on Google" src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZlxmr-z69M7LbMDLqpRweGPQyB1HMJA-vXBsNRoPJyuPnoeYRUY3ame65Gr9GqrnlgtB6NMtvmBXNiG_S-Owu5XZG3ymEdJxLvE5iD3eR_87_oID8ZjXDguCs9wn6A__y6vT4V0WHx_ZI/s1600/Google-plus.png' style='padding:5px;' width='32'/></a>
<a href='http://twitter.com/username'><img title="Follow on Twitter" src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXQcjrdVYTq8UPd6sjby0dCi6asKbiR4Csp017d41lLeBvrZpy1XEppULC76A3iEa3uQL6JfE4_d5CrxqOurmF9pqdq4J1BMthuA9I8pzEn3RJPDGrzuzNskfN4Bdz7J2OYZpqo4nunJsl/s1600/Twitter.png' style='padding:5px;' width='32'/></a>
</div>

</div>
</div>
</div>

<div class='tab'>
<ul class='login'>
<li class='left'/>
<li>Hello guest!</li>
<li class='sep'>|</li>
<li id='toggle'>
<a class='open' href='#' id='open'>Open menu</a>
<a class='close' href='#' id='close' style='display: none;'>Close menu</a>
</li>
<li class='right'/>
</ul>
</div>
</div>


<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6wcYNqY01d-K2bWmsQhcfZV_vPq6r4nwWgqLkt0YwL_2vIkUCiUBIQnQuBIWOhe2Npky_Iuk3szdpNeORgSg0P4zx57-VV6Ky-Dq0vjvURQ5UL_9UoXdTq2Vekro19ZmaOPZcbiBb0-tK/s1600/profile-pic.png'/> ဒီေနရာမွာကိုယ္.ရဲ. Author Profile ပံုလင္.ခ္နဲ.အစားထိုးေပးပါ။ က်န္တဲ.
High Light ျပထားတဲ.ေနရာေတြမွာလဲကိုယ္ပိုင္လင္.ေတြနဲ.အစားထိုးေပးပါ။သေဘာေပါက္အဆင္ေျပ
ႀကမယ္လို.ယံုႀကည္ပါတယ္။

No comments :