create drop down menu in header.html!

create drop down menu in header.html!

by Chính Nguyễn Văn -
Number of replies: 0
hi!
i created drop down menu in header.html by javascript but it isn't work!code javascript:

!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<script Xlanguage="JavaScript">
function big(lyr) {
document.all[lyr].style.height='180px'; }
function small(lyr) {
document.all[lyr].style.height='32px';
}
function start() {
document.all.Layer1.style.height='32px';
document.all.Layer2.style.height='32px';
document.all.Layer3.style.height='32px'; }
</script>
</HEAD>
<!-- STEP TWO: Insert the onLoad event handler into your BODY tag -->
<BODY XonLoad="start()">
<!-- STEP THREE: Copy this code into the BODY of your HTML document -->
<div id="Layer1" style="position:absolute; width:155px; height:180px; z-index:1; left: 74px; top: 38px; background-color: #FFFFCC; layer-background-color: #FFFFCC; border: 1px none #000000; overflow: hidden" XonMouseOver="big('Layer1')"; XonMouseOut="small('Layer1')">
<div align="center"><font face="Verdana, Arial, Helvetica, sans-serif">
<a href="menu1.html">Menu 1</a>
<br>
<br>
<a href="link1.html">Link 1</a><br>
<br>
<a href="link2.html">Link 2</a><br>
<br>
<a href="link3.html">Link 3</a><br>
<br>
<a href="link4.html">Link 4</a></font></div>
</div>

Help me!Thanks!
Average of ratings: -