432068-2.xul 647 B

12345678910111213141516171819202122232425
  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="boom();">
  4. <script type="text/javascript">
  5. function boom()
  6. {
  7. var l = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "listitem");
  8. l.style.display = "none";
  9. var c = document.getElementById("c");
  10. c.parentNode.insertBefore(l, c);
  11. document.getElementById("listbox").removeChild(document.getElementById("c"));
  12. }
  13. </script>
  14. <listbox id="listbox"><listitem/><listitem id="c"/></listbox>
  15. </window>