home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 December / PCWorld_2005-12_cd.bin / komunikace / netscape / nsb-install-8-0.exe / chrome / browser.jar / content / browser / navExtraOverlay.xul < prev    next >
Extensible Markup Language  |  2005-09-26  |  5KB  |  137 lines

  1. <?xml version="1.0"?> 
  2. <!-- The contents of this file are subject to the Netscape 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/NPL/
  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 client code, released
  13. March 31, 1998.
  14.  
  15. The Initial Developer of the Original Code is Netscape
  16. Communications Corporation. Portions created by Netscape are
  17. Copyright (C) 1998-1999 Netscape Communications Corporation. All
  18. Rights Reserved.
  19.  
  20. Contributor(s): Andrew Wooldridge - andreww@netscape.com  -->
  21.  
  22. <?xml-stylesheet href="chrome://browser/content/navExtraOverlay.css"?>
  23.  
  24. <!DOCTYPE overlay SYSTEM "chrome://browser/locale/netscape.dtd">
  25.  
  26. <overlay id="navExtraOverlay"
  27.          xmlns:html="http://www.w3.org/1999/xhtml"
  28.          xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  29.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  30.  
  31.   <!-- internet keyword code -->
  32.   <!-- where is this file?
  33.   <script language="javascript" src="chrome://navigator/content/keywords.js"/> -->
  34.   <script language="javascript" src="chrome://browser/content/sidebarButton.js"/>
  35.  
  36. <!-- Radio crap...
  37.   <script type="application/x-javascript"><![CDATA[
  38.     
  39.     if (navigator.platform != "Win32")
  40.     {
  41.       var isOSX = (navigator.userAgent.toLowerCase().indexOf('os x') != -1);// use "os x"
  42.       if (isOSX)
  43.       {
  44.         addEventListener("load", hideNetscapeRadioButtonPT, false);
  45.       }
  46.     }
  47.   
  48.     function hideNetscapeRadioButtonPT()
  49.     {
  50.       var n2p = document.getElementById("netscaperadio-button");
  51.       n2p.setAttribute("hidden", "true");
  52.     }
  53.     
  54.     function openNetscapeRadio()
  55.     {
  56.       var userAgt=navigator.userAgent.toLowerCase();
  57.       var isWin=(userAgt.indexOf('win')!=-1);
  58.       var radioWidth = 620;
  59.       var radioHeight = 380;
  60.       var radioUrl = "";
  61.       var gotoBrowserNode = false; //open from hidden browser node or Navigator window.
  62.       
  63.       if (isWin) {
  64.         radioUrl = document.getElementById('bundle_navigator_region').getString('buttons.personaltaskbar.radiobutton');
  65.         gotoBrowserNode = true;
  66.       } else { //all other OS/browsers go to Station Sampler
  67.         radioUrl = document.getElementById('bundle_navigator_region').getString('buttons.personaltaskbar.radiobutton_alt');
  68.         gotoBrowserNode = false;
  69.       }
  70.  
  71.       // opens Radio@Netscape
  72.  
  73.       if(gotoBrowserNode){
  74.         // need to open the radio window directly to avoid popup blocking.
  75.         // constants taken from the current radio-launching page
  76.         var radioWidth = 542;
  77.         var radioHeight = 315;
  78.         var radioTop = (screen.height - radioHeight)/2;
  79.         var radioLeft = (screen.width - radioWidth)/2;
  80.  
  81.         window.open(radioUrl,
  82.                     "NetscapeRadio",
  83.                     "left=" + radioLeft + ",top=" + radioTop +
  84.                     ",width=" + radioWidth + ",height=" + radioHeight +
  85.                     ",minimize=1,scrollbars=0,status=0,resizable=no"); 
  86.          
  87.        } else {
  88.           //linux and mac OS9 users open in a regular web page
  89.           window.open(radioUrl,'NetscapeRadio').focus();
  90.        }
  91.  
  92.     }
  93.     
  94.   ]]></script>
  95. -->
  96.  
  97. <!-- Shopping buttons, etc...
  98. <toolbar id="PersonalToolbar" prefixonclick="onSidebarButtonClick();">
  99.  
  100.      <toolbarbutton class="bookmark-item nc"
  101.              label="&shopButton.label;"
  102.              id="netscapeshop-button"
  103.              persist="hidden"
  104.              insertafter="home-button"
  105. oncommand="window._content.location.href=document.getElementById('bundle_navigator_region').getString('buttons.personaltaskbar.shopbutton')"
  106.               />
  107.  
  108.      <toolbarbutton class="bookmark-item nc"
  109.                    label="&searchButton.label;"
  110.                    id="netscapesearch-button"
  111.                    persist="hidden"
  112.                    insertafter="home-button"
  113. oncommand="window._content.location.href=document.getElementById('bundle_navigator_region').getString('buttons.personaltaskbar.searchbutton')"/>
  114.  
  115.     <toolbarbutton class="bookmark-item nc"
  116.             label="&myNetscape.label;" insertafter="home-button"
  117.             id="mynetscape-button" persist="hidden"
  118. oncommand="window._content.location.href=document.getElementById('bundle_navigator_region').getString('buttons.personaltaskbar.mynetscapebutton'); event.preventBubble();"/>
  119.  
  120.     <toolbarbutton class="bookmark-item nc"
  121.             label="&radioButton.label;" insertafter="home-button"
  122.             id="netscaperadio-button" persist="hidden"
  123. oncommand="openNetscapeRadio(); event.preventBubble();"/>
  124.  
  125. </toolbar>
  126. -->
  127.  
  128.   <menuitem id="menu_translate" hidden="true"/>
  129.   <menu id="debugMenu" hidden="true"/>
  130.   <menu id="qaMenu" hidden="true"/>
  131.   <menuseparator id="searchSeparator" hidden="true"/>
  132.   <menu id="searchOptionsMenu" hidden="true"/>
  133.   <menu id="menu_findTypeLinks" hidden="true"/>
  134.   <menu id="image" hidden="true"/>
  135.  
  136. </overlay>
  137.