Results 1 to 3 of 3

Thread: Drop down menus not appearing for pages in subdirectories

  1. #1
    Join Date
    Jan 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Drop down menus not appearing for pages in subdirectories

    1) Script Title: Smooth Navigational Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...smoothmenu.htm

    3) Describe problem:
    I can get the script to work no problem when placed in my base domain as such:
    http://www.infofornyc.com/navmenuprob.html

    When I copy the exact same html page and place it in a subdirectory as such, the drop downs no longer work: http://www.infofornyc.com/travel/navmenuprob.html

    Any ideas? I don't want to have multiple copies of the CSS files everywhere. I hope it's nothing too hard to fix.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    There could also be other problems. But one certainly is that on the non-working page the highlighted:

    Code:
    </div></div><!-- End Footer --><!-- #EndLibraryItem --> 
    <!--[if !IE]> -->
    <script type="text/javascript" src="style/js/jquery.corner.js"></script>
    <!-- <![endif]-->
    <script type="text/javascript" src="style/js/scripts.js"></script>
    </body>
    </html>
    is a 404 Not Found. On the working page it isn't. It contains (among other things) the initialization for the menu, the:

    Code:
    ddsmoothmenu.init({
    	mainmenuid: "menu",
    	orientation: 'h',
    	classname: 'menu',
    	contentsource: "markup"
    })
    If you were to change it to:

    Code:
    </div></div><!-- End Footer --><!-- #EndLibraryItem --> 
    <!--[if !IE]> -->
    <script type="text/javascript" src="style/js/jquery.corner.js"></script>
    <!-- <![endif]-->
    <script type="text/javascript" src="../style/js/scripts.js"></script>
    </body>
    </html>
    that should take care of it.

    The browser cache may need to be cleared and/or the page refreshed to see changes.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    infofornyc (01-16-2012)

  4. #3
    Join Date
    Jan 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    That's it. Thanks for taking the time. I had purchased this template and didn't realize that some of the javascript was on the bottom of the page. I'll check more thoroughly next time. Thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •