PDA

View Full Version : simple drop down



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..

Veronica
05-31-2007, 01:56 PM
Did you add the external .js file? You get it from the DD page by clicking the link that says Download. Without that .js file, it won't work