geom/doc/salome/gui/GEOM/whdata/whtdata.js

64 lines
1.2 KiB
JavaScript
Raw Normal View History

2007-02-07 16:23:40 +05:00
// 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);
}
}
2004-06-16 21:45:26 +06:00
window.onload = window_OnLoad;