View Full Version : navigation

10-14-2003, 04:45 AM
I am working on a small site and i wanted to know if you can use 2 functions within some javascript?

I am using iFrames to drive the navigation and need to change out the navigation and the content onClick. Here is what I am using for the script:

function MM_clickMenu(targ,selObj,restore){ //v3.0

and the link:

<a href="company/nav_company.html" onClick="MM_clickMenu('parent.content_iframe','company/company.html',1)" onMouseOver="MM_swapImage('company','','images/company_on.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/company_off.gif" alt="COMPANY" name="company" width="74" height="22" border="0"></a>

So what I want to do is within the MM_clickMenu I want to change out 2 different iFrames, but can't seem to get it to work.

There is an alpha version of the site up to test:


I guess the best example of what I am trying to do is when you are on the homepage and you click to the company section, you get a different nav. Then, when you click the main TTT logo it changes the content_iFrame but not the navigation_iFrame and I need to change both.



10-14-2003, 06:32 AM
function MM_clickMenu(url,target,url2,target2){
window.open(url, target);
window.open(url2, target2);
return false;
<a href="company/nav_company.html" target="content_iframe" onClick="return MM_clickMenu(this.href, this.target, 'otherpage.html', 'othertarget')">Company</a>

10-14-2003, 06:46 PM
Thanks glenngv, that did the trick.

Much appreciated.