7/11/2015

[គន្លឹ Blogger]: របៀបដាក់ Menu style Metro

សួរស្ដី ថ្ងៃនេះ យើងសូម ធ្វើការបង្ហាញ អ្នកពីគន្លឹះ មួយគឺ របៀបដាក់ Menu style Metro នៅលើ web blogspot :

  1. សូមអ្នក ចូលទៅកាន់ គណនី Blogger របស់អ្នក ( blogger.com)
  2. បន្ទាប់មក ទៀតសូមអ្នក ចូលទៅកាន់ Template -> រើសយក Edit HTML.
  3. សូមអ្នកស្វែង រកកូដ ]]></b:skin> (ដោយចុច Ctrl + F )​ ធ្វើការស្វែងរក.
  4. សូមអ្នក Copy កូដខាងក្រោម ទៅដាក់ពីលើ កូដនោះ.
/*===MBL METRO UI Menu==*/  
 body {  
 font-family:sans-serif;  
 }  
 a {  
 text-decoration:none;  
 }  
 .mblmetromenu {  
 width:960px;  
 margin:auto;  
 }  
 @media screen and (max-width:960px) {  
 .mblmetromenu {  
 width:100%;  
 }  
 }  
 /* MblMetroMenu */  
 .MblMetroMenu {  
 position:relative;  
 }  
 .om-nav {  
 position:absolute;  
 width:100%;  
 z-index:999;  
 display:none;  
 }  
 .om-ctrlbar {  
 width:100%;  
 height:48px;  
 }  
 .om-ctrlitems {  
 margin:auto;  
 padding:0px;  
 height:48px;  
 display:inline-block;  
 text-align:center;  
 }  
 .om-ctrlitem {  
 height:48px;  
 width:48px;  
 display:none;  
 cursor:pointer;  
 float:left;  
 opacity:0.5;  
 -ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=50)" !important;  
 filter: alpha(opacity=50) !important; /* For IE8 and earlier */ }  
 .om-ctrlitem:hover {  
 opacity:0.8;  
 -ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=80)" !important;  
 filter: alpha(opacity=80) !important; /* For IE8 and earlier */ }  
 .om-activectrlitem {  
 opacity:1 !important;  
 -ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=100)" !important;  
 filter: alpha(opacity=100) !important; /* For IE8 and earlier */ }  
 .om-controlitems {  
 width:960px;  
 margin:auto;  
 }  
 .om-controlitem {  
 height:48px;  
 cursor:pointer;  
 }  
 .om-closenav {  
 float:left;  
 }  
 .om-movenext {  
 float:right;  
 }  
 .om-itemholder {  
 margin:auto;  
 padding:20px 0px;  
 }  
 @media screen and (max-width:960px) {  
 .om-closenav {  
  position:absolute;  
  z-index:9999;  
  left:0;  
  top:0;  
 }  
 .om-movenext {  
  position:absolute;  
  z-index:9999;  
  right:0;  
  top:0;  
 }  
 .om-controlitems {  
  width:100%;  
 }  
 .om-itemholder {  
  width:100%;  
 }  
 }  
 .om-centerblock {  
 display:inline-block;  
 }  
 .om-item {  
 display:none;  
 }  
 .om-showitem {  
 margin:5px;  
 float:left;  
 display:none;  
 }  
 /* END MblMetroMenu */  
 /* TILE BUTTONS */  
 /* Standar Buttons */  
 .tile-bt {  
 text-align:center;  
 cursor:pointer;  
 width:90px;  
 height:90px;  
 }  
 .tile-bt a {  
 display:block;  
 padding-top:12px;  
 text-decoration: !important;  
 }  
 .tile-bt img {  
 margin:0 auto 0 auto;  
 padding-bottom:5px;  
 height:48px;  
 width:48px;  
 position:relative;  
 display:block;  
 }  
 .tile-bt span {  
 font-size:12px;  
 padding-bottom:10px;  
 display:block;  
 }  
 .tile-bt:active {  
 opacity:0.5;  
 }  
 /* End Standard Buttons */  
 /* Large Buttons */  
 .tile-bt-large {  
 width:190px;  
 height:90px;  
 line-height:90px;  
 text-align:center;  
 cursor:pointer;  
 }  
 .tile-bt-large a {  
 display:block;  
 text-decoration: !important;  
 }  
 .tile-bt-large img {  
 vertical-align: middle;  
 margin:auto;  
 padding:0px;  
 position:relative;  
 width:48px;  
 height:48px;  
 }  
 .tile-bt-large span {  
 vertical-align: middle;  
 display:inline;  
 }  
 .tile-bt-large:active {  
 opacity:0.5;  
 }  
 /* End Large Buttons */  
 /* Extralarge Buttons */  
 .tile-bt-extralarge {  
 text-align:center;  
 cursor:pointer;  
 width:190px;  
 height:190px;  
 }  
 .tile-bt-extralarge a {  
 display:block;  
 padding-top:52px;  
 text-decoration: !important;  
 }  
 .tile-bt-extralarge img {  
 margin:0 auto 0 auto;  
 padding-bottom:22px;  
 height:80px;  
 width:80px;  
 position:relative;  
 display:block;  
 }  
 .tile-bt-extralarge span {  
 font-size:14px;  
 padding-bottom:20px;  
 display:block;  
 }  
 .tile-bt-extralarge:active {  
 opacity:0.5;  
 }  
 /* End Extralarge Buttons */  
 /* END TILE BUTTONS */  
 /* SHADOW LIST */  
 .shadow-white, .shadow-black, .shadow-blue, .shadow-green, .shadow-red {  
 /*display:inline-block;*/  
 }  
 .shadow-white:hover {  
 box-shadow:0px 0px 6px 3px #fff;  
 -webkit-box-shadow:0px 0px 6px 3px #fff;  
 -moz-box-shadow:0px 0px 6px 3px #fff;  
 -o-box-shadow:0px 0px 6px 3px #fff;  
 -ms-box-shadow:0px 0px 6px 3px #fff;  
 }  
 .shadow-blue:hover {  
 box-shadow:0px 0px 6px 3px #38D1F7;  
 -webkit-box-shadow:0px 0px 6px 3px #38D1F7;  
 -moz-box-shadow:0px 0px 6px 3px #38D1F7;  
 -o-box-shadow:0px 0px 6px 3px #38D1F7;  
 -ms-box-shadow:0px 0px 6px 3px #38D1F7;  
 }  
 .shadow-green:hover {  
 box-shadow:0px 0px 6px 3px #AACA37;  
 -webkit-box-shadow:0px 0px 6px 3px #AACA37;  
 -moz-box-shadow:0px 0px 6px 3px #AACA37;  
 -o-box-shadow:0px 0px 6px 3px #AACA37;  
 -ms-box-shadow:0px 0px 6px 3px #AACA37;  
 }  
 .shadow-red:hover {  
 box-shadow:0px 0px 6px 3px #E81750;  
 -webkit-box-shadow:0px 0px 6px 3px #E81750;  
 -moz-box-shadow:0px 0px 6px 3px #E81750;  
 -o-box-shadow:0px 0px 6px 3px #E81750;  
 -ms-box-shadow:0px 0px 6px 3px #E81750;  
 }  
 .shadow-black:hover {  
 box-shadow:0px 0px 6px 3px #444;  
 -webkit-box-shadow:0px 0px 6px 3px #444;  
 -moz-box-shadow:0px 0px 6px 3px #444;  
 -o-box-shadow:0px 0px 6px 3px #444;  
 -ms-box-shadow:0px 0px 6px 3px #444;  
 }  
 /* END SHADOW LIST */  
 /* BACKGROUND LIST */  
 /* Solid Colors */  
 .solid-blue { background:#00BBE2; }  
 .solid-blue-2 { background:#2C84EE; }  
 .solid-darkblue { background:#044E94; }  
 .solid-violetred { background:#781766; }  
 .solid-red { background:#E51400;}  
 .solid-red-2 { background:#E81750; }  
 .solid-pink { background:#FF539B; }  
 .solid-purple { background:#D02090; }  
 .solid-orange { background:#FB8F02; }  
 .solid-orange-2 { background:#FF6600; }  
 .solid-orange-3 { background:#DD5F37; }  
 .solid-coral { background:#CD5B45; }  
 .solid-green { background:#67B239; }  
 .solid-green-2 {background:#96BF01; }  
 .solid-darkgreen { background:#016C38; }  
 .solid-olive { background:#999900}  
 .solid-grass { background:#CDCD00; }  
 .solid-darkred { background:#5F0000; }  
 .solid-gold { background:#FEE9AE; }  
 .solid-yellow { background:#F7D100; }  
 .solid-black { background:#000; }  
 .solid-smoke { background:#F5F5F5; }  
 /* End Solid Colors */  
 /* MISC */  
 .clearspace { clear: both; }  
 .floatleft { float:left; }  
 .floatright { float:right; }  
 .none { display: none !important; width:0px !important; }  
 .light-text {  
 color:#fff;  
 }  
 .dark-text {  
 color:#1e1e1e;  
 }  
 .gradient {  
 background: -moz-linear-gradient(-45deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%); /* FF3.6+ */  
 background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(100%,rgba(255,255,255,0.3))); /* Chrome,Safari4+ */  
 background: -webkit-linear-gradient(-45deg, rgba(255,255,255,0) 00%,rgba(255,255,255,0.3) 100%); /* Chrome10+,Safari5.1+ */  
 background: -o-linear-gradient(-45deg, rgba(255,255,255,0) 0%,rgba(255,255,255,0.3) 100%); /* Opera 11.10+ */  
 background: -ms-linear-gradient(-45deg, rgba(255,255,255,0) 0%,rgba(255,255,255,0.3) 100%); /* IE10+ */  
 background: linear-gradient(-45deg, rgba(255,255,255,0) 0%,rgba(255,255,255,0.3) 100%); /* W3C */  
 }  
 .margin-5 { margin:5px; }  
6. រួចចុចប៊ូតុង Save Template.
7. បន្ទាប់មកទៀតសូមអ្នកចូល​ទៅ Layout រួច​ចុច Add a Gadget.

 8. រួចស្រូល​​ចុះ (Scroll) រក​មើល gadget ដែល​មាន​ឈ្មោះ​ថា HTML/JavaScript រួចចុច​លើ​វា​ដើម្បី​បើក
9. ហើយ copy កូដខាងក្រោមទៅដាក់ក្នុងប្រអប់ HTML/JavaScript.
<!-- dcmetromenu -->  
 <div class="dcmetromenu">  
 <div data-navid="om-nav" class="tile-bt-extralarge solid-violetred shadow-black margin-5 floatleft DCMetroMenu">  
 <a href="http://www.tipsntricks4fun.in/2013/01/blogger-window-8-look-metro-menu-bar.html" class="gradient">  
 <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVXSf9xDrVMkitLDZXxzRtpJBhrKOkzpGPpnyKcRwhd0ACh9BIwdwvx_vtYKXmT-ucv-vbzRoCsHUzqg8p-7-usTQLR_o8qJySY0kgt_njP1ZNTtEhg0ZOL8Pwg-JAn-DGX9JSn-aUmio/s1600/home-TNT4F-Tipsntricks4fun.in.png" alt="" />  
 <span class="light-text">Homepage</span>  
 </a>  
 </div>  
 <div data-navid="om-nav" class="tile-bt-large solid-coral shadow-red margin-5 floatleft DCMetroMenu">  
 <a href="#" class="gradient">  
 <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKWnogWQ-lQzzYO4f4xmJY-vUT8NPG3Ttn58zkGkjsWcAP_BC7dtniBnQdq5SdQhZoP-Y4nl5tpwtqpatmJTDE0CYYQvvzThaWn6Uiw31MMGcnGOqmwL_3ZxUAuZX3vpUlPkVyoogkd8o/s1600/messanger-TNT4F-Tipsntricks4fun.in.png" alt="" />  
 <span class="light-text">About US</span>  
 </a>  
 </div>  
 <div data-navid="om-nav2" class="tile-bt solid-purple shadow-blue margin-5 floatleft DCMetroMenu">  
 <a href="#" class="gradient">  
 <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMQcrXgTZPyH1LcrbuD0awovVyJsmGZWs3MHDQZUVOuBGMqTXQCi7V9oUWioE7qnBWCvNfvzTr7RSUTLyEmprHSzIvlHb7soVQJvBlS282OU8mT5rtD9-9A1ffE_MFvtcDQJiTqVfcpe4/s1600/rss-TNT4F-Tipsntricks4fun.in.png" alt="" />  
 <span class="light-text">Rss Feeds</span>  
 </a>  
 </div>  
  <div data-navid="om-nav" class="tile-bt-large solid-red shadow-red margin-5 floatleft DCMetroMenu">  
 <a href="#" class="gradient">  
 <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhD4b1PcxIMET7t4mFBtqD7Yn4yx1iaUieZYNkszhA0PPb-q9uLJcYKpGTKMxtGR6OWgFwjBM-DjRVC4qerr4oO9m8VkZI4Vba47tJiZRXBlena8t32h_kyqWKoCBgULkSXt9fTy6yhJuU/s1600/search-TNT4F-Tipsntricks4fun.in.png" alt="" />  
 <span class="light-text">Search</span>  
 </a>  
 </div>  
  <div data-navid="om-nav2" class="tile-bt solid-darkred shadow-red margin-5 floatleft DCMetroMenu">  
 <a href="#" class="gradient">  
 <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6dVDd0Ucl2Z16MbpLlQ-Poqjp7dLaTAPOeqK1kHhqBPb3q-84JGnDJQDt5ebWiRDxwQTw0odijwE3oztX1GikLMqD5LVYkW1Ce0JP_lx1wzx0Btm3eiulja3uV1GONYopuS9Gd8-xLxU/s1600/mail-TNT4F-Tipsntricks4fun.in.png" alt="" />  
 <span class="light-text">Contact US</span>  
 </a>  
 </div>  
 <div data-navid="om-nav2" class="tile-bt solid-black shadow-black margin-5 floatleft DCMetroMenu">  
 <a href="#" class="gradient">  
 <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhP7sMUTJTNPvl5lTDpAvq8nHXKaNQc9TRcp55BAUVBbnCjiMOiueUN0ch5I3GG9w0fj2SfkVBe63EJSgMgPDYRVrUS-MnOkGrcfreVchEGXk0UicBS850RXUW0HTHiOVAPIpzCie24bw/s1600/help-TNT4F-Tipsntricks4fun.in.pn" alt="" />  
  <span class="light-text">Get HELP</span>  
 </a>  
  </div>  
 <div data-navid="om-nav2" class="tile-bt solid-orange shadow-black margin-5 floatleft DCMetroMenu">  
 <a href="#" class="gradient">  
 <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9Y-Q4GhCzv9IoQ9hkhdClIEXSSJoTSE6adhrCSRosGg4bazwY-wS80C6IIjm7gCaH3O1m861LJ5QepJr25eDKjsleTU9TaBZMKGw7lt-IoxAQ5HXff80XXvnsHRHtFvWN0F2K1BQxS48/s1600/youtbe-TNT4F-Tipsntricks4fun.in.png" alt="" />  
 <span class="light-text">YouTube</span>  
 </a>  
 </div>  
 <div data-navid="om-nav2" class="tile-bt solid-darkblue shadow-blue margin-5 floatleft DCMetroMenu">  
 <a href="#" class="gradient">  
 <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPG5DouXEZrndmIb6zHxLM0ob6kW3a3gSnWfbmOQFDztg6wYHbG2eTrImCKKLcwkiHCX6PouZkXILS6vSvmeY00K8EKyP9LT9kyZM87HhEVIMtACEWIXmgx09SWH_oqTVWMXmS7Qyvfv4/s1600/face-TNT4F-Tipsntricks4fun.in.png" alt="" />  
 <span class="light-text">Facebook</span>  
 </a>  
 </div>  
 <div data-navid="om-nav" class="tile-bt-large solid-blue shadow-blue margin-5 floatleft DCMetroMenu">  
 <a href="#" class="gradient">  
 <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvd7E1_rha1NjGmj4Ybi-YwPQ9lF_A7VJG9BawSWFhVMOdV8_FjwPV1lGy7NWAypFnZYmP2ijkkkwH2JICJ0_KLAnaOun15zmfUjdGO2_sI53zrLIj2Dsffh43WKWIMlwwRxGilVVJzJU/s1600/photo-TNT4F-Tipsntricks4fun.in.png" alt="" />  
 <span class="light-text">Photos</span>  
 </a>  
 </div>  
 <div data-navid="om-nav2" class="tile-bt solid-olive shadow-green margin-5 floatleft DCMetroMenu">  
 <a href="#" class="gradient">  
 <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqf5MvRxDi793quI-VvFAzA0HnOdEP-5yswax5v_03VNg9O_a8t_GE2tVzfnmn6Um9K367ArgNMoaayCHF0-l59riIcKcPdHbYJsmIBkPhWNY9hEkl8YDRht3okcKla8PNaHv_umcMR9I/s1600/music-TNT4F-Tipsntricks4fun.in.png" alt="" />  
 <span class="light-text">Music</span>  
 </a>  
  </div>  
 <div data-navid="om-nav" class="tile-bt-large solid-blue-2 shadow-blue margin-5 floatleft DCMetroMenu">  
 <a href="http://www.tipsntricks4fun.in/2013/01/blogger-window-8-look-metro-menu-bar.html" class="gradient">  
 <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgu1s8OYBAvuZc3pzMcEiD6cPRzpN3tnoq7GBdcohzxQ0PSFFQl0HBv1tBmq9_0471h5Aj-sHkRjoBl5uVIySBS6MXn0V27YtEagPqtzFdoMBICAlKBr75WvbtpXdpdmSMet2DxhgcKB0w/s1600/TNT4F-Tipsntricks4fun.in.png" alt="" />  
 <span class="light-text">Tips And Tricks</span>  
 </a>  
 </div>  
     <!-- End DCMetroMenu -->  
  </div>  
 <!-- END dcmetromenu -->  

 10. សូមអ្នកចុច save ជាការស្រេច ។ 
* ចំណាំ : ចំពោះកូដដាក់ Widget នេះអ្នកអាចដាក់នៅទីតាំងណាមួយធំ ឬសមរម្យ ។

0 comments:

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More