This commit is contained in:
pavlov%netscape.com 1999-08-28 08:36:42 +00:00
Родитель c087f652d0
Коммит e71d966ebb
3 изменённых файлов: 31 добавлений и 0 удалений

Просмотреть файл

@ -26,6 +26,7 @@ include $(topsrcdir)/config/config.mk
include $(topsrcdir)/config/rules.mk
EXPORT_RESOURCE_SAMPLES = \
$(srcdir)/colorpicker.xul \
$(srcdir)/dexanimmaster.xul \
$(srcdir)/dexanimdialog.xul \
$(srcdir)/dexparammaster.xul \

Просмотреть файл

@ -0,0 +1,28 @@
<?xml version="1.0"?> <!-- -*- Mode: SGML -*- -->
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window title="Color Picker"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
align="vertical"
style="width:200px"
>
<html:script>
function doSomethingUseful(cp)
{
var color = cp.getAttribute('color');
document.getElementById("input").value = color;
document.getElementById("mydiv").style.backgroundColor = color;
}
</html:script>
<colorpicker id="cp" onclick="doSomethingUseful(this);"/>
<html:p/>
<html:input id="input"/>
<html:p/>
<html:div id="mydiv" style="width:100px; height:100px; background-color:white"/>
</window>

Просмотреть файл

@ -22,6 +22,7 @@ DIRS=sampleimages
include <$(DEPTH)\config\rules.mak>
install:: $(DLL)
$(MAKE_INSTALL) colorpicker.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) dexanimmaster.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) dexanimdialog.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) dexparammaster.xul $(DIST)\bin\res\samples
@ -34,6 +35,7 @@ install:: $(DLL)
$(MAKE_INSTALL) xpmenu.xul $(DIST)\bin\res\samples
clobber::
rm -f $(DIST)\res\samples\colorpicker.xul
rm -f $(DIST)\res\samples\dexanimmaster.xul
rm -f $(DIST)\res\samples\dexanimdialog.xul
rm -f $(DIST)\res\samples\dexparammaster.xul