Results 1 to 2 of 2

Thread: jQuery Multi Level CSS Menu

  1. #1
    Join Date
    May 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default jQuery Multi Level CSS Menu

    Hi all

    Sorry but im a newbi here and speak not good english.

    how can I make a CSS menu in an HTML embed page, so I do not need to integrate the code on each page.


    Canne somme one help my?

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,162
    Thanks
    263
    Thanked 690 Times in 678 Posts

    Default

    You need to look at templates, or templating. It's not simple, but it will be required.

    Two options are SSI (server side includes) or PHP includes.

    You could also do a more complicated approach where your pages are all served from one location (one page: the template) and the content is stored somewhere else, such as in a database, and included into that page.

    CMS systems like word press might help. But they aren't necessarily the easiest method.

    You can also use an iframe/frameset, although that is generally not a good idea (because it doesn't always work well in every browser, and it is an older method not recommended any more). That wouldn't require any extra setup though.

    Finally, you could use a single Javascript file that would generate the menu on the page and dynamically include all of the CSS and JS files you need. But that's actually very complicated, though it would avoid serverside code (like PHP or SSI). But that also means relying entirely on Javascript, so a computer without Javascript would see nothing.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •