JavaScript Reference/Javascript Methods/AddDesktopComponent

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

"AddDesktopComponent()" Example

    
<html>
<head>
<script language="JavaScript">
    function function1() {
        window.external.AddDesktopComponent("http://www.wbex.ru/style/logo.png","image", 150, 150, 95, 95);
    }
</script>
</head>
<body>
<button onclick="function1();">Click here to add the new active desktop component</button>
</body>
</html>



"AddDesktopComponent()" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |external                                                      |
+----------------+--------------------------------------------------------------+



"AddDesktopComponent()" Syntax, Parameters and Note

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

Parameters:
    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.