PDA

View Full Version : Drop Down Tabs: Drop down menus do not display



Surly1
04-05-2009, 06:17 PM
1) Script Title: Drop Down Tabs (5 Styles)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/droptabmenu.htm

3) Describe problem: In a nutshell, the drop down menus are not appearing. They are either (1) not displaying at all; or (2) are disappearing behind the images; I don't really know which is the case.

I believe I have followed all the instructions provided on DD. I have tried moving the drop down DIVs to just above the </body> tag. No luck.

My test site is http://webtrain.austincc.edu/~dseago/final_project/index_worktest.html

Just in case:
http://webtrain.austincc.edu/~dseago/final_project/stylesheet_simple.css

http://webtrain.austincc.edu/~dseago/final_project/halfmoontabs.css

http://webtrain.austincc.edu/~dseago/final_project/dropdowntabs.js

By the way, I'm a student who is new at all this, so any help with figuring out what I have done wrong will be most appreciated!

ddadmin
04-06-2009, 07:49 AM
Ah took me a while to finally track down the problem. Your initialization code at the very bottom of the page is incorrect:


<script type="text/javascript" src="client_files/dropdowntabs.js">
//SYNTAX: tabdropdown.init("menu_id", [integer OR "auto"])
tabdropdown.init("moonmenu", auto)
</script>

It should just be:


<script type="text/javascript">
//SYNTAX: tabdropdown.init("menu_id", [integer OR "auto"])
tabdropdown.init("moonmenu", 0)
</script>

Surly1
04-06-2009, 11:48 PM
That worked! I cannot thank you enough! And thanks for the great scripts -- they've been a huge help with my project.