whtdata.js
上传用户:aonuowh
上传日期:2021-05-23
资源大小:35390k
文件大小:1k
- 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 (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;