[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] [GUI] Change link?



> Hi,
> 
> I have a question about the HTML in the Cobalt RAQ4 GUI.
> In the /admin (brown section), the left menu HTML looks like this:
> 
>  <A HREF="javascript: top.selectMainMenu( 0 );"
> 
> (for instance).
> But I do not see any javascript code that refers to 
> selectMainMenu, which links to a certain file in the right frame.
> 
> Does anyone have a clue on where to find this (to modify 
> where it links to...)?
> 

It's frames. So if you view source for the main frameset you'll see the
script.
<snip>
  selectMainMenu( mainItemIndex );
  if( subItemIndex!=0 ) selectSubMenu( mainItemIndex, subItemIndex );
}

function selectMainMenu( itemIndex ) {
  var path='/.cobalt/sysManage/menu'+itemIndex+'.html';

  if( navigator.appVersion.indexOf( 'IE 3.0A' )!=-1 ) {
    frames[ 0 ].frames[ 0 ].location.pathname=path;
  }
  else {
    frames[ 0 ].frames[ 0 ].location.replace( path );
  }

-- 
C2003 Dan Kriwitsky

Please reply to the list only. Off list replies are not read.