External.AddDesktopComponent
JavaScript -> Objekty -> External -> metóda AddDesktopComponent
Syntax
window.external.AddDesktopComponent(param1, param2, param3, param4, param5, param6)
Popis
Príkaz jazyka JavaScript
Inserts a web page or image into the active desktop.
- 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.
Príklad
<html>
<head>
<script language="JavaScript">
function function1() {
Window.External.AddDesktopComponent("http://www.java2s.com/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>
<head>
<script language="JavaScript">
function function1() {
Window.External.AddDesktopComponent("http://www.java2s.com/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>