The mm_loadMultiFrames() function allows you load any number of frames or iframes from a single menu item.
To use the _loadMultiFrames() function:
-
Place the following code at the top of your menu_data.js file
function loadMultiFrames()
{
if (arguments.length > 0)
{
for (var i=0; i<arguments.length; i++)
{
params = arguments[i].split("=");
if (params[0].length > 0 && params[1].length > 0) parent[params[0]].location = params[1];
}
}
}
- Each parameter is a string specifying a frameName/URL combination
- frameName is the name of the frame whose content you want to change -- name as given in the <frameset > or <iframe > tag
- URL is the URL you want to load into the specified frame
- include the function call in an aI() menu item. The parameter should be formatted as \"frameName=URL\" using escaped double-quotes (\") around each frameName/URL string, (otherwise, you'll get odd behavior in some browsers).
aI("text=Go;url=javascript:loadMultiFrames(\"topframe=page1.htm\", \"bottomframe=page2.htm\", \"sideframe=page3.htm\");");
(all on one line... no wrapping)