Tuesday, October 27, 2009

The behavioral function of DW is preliminary analysis

Do simple a bit better: Ah breathe out the Call Js action that provides with DW to be an analysis


This is Call Js.htm I also take it here put together good-looking: )

&ltSCRIPT LANGUAGE="javascript" SRC="Call JavaScript.js"&gt&lt/SCRIPT&gt// need not say this to include our Call Js.js namely
&ltSCRIPT LANGUAGE="JavaScript" SRC=" . . / . . / li of transfers DW to offer string processing function of Shared/MM/Scripts/CMN/string.js"&gt&lt/SCRIPT&gt//

&ltSCRIPT SRC=" . . / . . / the help page that Shared/MM/Scripts/CMN/displayHelp.js"&gt&lt/SCRIPT&gt// calls this movement

&ltSCRIPT LANGUAGE="javascript"&gt
Var MSG_NoMsg = "Please Enter A JavaScript Command Or Click Cancel. ";

Noticing the JS above to call is not same write disparate movements to will be used move different Js (also need not use) these east east below the Shared/MM/Scripts that is put in DW.

/ / ****************************************************************
The JS function that you will write in Head head
/ / ***************************************************************Function MM_callJS(jsStr) {//v2.0Return Eval(jsStr)
}

It is API function below namely the systematic function that DW provides
/ / **********************************************************************************
What can accept this motion without the element, exchange function of picture Swap Imag to only picture ability is received for example, the movement that we see has in face plate
Because used this function,why be gray is, because current this is nonexistent to resembling.
For example:
Function CanAcceptBehavior(){Var NameArray = GetObjectRefs("NS 4.0" , "Document" , "IMG");  Var RetVal = (nameArray.length&gt0) ? "OnMouseOut, (OnMouseOut)" :&Nbsp;false;Return RetVal;
}
Accept behavioral function: This function used GetobjectRefs() to obtain IMG to be opposite picture, only ability of picture of current webpage existence uses this act, the Onmouseout from the back is the movement that be short of caustic.
/ / *************************************************************************************Function CanAcceptBehavior(){Return True;
}


/ / *************************************************************************************
Behavioral function: Ability is the function that should write you into Head head truly here, the name that notices MM_calljs changes the first function before beard and you homonymic, make mistake otherwise.
/ / *************************************************************************************Function BehaviorFunction(){Return "MM_callJS";
}

/ / *************************************************************************************
Handle behavioral function: Namely the function that you will add in label to be in. Be like: OThe Test part of Nmouseover="test(ARGS)" and Args part. Args is the parameter that you want to transfer Head head function.
/ / *************************************************************************************Function ApplyBehavior() {The Message in face plate is being obtained here is worth namely you input the value in text casingIf (jsStr==If you did not input information to will play the admonitory information that give,judge here, this information is in Call Js.htm is a face had defined. Return MSG_NoMsg;
  } Else {Return "MM_callJS('" + JsStr + "')";// writes function successfully
  }
}

/ / *************************************************************************************
This function rises to obtain the value that you input to be saved, the value that you input last already can see when you are being revised next time, do not talk to go up otherwise revised.
/ / *************************************************************************************Function InspectBehavior(jsStr){Var StartPos = JsStr.indexOf("(")+2;Var EndPos = JsStr.lastIndexOf(")" , jsStr.length)-1;Document.theForm.message.value = UnescQuotes(jsStr.substring(startPos, endPos));// obtains the value between ")" of "(" peaceful coexistence, namely the value that we input.
}

/ / ***************** LOCAL FUNCTIONS ******************

/ / *************************************************************************************
Here is this locality function, not possible also, the meaning of this function is opened namely let text casing get together look.
Function InitializeUI(){Document.theForm.message.focus(); //set Focus On TextboxDocument.theForm.message.select(); //set Insertion Point Into Textbox
}


This is the analytic result of my individual only, may wrong hope everybody is corrected. Recently our company net fast surprised not to go up slow so at a loose end manages the network, write?  

No comments:

Post a Comment