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/
9
implied. See the License for the specific language governing
10
rights and limitations under the License.
12
The Original Code is Mozilla Communicator client code, released
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
21
Håkan Waara <hwaara@chello.se>
22
Peter Annema <disttsc@bart.nl>
24
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
27
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
29
<!ENTITY % prefImagesDTD SYSTEM "chrome://cookie/locale/pref-images.dtd" >
33
<page id="imagesPanel" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
35
headertitle="&lHeader;">
37
<script type="application/x-javascript" src="chrome://cookie/content/cookieOverlay.js"/>
39
<script type="application/x-javascript">
42
var panel = "chrome://cookie/content/pref-images.xul";
43
var _elementIDs = ["accOrgImages", "networkImageBehaviour", "imageLooping"];
47
parent.initPanel('chrome://cookie/content/pref-images.xul');
52
function setDisables()
54
var imageBehavior = document.getElementById("networkImageBehaviour");
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);
65
<broadcaster id="haveImageBlocking"/>
66
<broadcaster id="haveImageBlockingOrMailnews"/>
68
<groupbox id="imagesArea">
69
<caption label="&imageBlocking.label;"/>
71
<description>&imageDetails;</description>
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();"/>
87
<separator id="networkImagesBehaviorSeparator" observes="haveImageBlockingOrMailnews"/>
89
<separator observes="haveImageBlocking"/>
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"/>
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;"/>