Results 1 to 7 of 7

Thread: linking drop down menu

  1. #1
    Join Date
    Oct 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default linking drop down menu

    hi.

    i have a drop down menu using .js and css files. since it has to be updated very often i've searched ways putting a "link" on all webpages using that menu, so that would have just a single root file that i would need to change once.

    i've already tryed using the ssi <!--#include file="menu.htm"--> on shtml and the php <?php include("menu.htm"); ?> comand, they work perfectly on firefox, and on IE7, but on Ie 6 the menu just doesn't drop down. (if i use the menu file, or simply put the menu code into a html page it works on IE6).

    any idea on how to correct this? or ay other suggestions for a simple way of updating a menu?

    cheers.

  2. #2
    Join Date
    Oct 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

  3. #3
    Join Date
    May 2007
    Location
    England, UK
    Posts
    235
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default

    Probably the best idea is to put the menu on the page so you know it works and then call just the values from a database e.g. MySQL.

  4. #4
    Join Date
    Oct 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    is there any other way? i've never worked with dabases, and so what you wrote was pretty much like chinese to me.


    thanks

  5. #5
    Join Date
    May 2007
    Location
    England, UK
    Posts
    235
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default

    If you are using php e.g.

    PHP Code:
    include("menu.php"); 
    it should work because the html from the menu.php page is added at the server end, even before it gets to the browser, so it should work as though it was always on the page.

    However databases can be very useful, might be worth looking into it. There are plenty of tutorials online, here's one i found by doing a google search. http://www.freewebmasterhelp.com/tutorials/phpmysql

    try changing the menu.htm to menu.php
    not sure if it makes any differance but it won't hurt to try.

  6. #6
    Join Date
    Oct 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yes, i've tryed it before the menu.php file before! that was the first thing i used, but it didn't work. i've tryed it both on shtml and php pages. i'll look into the tutorial you suggested! thanks.

    i maybe doing something wrong though with that...

  7. #7
    Join Date
    Oct 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i kind of understand the tutorial you showed, but i can't use and adapt it to my specific problem, that seems far to advanced for me.

    isn't there any other way of fixing the IE problem?

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
  •