Aufrechterhaltung FireFox und IE-browser
Verfasst: Di 22. Mai 2007, 15:42
Angesehener FJ !
Ansucht euch zu beigeben Aufrechterhaltung FireFox
und IE-browser.
Here simple example for Firefox add-ons
myphoneexplorer.xul
-------------------------------------cute here---------------------
<?xml version="1.0"?>
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- common context-menu -->
<popup id="contentAreaContextMenu">
<!--menuseparator id="myphoneexplorer-separator-menuitem" enabled="true"/ -->
<menuitem id="myphoneexplorer-image-menuitem" label="Download in phone..." enabled="true" oncommand="helpmenu();" />
</popup>
</overlay>
-------------------------------------/cute here---------------------
and myphoneexplorer.js
-------------------------------------cute here---------------------
var phishtankPrefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch("extensions.myphoneexplorer.");
}
,
_contextMenu: null,
get contextMenu() {
var cm=this._contextMenu;
if(!cm) {
this._contextMenu = cm =
document.getElementById("contentAreaContextMenu") ||
document.getElementById("messagePaneContext")
}
return cm;
}
}
function helpmenu()
{
var theurl=window.content.location.href;
if(theurl != "" && theurl != " " && theurl != "NULL")
{
var thefin = btoa(theurl);
window.content.location.href = ""D:\\Program Files\\MyPhoneExplorer\\MyPhoneExplorer.exe\" \"%1\";
}
-------------------------------------/cute here---------------------
Fur IE browser
-------------------------------------/cute here---------------------
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\&Downloads in phone...]
@="res://D:\\Program Files\\MyPhoneExplorer\\MyPhoneExplorer.exe"
-------------------------------------/cute here---------------------
Das allein einfache Beispiele des Codes und sie UnArbeiten. Benutigen in Nacharbeit.
Ansucht euch zu beigeben Aufrechterhaltung FireFox
und IE-browser.
Here simple example for Firefox add-ons
myphoneexplorer.xul
-------------------------------------cute here---------------------
<?xml version="1.0"?>
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- common context-menu -->
<popup id="contentAreaContextMenu">
<!--menuseparator id="myphoneexplorer-separator-menuitem" enabled="true"/ -->
<menuitem id="myphoneexplorer-image-menuitem" label="Download in phone..." enabled="true" oncommand="helpmenu();" />
</popup>
</overlay>
-------------------------------------/cute here---------------------
and myphoneexplorer.js
-------------------------------------cute here---------------------
var phishtankPrefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch("extensions.myphoneexplorer.");
}
,
_contextMenu: null,
get contextMenu() {
var cm=this._contextMenu;
if(!cm) {
this._contextMenu = cm =
document.getElementById("contentAreaContextMenu") ||
document.getElementById("messagePaneContext")
}
return cm;
}
}
function helpmenu()
{
var theurl=window.content.location.href;
if(theurl != "" && theurl != " " && theurl != "NULL")
{
var thefin = btoa(theurl);
window.content.location.href = ""D:\\Program Files\\MyPhoneExplorer\\MyPhoneExplorer.exe\" \"%1\";
}
-------------------------------------/cute here---------------------
Fur IE browser
-------------------------------------/cute here---------------------
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\&Downloads in phone...]
@="res://D:\\Program Files\\MyPhoneExplorer\\MyPhoneExplorer.exe"
-------------------------------------/cute here---------------------
Das allein einfache Beispiele des Codes und sie UnArbeiten. Benutigen in Nacharbeit.