Senin, 30 April 2012

Cara pasang menu bar dengan drop down versi pink



Untuk memasang menu bar dengan drop down versi pink ,hanya ikut beberapa langkah yang di tunjukkan di bawah.

p/s: Sila save script template anda.

Langkah 1

Log in blog => Dashboard => Layout => Edit HTML.

Langkah 2

Dengan menggunakan keyboard, tekan kekunci Ctrl+F dan taip atau paste kod ]]></b:skin> . Seterusnya, tekan Enter.

Langkah 3

Salin kod berwarna biru di bawah dan paste di atas atau sebelum kod ]]></b:skin> (rujuk langkah 2)


#pinkmenubar{
/*float: left;*/
/*width: 100%;*/
margin: 0 0 10px 0 ;
padding: 2px 2px 2px 20px;
height: 28px;

background-color: #FEE4F6;

background-image: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrel17rU3rE_1pCG98jWAwdfzqX06WmMFTY-ekGZteyXu26j-gFSj0pAWqG835r3tNHIrhCOxi3TxcuYhZjizxZMVxM41ZSy8mQuiKjkXXnQBU3c0-IxcfBes0OmsocvM74qS7HT0NOP8/s400/navbg.png");
background-repeat: repeat-x;
background-position: bottom;
border-color: #E3099E;
border-width: 1px 0 1px 0;
border-style: solid;
text-transform: lowercase;
line-height: 100%;
width: auto;

}

#pinkmenubar > li{
float: left;
width: 130px;
height: 28px;
margin: 0;
padding: 0;
list-style: none;
position: relative;
}

#pinkmenubar > li > a{
display: block;
width: 99px;
height: 15px;
padding: 5px 24px 8px 7px;

background-image: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbXvnBbJeNuUdPxUi_O1SETGIlEO2Quu-DEAQCGzYmsONGRfOfph8vr_umlpFyvqb5_hUx0VaopC0OkIiU2HKRUxX2G1BG_huigYiMkWHPlb_0KvZqNwgwcrEeFVinuOrKmtFmK-1DgB4/s400/buttonbg.png");
font-size: 13px;
color: #FA69CC;
text-decoration: none;
font-family: Trebuchet MS;

}
#pinkmenubar > li:hover > a{
background-image: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6DPz-IurLwtFgbSQXylkbc37YvwgrQuw_R8Npi0AVGyHnkozKDQHQgyWO9or5DlzFnws6PYKXM5nE2MMC83VFyK50A-Mo8ug1I-d5gUzk3araIFmmb_oB7JHseq_mAJ4zGY-WiaK1U18/s400/buttonbghover.png");
color: #E3099E; 

}

ul#pinkmenubar > li > ul{

/*

position: absolute;
right: 5px;
top: 4px;


*/

float: right;
width: 17px;
height: 20px;


margin-top: -24px;
margin-right: 5px;



padding: 0;

background-image: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQEEFSC-iwwnqfFlPi-Fiq5X50euPUgDNgDzqCTexE74boGgyWO6hisMDfBxkqlPJpKketDHBpe2OKN50Zq4B8mR7_d3hqkgcOl61URPKZup4lSe4deVtj9ppmv_l2lfofNlqDFn43Uvw/s400/dropdown.png");
z-index: 50;

overflow: hidden;

}
ul#pinkmenubar > li > ul:hover{

background-image: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRPSMsybzTYEfAKk34IEUiItB5zcnW67vr1bJpneLpKr13BanIAa8k87iPwZWdD7MdeyZwG1V8eL1derWLxbYqNLvukdfjUZeFBQlfFPwjMa-VQUMzZZfLD0oBZU4oYBW9Y4X00cl256A/s400/dropdownhover.png");
overflow: visible;

}


ul#pinkmenubar li ul li{
position: absolute;
margin-left: -9000px; 

ul#pinkmenubar > li > ul:hover > li{
display: block;
width: 117px;
margin: 0 0 0 -99px;
padding: 0;
position: relative;
z-index: 500;

}

ul#pinkmenubar > li > ul:hover > li:first-child{
margin-top: 18px;
padding-top:3px;

background-image: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhg3MtKCi6215ITbvgc7M661ObaVSeC2f0ZnPwu2YjmHjfqsfu4RsBcdasFU9UhQF_JLWBBVP4GRSNhL-TyNwroBU0jSl9aErlPwu4I4RlmKdbbKM1pLkTC8rI1b3GLl7GGqxONZINpNJk/s400/topsubmenu.png");
background-repeat: no-repeat;
background-position: 100% 0;

}
ul#pinkmenubar > li > ul:hover > li:last-child{

padding-bottom:3px;

background-image: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpc_AROOAKnJlHP_p94WCjP2SNTX9ZZiaoRd7CbsLEmaumYCNUfsfVF8OVTkoXkO4Mhu2QIMcCzySRWKaIdmXNyA9H1kJO3l6eRQLuf2fUa2F4OWyj-nDGP3LMOhbO6FN9lgvhixsnEv8/s400/bottomsubmenu.png");
background-repeat: no-repeat;
background-position: 0 100%;

}
ul#pinkmenubar > li > ul:hover > li:last-child:hover{
background-image: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUc92eYRYNomdx7IovQbVrxJ9P5V22zKjBHpCw1cZnJ00LvCQSrzga6Yh51ullh3NYNLp2z7_pvCMMkti4lSz3hYJ8pCQVAf7a6TUWeECGcnwj7DX7_gxwpBPd7Nyf3xMdDu29rLt1s_E/s400/bottomsubmenuhover.png");
}

ul#pinkmenubar > li > ul:hover > li > a{
display: block;
background-color: #FFF5FC;
border-color: #E3099E;
border-width: 0 1px 0 1px;
border-style: solid;
padding: 1px 4px 1px 4px;
margin: 0;
font-family: Trebuchet MS;;
text-decoration: none;
font-size: 12px;
background-image: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnKL33z35tKw-BjvMH288pVkuw0U_dKZqASjkVU3zc7qC08RwzFajZnINzm8tdtjhjhgS036eova-boNPjAMZAw2jiGGiK5b4XyZM_2koe7D5-v11zzRauIFn8KdSYDZGoH8t0U4YqwQI/s400/submenubutton.png");
color: #E3099E;
}
ul#pinkmenubar > li > ul:hover > li > a:hover,
ul#pinkmenubar > li > ul:hover > li:hover > a{
background-image: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiloAKFOkkIowrAJeCkYfznZBaQS0NQs2RibB5VUEcXlbPDVYovBhxdZQRDbKbHqO8rss0u5fzzGTzQT5uYRT20-WMbXDlZrxKL0UMonEl64rhLXLUTSXMUwl1sIrxuDrG4f2i-SVGStYA/s400/submenubuttonhover.png");
}

code.pre {
white-space: pre;
background-color: #f8f8f8;
display: block;
line-height: 140%;
}

Langkah 4

Salin kod berwarna merah di bawah dan paste pada notepad. Edit kod yang di bold dengan menggantikan URL dan title anda.


<ul id='pinkmenubar'>
<li ><a href='masukkan URL di sini'>HOME</a></li>

<li ><a href='masukkan URL di sini'>about</a>
<ul>
<li><a href='masukkan URL di sini'>Squirrel?</a></li>
<li><a href='masukkan URL di sini'>Seamus</a></li>
<li><a href='masukkan URL di sini'>Portfolio</a></li>
<li><a href='masukkan URL di sini'>Contact</a></li>
</ul>
</li>

<li ><a href='masukkan URL di sini'>play ground</a>
<ul>
<li><a href='masukkan URL di sini'>css play</a></li>
<li><a href='masukkan URL di sini'>xsl&lt;/a></li>
<li><a href='masukkan URL di sini'>backgrounds</a></li>
<li><a href='masukkan URL di sini'>flash</a></li>
</ul>

</li>
<li ><a href='masukkan URL di sini'>rants</a></li>

</ul>

Langkah 5

Sekali lagi, dengan menggunakan keyboard, taip atau paste kod <div id='content-wrapper'>

Langkah 6

Salin kod yang telah siap di edit pada langkah 4 tadi dan paste kod tersebut di bawah atau selepas kod <div id='content-wrapper'>

Akhir sekali klik Preview dan jika tiada mesej Error yang terpapar, klik saja Save.


p/s:

Jika kod <div id='content-wrapper'> tiada pada script template anda, gantikan dengan <div id='header-wrapper'> . Seterusnya cari penutup kod <div id='header-wrapper'> iaitu </div>

Contoh:

<div id='header-wrapper'><b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true' title='my test page (Header)' type='Header'/>
</b:section>
</div>
 -----> Penutup

Paste kod yang telah siap di edit pada langkah 4 tadi dan paste di bawah atau selepas </div>

sumber...http://maribinablog.blogspot.com

0 komentar:

Posting Komentar