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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Location
    Hong Kong
    Posts
    124
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Edit the length of the menu

    Hi,
    I have got a script from one of the javascript tutorial website.
    However, I have got no idea on how to edit the length of the menu. Here is the script

    // Define navigation bar settings.

    navBarX = 0;

    navBarHeaderWidth =150;
    //navBarMenuWidth = 190;

    //navBarBorderWidth = 1;
    //navBarPaddingWidth = 2;


    I shall change the codes in red into wild value, which mean it will take up the size of the heading in the menu instead of a fix value is given.

    Thank You

  • #2
    Regular Coder
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    576
    Thanks
    0
    Thanked 0 Times in 0 Posts
    please give us more relevant code.

  • #3
    Regular Coder
    Join Date
    Feb 2003
    Location
    Helsinki, Finland
    Posts
    111
    Thanks
    0
    Thanked 0 Times in 0 Posts

    uncomment

    Try to uncomment the

    //navBarMenuWidth = 190;

    It should be just

    navBarMenuWidth = 190;

    Again, please remember that I'm a beginner in javascript... I'm just trying to help...

  • #4
    Regular Coder
    Join Date
    Aug 2002
    Location
    Hong Kong
    Posts
    124
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Opp...
    I have made a minor mistake in this script as I have put the // before that code to do some testing.

    Thank You For You amendment

    Regards

    victoria


  •  

    Posting Permissions

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