home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 September
/
Chip_2003-09_cd1.bin
/
zkuste
/
macos
/
Files
/
wamcom.sit
/
wamcom-131-macos9-20030721
/
res
/
samples
/
status.xul
< prev
next >
Wrap
Extensible Markup Language
|
2003-06-30
|
2KB
|
49 lines
<?xml version="1.0"?>
<!-- <!DOCTYPE window> -->
<window xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script>
var mode = "undetermined";
function kickProgressMeter() {
var meter = document.getElementById("Browser:LoadingProgress");
dump( "Meter was mode=" + meter.getAttribute("mode") + " value=" + meter.getAttribute("value") + "\n" );
if ( mode == "undetermined" ) {
mode = "normal";
var random = Math.round( Math.random() * 100 )
dump("Setting meter to (" + mode + ") " + random.toString() + "\n" );
meter.setAttribute( "value", random.toString() );
} else {
mode = "undetermined";
dump("Setting meter to (undetermined)\n");
}
meter.setAttribute( "mode", mode );
}
</script>
<broadcaster id="Browser:LoadingProgress"/>
<html:center>
<html:table border="" cols="3" width="99%" style="color-background:rgb(192,192,192);">
<html:tr>
<html:td width="3%" nowrap="" style="border: 1px inset rgb(192,192,192);">
<html:button onclick="kickProgressMeter()" height="12">
X
</html:button>
</html:td>
<html:td width="15%" nowrap="" style="border: 1px inset rgb(192,192,192);">
<progressmeter id="meter" mode="normal" value="61">
<observes element="Browser:LoadingProgress" attribute="value" />
<observes element="Browser:LoadingProgress" attribute="mode" />
</progressmeter>
</html:td>
<html:td width="82%" nowrap="" style="border: 1px inset rgb(192,192,192);">
Document: Done (even a stopped clock is right twice a day)
</html:td>
</html:tr>
</html:table>
</html:center>
</window>