PDA

View Full Version : Resolved Please help to correct the script



vdl
07-29-2009, 01:07 PM
1) Script Title:
Smooth Navigational Menu (v1.31)
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.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.

ddadmin
07-30-2009, 04:07 AM
Firstly, on index.html, you have an extra initialization code that should be removed:


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:


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. :)

vdl
07-30-2009, 09:07 AM
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!