Results 1 to 6 of 6

Thread: slide menu lost after clicking a menu item

  1. #1
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default slide menu lost after clicking a menu item

    1) Script Title: Fold-out external menu

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

    3) Describe problem: If one of the links in the menu is clicked, the new page is loaded but the menu is not available after that. So, If I need to go back to another link on the menu, I have no option. What should be done to make the sliding in menu available for any page that I open using the links in the menu.

    Thanks,
    SSD

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    You should have the same script and CSS in every page

    ...If it was inserted in one page only, then it will only be visible in that page and not in otehr page..hope makes sense
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. #3
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your time rangana. But I would like to know if there are other ways to do it instead of inserting the script to each and every page. My project is quite huge and this solution isn't feasible to me.

  4. #4
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Yes,...make your CSS and JS external...so that when you add it in your page, you'll use only:
    JS:
    Code:
    <script type="text/javascript" src="javascript source">
    CSS:
    Code:
    <link rel="stylesheet" type="text/css" href="css source">
    Just note that in your external CSS,,,there should be no <style type="text/css"></style>

    ...and in your external JS, there should be no <script type="text/javascript"></script>

    Hope that helps
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  5. #5
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, it helped.

  6. #6
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    When I include this menu in a page where I embed a virtual earth page, the virtual earth page doesn't get loaded up. Only the fold out menu is seen. Any pointers?

    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
  •