PDA

View Full Version : Can this script be made to work with internal links



ajfmrf
01-21-2011, 06:58 PM
http://www.dynamicdrive.com/dynamicindex1/chainedmenu/index.htm

Instead of links to external web pages.

I am going to experiment with one that starts with 5-6 catergories that would list the internal links to several places on the wepage.I need to try and do this due to the rather lengthy size of the page.This would make it so much easier to navigate to any section at ease ( there would also be links"top" to return to the top to make further selections inside the page)

If possible the selection from the second ( and last list ) needs to automaticly take you to the internal target.

I know how to do the internal links but not how ( if possible to set a drop down selection to go to the selected target.


Bud

ajfmrf
01-28-2011, 02:06 AM
Just us the same internal links as the url in the final dropdown with the # and it will take you to that anchor in the page.

I was so happy to get this to work as I wish to use it.

thanks,

Bud

vwphillips
01-28-2011, 12:53 PM
change this function


function cs_updateList() {
var content=this.content;
for (var i=0; i<content.lists.length; i++) {
if (content.lists[i]==this) {
if (content.cookie) {
cs_setCookie(content.cookie+"_"+i,this.selectedIndex);
}
if (i<content.lists.length-1) {
cs_updateListGroup(content,i,this.selectedIndex,"");
}
if (i==2&&content.lists[2].value){
window.top.location=content.lists[2].value;
}
}
}
}