htc组件的url也就是利用样式套用来定义hta要调用组件的路径

解决方案 »

  1.   

    Contains information about a user's homepage.
    SyntaxXML <Prefix: CustomTag ID=sID STYLE="behavior:url('#default#homePage')" />  
    HTML <ELEMENT STYLE="behavior:url('#default#homePage')" ID=sID> 
    Scripting object.style.behavior = "url('#default#homePage')" 
    object.addBehavior ("#default#homePage") Possible ValuesPrefix Prefix that associates the CustomTag with an XML namespace. This prefix is set using the XMLNS attribute of the HTML tag.  
    CustomTag User-defined tag. 
    sID String that specifies a unique identifier for the object. 
    Members TableThe following table lists the members exposed by the homePage object. Click a tab on the left to choose the type of member you want to view.The members listed in the preceding table might not be accessible through scripting until the window.onload event fires. Waiting for this event to fire ensures that the page is completely loaded, that all behaviors have been applied to corresponding elements on the page, and that all the behavior's properties, methods, and events are available for scripting. To prevent a scripting error—which would indicate that the object does not support a particular member—do not use any of the behavior-defined members before the window.onload event fires. The homePage behavior is available as of Microsoft&reg; Internet Explorer 5, in the Microsoft Win32&reg; and Unix platforms.