JavaScript Reference/Javascript Methods/AddDesktopComponent

Материал из Web эксперт
Перейти к: навигация, поиск

"AddDesktopComponent()" Example

<script language="JavaScript">
    function function1() {
        window.external.AddDesktopComponent("","image", 150, 150, 95, 95);
<button onclick="function1();">Click here to add the new active desktop component</button>

"AddDesktopComponent()" is applied to

| Applied_To     |external                                                      |

"AddDesktopComponent()" Syntax, Parameters and Note

Inserts a web page or image into the active desktop.
window.external.AddDesktopComponent(param1, param2, param3, param4, param5, param6)

    param1   Required; the URL of the file to add to the desktop.
    param2   Required; image or website.
    param3   Optional; the offset of the left border in pixels.
    param4   Optional; the offset of the top border in pixels.
    param5   Optional; the width in pixels.
    param6   Optional; the height in pixels.