Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    seperate global file for dropdown menu

    I have been looking for a way to have one file for my dropdown menu in the same way that i can put all my styles and other stuff in a separate js and css file. obviously for easy maintenance and changing, does anyone know of a way i can do this?

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,451
    Thanks
    17
    Thanked 275 Times in 275 Posts
    Yes, there certainly are ways to do it. Some are much easier and more stable than others. Do you have any server side languages available, such as PHP or SSI? They will work much better than a pure javascript solution. But if you do need to use javascript you can use innerHTML to put your menu where you want it on the page. Also you can just have a menu made up as a file or you can generate from an array. The array is easier to edit and change. But it gets more complicated for higher lever menus.

  • #3
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    could i get some links to guides for this?

  • #4
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,957
    Thanks
    9
    Thanked 727 Times in 721 Posts
    Here's a good tutorial for php includes.

  • Users who have thanked SB65 for this post:

    river226 (10-03-2010)

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,864
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Do you have any server side languages available, such as PHP or SSI?
    could i get some links to guides for this?
    It'd be easier if you say the answer to the above one.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #6
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Sorry, i asked the non specific question cause all worked for me


  •  

    Tags for this Thread

    Posting Permissions

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