DHTML Methods
Adds a Web site or image to the Microsoft® Active Desktop™.
window.external.AddDesktopComponent ( sURL, sType,
iLeft, iTop, iWidth, iHeight )
sURL |
Required. Specifies the location of the Web site or image to be added to the Active Desktop. |
sType |
Required. Specifies the type of item being added. The value "image" specifies the component is an image. The value "website" specifies the component is a Web site. |
iLeft |
Optional. Specifies the position of the left edge in screen coordinates. |
iTop |
Optional. Specifies the position of the top edge in screen coordinates. |
iWidth |
Optional. Specifies the width in screen units. |
iHeight |
Optional. Specifies the height in screen units. |
No return value.
Active Desktop must be installed for the AddDesktopComponent method to work. If Active Desktop is not installed, the method is not invoked.
The following example adds the Microsoft Web site as an Active Desktop component.
window.external.AddDesktopComponent (
"http://www.microsoft.com", "website",
100, 100, 200, 200 );
external