home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 December / PCWorld_2006-12_cd.bin / komunikace / netscape / nsb-install-8-1-2.exe / chrome / comm.jar / content / cookie / pref-images.xul < prev    next >
Extensible Markup Language  |  2006-01-06  |  4KB  |  113 lines

  1. <?xml version="1.0"?> 
  2.  
  3. <!--
  4.    The contents of this file are subject to the Netscape Public
  5.    License Version 1.1 (the "License"); you may not use this file
  6.    except in compliance with the License. You may obtain a copy of
  7.    the License at http://www.mozilla.org/NPL/
  8.     
  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): 
  21.      H├Ñkan Waara <hwaara@chello.se>
  22.      Peter Annema <disttsc@bart.nl>
  23.   -->
  24. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  25.  
  26. <!DOCTYPE page [
  27. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  28. %brandDTD;
  29. <!ENTITY % prefImagesDTD SYSTEM "chrome://cookie/locale/pref-images.dtd" >
  30. %prefImagesDTD;
  31. ]>
  32.  
  33. <page id="imagesPanel" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  34.       onload="init();"
  35.       headertitle="&lHeader;">
  36.           
  37.   <script type="application/x-javascript" src="chrome://cookie/content/cookieOverlay.js"/>
  38.  
  39.   <script type="application/x-javascript">
  40.   <![CDATA[
  41.   
  42.   var panel = "chrome://cookie/content/pref-images.xul";
  43.   var _elementIDs = ["accOrgImages", "networkImageBehaviour", "imageLooping"];
  44.  
  45.   function init()
  46.   {
  47.     parent.initPanel('chrome://cookie/content/pref-images.xul');
  48.  
  49.     setDisables();
  50.   }
  51.  
  52.   function setDisables()
  53.   {
  54.     var imageBehavior = document.getElementById("networkImageBehaviour");
  55.  
  56.     // if mailnews is installed then we will have networkImageDisableImagesInMailNews checkbox
  57.     var networkImageDisableImagesInMailNews = document.getElementById("networkImageDisableImagesInMailNews");
  58.     if (networkImageDisableImagesInMailNews)
  59.       networkImageDisableImagesInMailNews.disabled = (imageBehavior.value == 2); 
  60.   }
  61.  
  62.   ]]>
  63.   </script>
  64.  
  65.   <broadcaster id="haveImageBlocking"/>
  66.   <broadcaster id="haveImageBlockingOrMailnews"/>
  67.  
  68.   <groupbox id="imagesArea">
  69.     <caption label="&imageBlocking.label;"/>
  70.  
  71.     <description>&imageDetails;</description>
  72.  
  73.     <radiogroup id="networkImageBehaviour"
  74.                 prefstring="network.image.imageBehavior">
  75.       <radio value="2" label="&disableImages.label;"
  76.              accesskey="&disableImages.accesskey;"
  77.              oncommand="setDisables();"/>
  78.       <radio value="1" label="&accOrgImagesRadio.label;"
  79.              accesskey="&accOrgImagesRadio.accesskey;"
  80.              id="accOrgImages" observes="haveImageBlocking"
  81.              oncommand="setDisables();"/>
  82.       <radio value="0" label="&accAllImagesRadio.label;"
  83.              accesskey="&accAllImagesRadio.accesskey;"
  84.              oncommand="setDisables();"/>
  85.     </radiogroup>
  86.  
  87.     <separator id="networkImagesBehaviorSeparator" observes="haveImageBlockingOrMailnews"/>
  88.  
  89.     <separator observes="haveImageBlocking"/>
  90.  
  91.     <hbox pack="end">
  92.       <button id="viewImages" label="&viewImages.label;"
  93.               accesskey="&viewImages.accesskey;" oncommand="viewImages();"
  94.               observes="haveImageBlocking"
  95.               prefstring="pref.advanced.images.disable_button.view_image"/>
  96.     </hbox>
  97.  
  98.   </groupbox>
  99.   <groupbox>
  100.     <caption label="&animLoopingTitle.label;"/>
  101.     <radiogroup id="imageLooping"
  102.                 preftype="string" prefstring="image.animation_mode">
  103.         <radio value="normal" label="&animLoopAsSpecified.label;"
  104.                accesskey="&animLoopAsSpecified.accesskey;"/>
  105.         <radio value="once" label="&animLoopOnce.label;"
  106.                accesskey="&animLoopOnce.accesskey;"/>
  107.         <radio value="none" label="&animLoopNever.label;"
  108.                accesskey="&animLoopNever.accesskey;"/>
  109.     </radiogroup>
  110.   </groupbox>
  111.  
  112. </page>
  113.