smesh/doc/salome/gui/SMESH/whdata/whtdata.js
2005-11-28 09:57:47 +00:00

64 lines
1.3 KiB
JavaScript
Executable File

// WebHelp 5.10.001
var gTEA = new Array();
function aTE()
{
gTEA[gTEA.length] = new tocEntry(aTE.arguments);
}
function tocEntry(fn_arguments)
{
if (fn_arguments.length < 3)
{
alert ("data format wrong!!!");
return;
}
this.nType = fn_arguments[0];
this.nContents = fn_arguments[1];
this.sItemName = fn_arguments[2];
if (this.nType == 1 || this.nType == 2 || this.nType == 16)
{
if (fn_arguments.length > 3)
{
this.sItemURL = fn_arguments[3];
if (fn_arguments.length > 4)
{
this.sTarget = fn_arguments[4];
if (fn_arguments.length > 5)
this.sIconRef = fn_arguments[5];
}
}
}
if (this.nType == 4 || this.nType == 8)
{
if (fn_arguments.length > 3)
{
this.sRefURL = fn_arguments[3];
if (this.nType == 4)
{
if(this.sRefURL.lastIndexOf("/")!=this.sRefURL.length-1)
this.sRefURL+="/";
}
if (fn_arguments.length > 4)
{
this.sItemURL = fn_arguments[4];
if (fn_arguments.length > 5)
{
this.sTarget = fn_arguments[5];
if (fn_arguments.length > 6)
this.sIconRef = fn_arguments[6];
}
}
}
}
}
function window_OnLoad()
{
if (parent && parent != this && parent.putData) {
parent.putData(gTEA);
}
}
window.onload = window_OnLoad;