View Full Version : AnyLink Drop Down Menu + Ajax Tabs Content script

09-05-2006, 02:46 AM
1) Script Title: Ajax Tabs Content script and AnyLink Drop Down Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm and http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

3) Describe problem: How do I make these scripts to work together?

First, I wanna thanks the ddadmin for helping me in the other problem I had, thanks so much!

So... I like so much the Ajax Tabs that a wanted to have a good menu, so of course, I tried to find one here in this wonderful site. I like most the anylink drop down menu. I don't have a good knowledge about dhtml... so I don't know how to change this part in the AnyLink Drop Down Menu

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="http://cnn.com">CNN</a>'
menu2[1]='<a href="http://msnbc.com">MSNBC</a>'
menu2[2]='<a href="http://news.bbc.co.uk">BBC News</a>'

if I have this:

<ul id="maintab" class="shadetabs">
<li class="selected"><a href="#default" rel="ajaxcontentarea">Intro</a></li>
<li><a href="external.htm" rel="ajaxcontentarea">Bird</a></li>
<li><a href="external2.htm" rel="ajaxcontentarea">Dog</a></li>
<li><a href="external3.htm" rel="ajaxcontentarea">Cat</a></li>
<li><a href="external4.htm" rel="ajaxcontentarea" rev="content.css, content.js">Sea Otter</a></li>

* I made a little change with the Ajax Tabs Content, and I must have a menu, because I have more than 20 links, that's why I couldn't use exactly the way it looks in this site...

Thanks ( sorry, my English is horrible)

09-05-2006, 03:51 AM
If you are not going to use the tabs, don't use the tab script, modify this one, the links are much more straightforward and easy to use anywhere like - with anylink. Otherwise, it is the same script: