JavaScript Reference/Javascript Methods/AddDesktopComponent

Материал из Web эксперт
Версия от 11:22, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"AddDesktopComponent()" Example

   <source lang="javascript">
   

<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>


     </source>
   
  


"AddDesktopComponent()" is applied to

   <source lang="javascript">

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

     </source>
   
  


"AddDesktopComponent()" Syntax, Parameters and Note

   <source lang="javascript">

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.
   
     
     </source>