home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 May / PCWorld_2003-05_cd.bin / Komunik / phoenix / chrome / browser.jar / content / browser / pref / pref-images.xul < prev    next >
Extensible Markup Language  |  2002-10-12  |  3KB  |  67 lines

  1. <?xml version="1.0"?> 
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  4.  
  5. <!DOCTYPE page [
  6. <!ENTITY % prefImagesDTD SYSTEM "chrome://browser/locale/pref/pref-images.dtd" >
  7. %prefImagesDTD;
  8. ]>
  9.  
  10. <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  11.       onload="parent.initPanel('chrome://browser/content/pref/pref-images.xul');"
  12.       headertitle="&title;">
  13.           
  14. <script type="application/x-javascript">
  15. <![CDATA[
  16.   var _elementIDs = ["imageLooping", "enableImages", "enableImagesForOriginatingSiteOnly"];
  17.   function viewImages() {
  18.     window.openDialog("chrome://communicator/content/wallet/CookieViewer.xul","_blank",
  19.                       "chrome,resizable=yes", "imageManager" );
  20.   }
  21.  
  22.   function Startup() {
  23.     var imagesEnabled = document.getElementById("enableImages").checked;
  24.     var imageBroadcaster = document.getElementById("imageBroadcaster");
  25.     imageBroadcaster.setAttribute("disabled", !imagesEnabled);
  26.   }
  27.  
  28. ]]>
  29. </script>
  30.  
  31. <broadcaster id="imageBroadcaster"/>
  32.  
  33. <groupbox orient="horizontal">
  34.   <caption label="&general.label;"/>
  35.   <vbox flex="1">
  36.     <checkbox id="enableImages"
  37.               oncommand="document.getElementById('imageBroadcaster').setAttribute('disabled', this.checked ? 'false' : 'true');"
  38.               label="&enableImages.label;" accesskey="&enableImages.accesskey;"
  39.               prefstring="network.image.enable"/>
  40.     <checkbox id="enableImagesForOriginatingSiteOnly" observes="imageBroadcaster"
  41.               label="&forOriginatingSiteOnly.label;"
  42.               accesskey="&forOriginatingSiteOnly.accesskey;"
  43.               prefstring="network.image.enableForOriginatingWebsiteOnly"
  44.               style="margin-left: 23px;"/>
  45.   </vbox>
  46.   <vbox>
  47.     <button id="manageImages"
  48.             label="&manageImages.label;" accesskey="&manageImages.accesskey;"
  49.             oncommand="viewImages();"
  50.             prefstring="pref.advanced.images.disable_button.view_image"/>
  51.   </vbox>
  52. </groupbox>
  53.  
  54. <groupbox>
  55.   <caption label="&animLoopingTitle.label;"/>
  56.   <radiogroup id="imageLooping"
  57.               preftype="string" prefstring="image.animation_mode">
  58.       <radio value="normal" label="&animLoopAsSpecified.label;"
  59.              accesskey="&animLoopAsSpecified.accesskey;"/>
  60.       <radio value="once" label="&animLoopOnce.label;"
  61.              accesskey="&animLoopOnce.accesskey;"/>
  62.       <radio value="none" label="&animLoopNever.label;"
  63.              accesskey="&animLoopNever.accesskey;"/>
  64.   </radiogroup>
  65. </groupbox>
  66. </page>
  67.