Indonesia
<style type="text/css"> .mainDiv { lebar:160px; } .topItem { lebar:160 piksel; tinggi:22 piksel; kursor:penunjuk; latar belakang: #467BF2; dekorasi teks: tidak ada; warna: putih; berat font: tebal; font-family:"GOTHIC"; } .dropMenu { latar belakang:#D9D9D9; perbatasan-atas:1px padat #467BF2; perbatasan-kiri:1px solid #92B1F8; perbatasan-kanan:1px solid #92B1F8; perbatasan-bawah:1px solid #92B1F8; } .subMenu { tampilan: tidak ada; } .subItem { padding-kiri:5px; kursor:penunjuk; berat font: tebal; dekorasi teks: tidak ada; warna: hitam; } .subItem a { dekorasi teks: tidak ada; warna: hitam; } .subItemOver { kursor:penunjuk; warna: biru; dekorasi teks: garis bawah; berat font: tebal; padding-kiri:5px; } .subItemOver a { warna:biru; } .drop { batas kiri:1 piksel hitam pekat; perbatasan-kanan:1px hitam pekat; } </style> <script Language="javascript"> //javascript lainnya dari http://www.downcodes.com var TIMER_SLIDE = null; var OBJ_SLIDE; var OBJ_VIEW; varPIX_SLIDE = 10; //ini adalah jumlah slide/DELAY_SLIDE var NEW_PIX_VAL; var DELAY_SLIDE = 30; //ini adalah waktu antara setiap panggilan ke slide var DIV_HEIGHT = 22; //nilai tidak relevan var SUB_MENU_NUM =0; var RE_INIT_OBJ = nol; var bMenu = document.getElementById("curMenu"); var MainDiv,SubDiv //DD menambahkan kode document.write('<div id="tempcontainer" class="mainDiv" style="visibility:hidden; position: absolute"></div>') function Init(objDiv) { jika (TIMER_SLIDE == batal) { SUB_MENU_NUM = 0; MainDiv = objDiv.parentNode; SubDiv = MainDiv.getElementsByTagName("DIV").item(0); SubDiv.onclick = SetSlide; OBJ_SLIDE = MainDiv.getElementsByTagName("DIV").item(1) OBJ_VIEW = OBJ_SLIDE.getElementsByTagName("DIV").item(0); document.getElementById("tempcontainer").innerHTML=MainDiv.getElementsByTagName("DIV").item(2).innerHTML //DD menambahkan kode DIV_HEIGHT=document.getElementById("tempcontainer").offsetHeight //DD menambahkan kode untuk ( i=0;i<OBJ_VIEW.childNodes.length;i++) { if (OBJ_VIEW.childNodes.item(i).tagName == "SPAN") { SUB_MENU_NUM ++; OBJ_VIEW.childNodes.item(i).onmouseover= UbahGaya; OBJ_VIEW.childNodes.item(i).onmouseout= ChangeStyle; } } NEW_PIX_VAL = parseInt(MainDiv.getAttribute("status")); } } function SetSlide() { if (window.TIMER_SLIDE) clearInterval(TIMER_SLIDE) //DD menambahkan kode if (TIMER_SLIDE == null && this.parentNode == MainDiv) TIMER_SLIDE = setInterval('RunSlide()', DELAY_SLIDE); lain { RE_INIT_OBJ = ini; setTimeout('ReInit()', 200); } } fungsi ReInit(obj) { Init(RE_INIT_OBJ); TIMER_SLIDE = setInterval('RunSlide()', DELAY_SLIDE); RE_INIT_OBJ = nol; } fungsi RunSlide() { jika (OBJ_VIEW.getAttribute("state") == 0) { NEW_PIX_VAL += PIX_SLIDE; OBJ_SLIDE.style.height = NEW_PIX_VAL; if (NEW_PIX_VAL >= DIV_HEIGHT) //DD kode yang diubah { clearInterval(TIMER_SLIDE); TIMER_SLIDE = nol; OBJ_VIEW.style.display = 'sebaris'; OBJ_VIEW.setAttribute("status","1") MainDiv.setAttribute("status",NEW_PIX_VAL); } } else { OBJ_VIEW.style.display = 'tidak ada'; BARU_PIX_VAL -= PIX_SLIDE; if(NEW_PIX_VAL > 0)OBJ_SLIDE.style.height = NEW_PIX_VAL; jika (NEW_PIX_VAL <= 0) { NEW_PIX_VAL = 0; OBJ_SLIDE.style.height = NEW_PIX_VAL clearInterval(TIMER_SLIDE); TIMER_SLIDE = nol; OBJ_VIEW.setAttribute("status","0") MainDiv.setAttribute("status",NEW_PIX_VAL); } } } function ChangeStyle() { if (this.className == this.getAttribute("classOut")) this.className = this.getAttribute("classOver"); lain ini.className = ini.getAttribute("classOut"); } </skrip> <!--------Menu Mulai----------> <div class="mainDiv" state="0"> <div class="topItem" classOut= "topItem" classOver="topItemOver" onMouseOver="Init(ini);" >网页特效</div> <div class="dropMenu" > <div class="subMenu" state="0"> <span class="subItem" classOut="subItem" classOver="subItemOver"><a href= "http://www.downcodes.com">图形图像</a></span><BR /> <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http ://www.downcodes.com">鼠标事件</a></span><BR /> <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http:/ /www.downcodes.com">Penggunaan</a></span><BR /> <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://www .downcodes.com">导航菜单</a></span><BR /> <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://www.downcodes .com">文字效果</a></span> </div> </div> </div> <!--------Menu Akhir----------> < BR /> <!--------Menu Mulai----------> <div class="mainDiv" state="0"> <div class="topItem" classOut="topItem " classOver="topItemOver" onMouseOver="Init(ini)" >网页教学</div> <div class="dropMenu" > <div class="subMenu" state="0"> <span class="subItem" classOut ="subItem" classOver="subItemOver"><a href="http://www.downcodes.com">Penggunaan</a></span><BR /> <span class="subItem" classOut=" subItem" classOver="subItemOver"><a href="http://www.downcodes.com">网络编程</a></span><BR /> <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://www.downcodes.com">图形图像</a></span> </div> </div> </div> <!---- ----Menu Akhir----------> <BR /> <!--------Menu Mulai----------> <div class="mainDiv " state="0"> <div class="topItem" classOut="topItem" classOver="topItemOver" onMouseOver="Init(ini)" >网络开发</div> <div class="dropMenu" > <kelas div ="subMenu" state="0"> <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://www.downcodes.com">网页设计</a> </span><BR /> <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://www.downcodes.com">艺术创作</a></ span><BR /> <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://www.downcodes.com">电脑网络</a></span> </div> </div> </div> <!--------Menu Akhir---------->