Results 1 to 3 of 3

Thread: Please help to correct the script

  1. #1
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Please help to correct the script

    1) Script Title:
    Smooth Navigational Menu (v1.31)
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...smoothmenu.htm
    3) Describe problem:
    I have installed the script, however menu I have doesn't slide down on some menus as it should.
    To save the space in further html files I've done external smoothmenu html with my desired menu sections:
    http://videlvelsmord.com/sectionxiiicoma/smoothmenu.htm

    and this is the blank index with only menu installed so far
    http://videlvelsmord.com/sectionxiiicoma/index.html

    When I roll over such links as sound or visual it doesn't slide down showing the further content. For some unknown reasons it hasn't even "right" or "down" gif arrows whose I've attached with full url in js.

    Can anyone please check the source files of my given links and see if everything correctly written in index as well as sitemap (smoothmenu.htm)?
    Pretty sure I missed some trick though I really have no clue what exactly...

    Alternatively I can post the full index html files here, if anyone needs..

    I would really appreciate help!
    Thanks,
    -V.
    Last edited by Snookerman; 07-30-2009 at 06:56 PM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Firstly, on index.html, you have an extra initialization code that should be removed:

    Code:
    ddsmoothmenu.init({
            mainmenuid: "smoothmenu-ajax",
    	orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
    	classname: 'ddsmoothmenu-v', //class added to menu's outer DIV
    	//customtheme: ["#804000", "#482400"],
    contentsource: ["smoothcontainer", "smoothmenu.htm"]//"markup" or ["container_id", "path_to_menu_file"]
    })
    Secondly, for the remaining initialization code, there are some errors, specifically, the part in red:
    Code:
    ddsmoothmenu.init({
            mainmenuid: "smoothmenu-ajax",
    	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
    	classname: 'ddsmoothmenu', //class added to menu's outer DIV
    	//customtheme: ["#1c5a80", "#18374a"],
    	contentsource: ["smoothcontainer", "smoothmenu.htm"] //"markup" or ["container_id", "path_to_menu_file"]
    })
    The code in red should correspond to the main menu id found inside smoothmenu.htm, in your case, "smoothmenu1". Also in smoothmenu.htm, it should just contain the markup of the menu, without the <html> and <body> tags which you currently have.

    As you can see, quite a few errors.
    DD Admin

  3. #3
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you for check!

    I was not sure whether I need to add second for a vertical menu.
    I'll correct them in a moment.

    update:
    Greate! It works fine now!
    Cheers for help!

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
  •