Cara Buat Dropdown Menu

Assalamualaikum!


Step 1;

Design > Page Element > Add a Gadget > HTML / JavaScript


Step 2;

Masukkan kod nih :

<select onchange="document.location.href=this.options[this.selectedIndex].value;">
<option selected />Tajuk
<option value="link 1" />link name
<option value="link 2" />link name
<option value="link 3" />link name
<option value="link 4" />link name
</select>


Step 3;

Kod bold biru = Masukkan link then letak nama link.


p/s : nak tambah link = copy paste coding <option value="link" />link name sebelum </select> 

0 comment/s:

 

Template by BloggerCandy.com