Dave, in the future please start a new thread when asking your own question on a DD script.
Well, the code:
Code:
onopenclose:function(header, index, state, isclicked){ //custom code to run whenever a header is opened or closed
if (state=="block" && isclicked==true){ //if header is expanded and as the result of the user clicking on it
myiframe.location.replace(header.getAttribute('title'))
}
}
controls the behavior when the headers are expanded and collapsed. You can get them to load their associated page in the browser window itself, by changing:
Code:
myiframe.location.replace(header.getAttribute('title'))
to:
Code:
window.location=header.getAttribute('title')
However, this most likely won't be what you want, since that means as soon as the user clicks on a header, he's taken to a new page, before the sub menus have a chance to expand on the former page.
Bookmarks