Dynamic 'Flash' Navbar - JavaScript/PHP??

Associate
Joined
1 May 2006
Posts
810
Location
Bristol, UK
Ok guys,

I'm about to undertake my first comercial project and I'm already having trouble with the navbar :rolleyes:

The result I'm looking for is to have some options on the navbar appear when text is hovered on. I'm doing a bad job at describing this so have a look at http://www.chironcentre.co.uk/ which is done in javascript.

Please, anyone?
 
DOH! - I'll put it down to being tired last night lol.

I rooted through the source code and it looks like the cheaky bugger who made the site went and nicked the script from someone else :p

However, the links are all hard-coded into a config file.
Snip
Code:
Menu1=new Array("Home","http://www.dynamicdrive.com","",0,20,138);

Menu2=new Array("News","blank.htm","",2);
	Menu2_1=new Array("General","blank.htm","",5,20,150);	
		Menu2_1_1=new Array("CNN","http://www.cnn.com","",0,20,150);
		Menu2_1_2=new Array("ABCNews","http://www.abcnews.com","",0);
		Menu2_1_3=new Array("MSNBC","http://www.msnbc.com","",0);
                Menu2_1_4=new Array("CBSNews","http://www.cbsnews.com","",0);
                Menu2_1_5=new Array("Canadian News","http://news.bbc.co.uk","",2);
                          Menu2_1_5_1=new Array("Vancouver Sun","http://www.vancouversun.com","",0,20,150);
                          Menu2_1_5_2=new Array("CTV News","http://www.ctvnews.com","",0);
	Menu2_2=new Array("Technology","blank.htm","",3);
		Menu2_2_1=new Array("TechWeb","http://www.techweb.com","",0,20,200);
		Menu2_2_2=new Array("News.com","http://www.news.com","",0);
		Menu2_2_3=new Array("Wired News","http://www.wired.com","",0);
I was thinking of using a shed load of recordsets and repeat regions to generate the above. But if anyone has any other ideas then they're more than welcome to share them :)
 
If you're going to implement that particular navigation bar, especially on a paid project, then please improve it so that, in the least, if you disable javascript you can still actually navigate the site.

Why not implement a dropdown menu in the traditional HTML/CSS way?
 
Back
Top Bottom