PDA

View Full Version : Dropdown HTML control



Elbee
09-07-2010, 03:07 PM
1) Script Title: Dropdown HTML control
2) URL: http://www.dynamicdrive.com/dynamicindex1/dropdowncontrol.htm


This is going to be a stupid question but it will show you what little experience I have with javascript! I've substituted my own titles for Main Menu, Item 1, Item 2, and Item 3 as you can see.

In the script below, how would I enter the link for About the Library:
http://jaxpubliclibrary.org/lib/about.html

I assume I wouldn't use the javascript:alert('About the Library'); and place the link there...is that correct?

<div id="sample_attach_menu_parent" class="sample_attach">General Library Info</div>
<div id="sample_attach_menu_child">
<a class="sample_attach" href="javascript:alert('About the Library');">About the Library</a>
<a class="sample_attach" href="javascript:alert('Location and Hours');">Location and Hours</a>
<a class="sample_attach" href="javascript:alert('Search the Catalog');">Search the Catalog</a>
</div>

<script type="text/javascript">
at_attach("sample_attach_menu_parent", "sample_attach_menu_child", "hover", "y", "pointer");
</script>



Thanks for your help, Elbee

Elbee
09-07-2010, 03:20 PM
Thanks so much....