All pastes #235736 Raw Edit

Mine

public javascript v1 · immutable
·published 2006-11-03 12:33 UTC
rendered paste body
<?xml version="1.0"?> <?xml-stylesheet href="chrome://easybrowsing/skin/overlay.css" type="text/css"?> <!DOCTYPE overlay SYSTEM "chrome://easybrowsing/locale/overlay.dtd"> <overlay id="easybrowsing-overlay"     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">   <script src="overlay.js"/>     <keyset>	  <key id="open-key" keycode="VK_F1" onkeypress="openTab();"/>	  <key id="prev-key" keycode="VK_F2" onkeypress="EasyBrowsing.myOpenTab();"/>	  <key id="next-key" keycode="VK_F3" onkeypress="nextTab();"/></keyset>    <menupopup id="menu_ToolsPopup">   	<menuitem id="easybrowsing-hello" label="easybrowsing"     		oncommand="easybrowsing.onMenuItemCommand(event);"/>   </menupopup>   </overlay>  -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------var EasyBrowsing = {  onLoad: function() {    this.initialized = true;	window.alert("in_load_FUN");	window.addEventListener("onkeypress", function(e) {EasyBrowsing.whichKey(e);}, false);  },  onMenuItemCommand: function() {//    window.open("chrome://easybrowsing/content/hello.xul", "", "chrome");  }, keyPressed: function(event){//alert("keyPressed - OK");window.alert("in_keypressed_fun");		},whichKey: function(event) {	alert.window("which");}, myOpenTab: function() {  window.alert("Hey!");}, prevTab: function() {  alert("Hey 2!");}, nextTab: function() {  alert("Hey 3!");}};window.addEventListener("load", function(e) { EasyBrowsing.onLoad(e); }, false); window.addEventListener("load", function(e) {EasyBrowsing.keyPressed(e);}, false);