home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 October / Gamestar_77_2005-10_dvd.iso / Programy / nsb-install-8-0.exe / chrome / browser.jar / content / browser / sidebar / preview.js < prev    next >
Encoding:
JavaScript  |  2005-07-29  |  1.2 KB  |  32 lines

  1. /* -*- Mode: Java -*-
  2.  * The contents of this file are subject to the Mozilla Public
  3.  * License Version 1.1 (the "License"); you may not use this file
  4.  * except in compliance with the License. You may obtain a copy of
  5.  * the License at http://www.mozilla.org/MPL/
  6.  *
  7.  * Software distributed under the License is distributed on an "AS
  8.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9.  * implied. See the License for the specific language governing
  10.  * rights and limitations under the License.
  11.  *
  12.  * The Original Code is Mozilla Communicator.
  13.  *
  14.  * The Initial Developer of the Original Code is Netscape
  15.  * Communications Corp. Portions created by Netscape Communications
  16.  * Corp. are Copyright (C) 1999 Netscape Communications Corp. All
  17.  * Rights Reserved.
  18.  *
  19.  * Contributor(s): Stephen Lamm <slamm@netscape.com>
  20.  */
  21.  
  22. function Init()
  23. {
  24.   var panel_name = window.arguments[0];
  25.   var panel_URL = window.arguments[1];
  26.  
  27.   var panel_title = document.getElementById('paneltitle');
  28.   var preview_frame = document.getElementById('previewframe');
  29.   panel_title.setAttribute('label', panel_name);
  30.   preview_frame.setAttribute('src', panel_URL);
  31. }
  32.