PDA

View Full Version : Dropdown menus disappearing in CMS



egrossman
04-11-2011, 06:28 PM
1) Script Title: Flex level drop down menu

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

3) Describe problem: Hi all, I implemented this menu and got it working just the way I wanted on my test page, here: www.yeled.org/yeledart/index2.html
However, when I transferred it into my CMS, CMS Made Simple, something appears to have gone wrong; now, when I mouse over the drop-down menus, they disappear: http://yeledart.com/
Any suggestions as to what I might have done wrong would be appreciated.
Thanks

azoomer
04-11-2011, 08:23 PM
Looking at the sourcecode of your page I can see two instances of the following


<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

<script type="text/javascript" src="http://yeledart.com/uploads/flexdropdown.js">

/***********************************************
* Flex Level Drop Down Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/

</script>

If you delete the second instance of this I think it should be working. At least it works on my pc when I do it.
Another comment on the code is that you should put the "on page css" in the head of the document.

egrossman
04-12-2011, 01:11 PM
You nailed it! That took care of it. Once you pointed it out to me, I realized what I had done--I had included the script and menu html in the homepage, but then took it out and created a separate menu. Looks like I left a copy of the script behind, though.
Thank you!