sirup_segar
05-30-2007, 09:29 AM
hi, i got the code from http://www.dynamicdrive.com/dynamicindex1/dropdowncontrol.htm to make a simple drop down menu.
<div id="menu_parent">Main Menu</div>
<div id="menu_child">
<a href="#">Item 1</a>
<a href="#">Item 2</a>
<a href="#">Item 3</a>
</div>
<script type="text/javascript">
at_attach("menu_parent", "menu_child", "hover", "y", "pointer");
</script>
when i copy-and-paste to my page, the menu is not the same as the sample. it is horizontally visible. what's wrong with my page? :( thanks..
<div id="menu_parent">Main Menu</div>
<div id="menu_child">
<a href="#">Item 1</a>
<a href="#">Item 2</a>
<a href="#">Item 3</a>
</div>
<script type="text/javascript">
at_attach("menu_parent", "menu_child", "hover", "y", "pointer");
</script>
when i copy-and-paste to my page, the menu is not the same as the sample. it is horizontally visible. what's wrong with my page? :( thanks..