whtdata - { if (fn_arguments.length > 3) {...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// 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)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { if (fn_arguments.length &gt; 3) { this.sRefURL = fn_arguments[3]; if (this.nType == 4) { if(this.sRefURL.lastIndexOf(&quot;/&quot;)!=this.sRefURL.length-1) this.sRefURL+=&quot;/&quot;; } if (fn_arguments.length &gt; 4) { this.sItemURL = fn_arguments[4]; if (fn_arguments.length &gt; 5) { this.sTarget = fn_arguments[5]; if (fn_arguments.length &gt; 6) this.sIconRef = fn_arguments[6]; } } } } } function window_OnLoad() { if (parent &amp;&amp; parent != this &amp;&amp; parent.putData) { parent.putData(gTEA); } } window.onload = window_OnLoad;...
View Full Document

This note was uploaded on 10/17/2011 for the course OA 110 taught by Professor Staff during the Spring '10 term at Community College of Philadelphia.

Ask a homework question - tutors are online