PDA

View Full Version : HV menu problem



Theon
06-13-2006, 04:35 AM
Title: HV menu
http://dynamicdrive.com/dynamicindex1/indexc.html

Copy of page I'm having a problem with is at http://www.usa4corners.org/special/example.htm

Where the problem seems to appear is when I put "Menu2_3=new Array" and the rest of the line in, then test it. I have tried changing Menu2=new Array("Products","products.html","",5,20,140,"","","","",""); from 5 to other numbers with no success.

I realize this is a 3rd party script but if anyone ran into this before and was able to tweak it I would apreciate the help.

Attached is the javascript script that I'm trying to get to work.

NeilWeston
06-14-2006, 01:34 AM
Just had a very quick look, Menu item #9 has 4 menu items not 3 as specified. ie:

Menu9=new Array("News & Events","news.html","",3,0,0,"","","","","");

Menu9_1=new Array("Press Releases","press-releases.html","",0,20,180,"","","","","");

Menu9_2=new Array("Events","events.html","",0,0,0,"","","","","");

Menu9_3=new Array("Photos","photos.html","",0,0,0,"","","","","");

Menu9_4=new Array("Speedtrap TV Commercial"","commercial.html","",0,0,0,"","","","","");

Should be;


Menu9=new Array("News & Events","news.html","",4,0,0,"","","","","");

Menu9_1=new Array("Press Releases","press-releases.html","",0,20,180,"","","","","");

Menu9_2=new Array("Events","events.html","",0,0,0,"","","","","");

Menu9_3=new Array("Photos","photos.html","",0,0,0,"","","","","");

Menu9_4=new Array("Speedtrap TV Commercial"","commercial.html","",0,0,0,"","","","","");

This sort of thing makes the script fall over.

Hope this helps.

- Neil

NeilWeston
06-14-2006, 09:44 PM
Just also got a bit more time to look at your script. You have the following;

Menu9=new Array("News & Events","news.html","",4,0,0,"","","","","");

Menu9_1=new Array("Press Releases","press-releases.html","",0,20,180,"","","","","");

Is that the way you got the script with all those array elements at the end?

What version are you using?

I am on 5.5 and there are only 4 elements after the link element not 9

So my script would look like;

Menu9=new Array("News & Events","news.html","",4,0,0);

Menu9_1=new Array("Press Releases","press-releases.html","",0,20,180);

I would probably also even up the spacings in each menu item a bit with;

Menu9=new Array("News & Events","news.html","",4,20,180);

Menu9_1=new Array("Press Releases","press-releases.html","",0,20,180);

Cheers,

- Neil