Страницы: 1
Open Error Console in Sidebar/New Tab(Firefox 4+)
Автор: init
Описание: Кнопка позволяет открывать/закрывать консоль ошибок в боковой панели (удобно для владельцев широких экранов). Можно открывать в новой вкладке. Режим открытия задается при помощи контекстного меню.
Список клавиш:
Левая кнопка мыши - открыть/закрыть консоль ошибок в боковой панели (или открыть в новой вкладке).
Правая кнопка мыши - открыть контекстное меню с выбором режима работы.
Средняя кнопка мыши - очистить вывод консоли ошибок.
Левая кнопка мыши + Alt/Ctrl/Shift - открыть обычное контекстное меню кнопок.
custombutton://%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Ccustombutton%20xmlns%3Acb%3D%22http%3A//xsms.nm.ru/custombuttons/%22%3E%0A%20%20%3Cname%3EOpen%20Error%20Console%20in%20Sidebar/New%20Tab%3C/name%3E%0A%20%20%3Cimage%3E%3C%21%5BCDATA%5Bdata%3Aimage/png%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAIAAACQKrqGAAAAB3RJTUUH1gQZEiwBgbbHYQAAANJJREFUeJyNkTEKwkAQRf8sW9lpFy1s0giCJxA8hKiIN7LxHCm9gSdIa0QEm4iNYpNgMslYbEiyAaNT/Z19zN/5S6vd6xDw7ZnjezldNRtpHYTsjnsuAGA9TLZ7Hkw6pfDOy+Tib6an4/VBmN9B3DKyKNEaxOL1f5K0CBXS4pVE1MamuQJL4SDShrIocHMqERlt+aS5QmTtREQiYhxEpKLjTCGyErWu68eIFeJmUnXamBhUG7RsGajU1a7vTJsEylY9ByuTVBSytt+vKhOC4/+FAh9V5XFg5yMYXQAAAABJRU5ErkJggg%3D%3D%5D%5D%3E%3C/image%3E%0A%20%20%3Cmode%3E0%3C/mode%3E%0A%20%20%3Cinitcode%3E%3C%21%5BCDATA%5Bvar%20openInSidebarPref%20%3D%20%22customButton.openErrorConsole.openInSidebar%22%3B%0Avar%20openInSidebar%20%3D%20cbu.getPrefs%28openInSidebarPref%29%3B%0Aif%20%28openInSidebar%20%3D%3D%20null%29%20%7B%0A%09openInSidebar%20%3D%20true%3B%0A%09cbu.setPrefs%28openInSidebarPref%2C%20openInSidebar%29%3B%0A%7D%0A%0Athis.appendMenu%20%3D%20this.appendChild%28cbu.makeXML%28%0A%09%3Cmenupopup%20xmlns%3D%22http%3A//www.mozilla.org/keymaster/gatekeeper/there.is.only.xul%22%3E%0A%20%09%3Cmenuitem%20type%3D%22radio%22%20label%3D%22%22%20oncommand%3D%22this.parentNode.parentNode.toggleOpenInSidebarPref%28true%29%3B%22%20/%3E%0A%20%09%3Cmenuitem%20type%3D%22radio%22%20label%3D%22%22%20oncommand%3D%22this.parentNode.parentNode.toggleOpenInSidebarPref%28false%29%3B%22%20/%3E%0A%09%3C/menupopup%3E%0A%29%29%3B%0Aif%28cbu.getPrefs%28%22general.useragent.locale%22%29%20%3D%3D%20%22ru%22%29%20%7B%0A%09var%20menuLabel1%20%3D%20%22%u041E%u0442%u043A%u0440%u044B%u0432%u0430%u0442%u044C%20%u0432%20%u0431%u043E%u043A%u043E%u0432%u043E%u0439%20%u043F%u0430%u043D%u0435%u043B%u0438%22%3B%0A%09var%20menuLabel2%20%3D%20%22%u041E%u0442%u043A%u0440%u044B%u0432%u0430%u0442%u044C%20%u0432%20%u043D%u043E%u0432%u043E%u0439%20%u0432%u043A%u043B%u0430%u0434%u043A%u0435%22%3B%0A%09var%20sidebarTitle%20%3D%20%22%u041A%u043E%u043D%u0441%u043E%u043B%u044C%20%u043E%u0448%u0438%u0431%u043E%u043A%22%3B%0A%7D%20else%20%7B%0A%09var%20menuLabel1%20%3D%20%22Open%20in%20sidebar%22%3B%0A%09var%20menuLabel2%20%3D%20%22Open%20in%20new%20tab%22%3B%0A%09var%20sidebarTitle%20%3D%20%22Error%20console%22%3B%0A%7D%0Athis.appendMenu.children%5B0%5D.label%20%3D%20menuLabel1%3B%0Athis.appendMenu.children%5B1%5D.label%20%3D%20menuLabel2%3B%0Aif%28openInSidebar%29%20%7B%0A%09this.appendMenu.children%5B0%5D.setAttribute%28%22checked%22%2C%20%22true%22%29%3B%0A%7D%20else%20%7B%0A%09this.appendMenu.children%5B1%5D.setAttribute%28%22checked%22%2C%20%22true%22%29%3B%0A%7D%0A%0Athis.toggleOpenInSidebarPref%20%3D%20function%28setting%29%20%7B%0A%09openInSidebar%20%3D%20setting%3B%0A%09cbu.setPrefs%28openInSidebarPref%2C%20openInSidebar%29%3B%0A%7D%0A%0Avar%20bc%20%3D%20cbu.makeXML%28%0A%20%20%20%20%3Cbroadcaster%20xmlns%3D%7Bxulns%7D%20id%3D%22cbViewConsoleSidebar%22%20autoCheck%3D%22false%22%0A%20%20%20%20%09label%3D%22%22%20%0A%20%20%20%20%20%20%20%20type%3D%22checkbox%22%20group%3D%22sidebar%22%20sidebarurl%3D%22chrome%3A//global/content/console.xul%22%20/%3E%0A%09%29%3B%0A%09%09%09%0A%09document.getElementById%28%22mainBroadcasterSet%22%29.appendChild%28bc%29%3B%0A%09this.setAttribute%28%22observes%22%2C%20%22cbViewConsoleSidebar%22%29%3B%0A%09%0A%09var%20sb%20%3D%20document.getElementById%28%22sidebar%22%29%3B%0A%09if%28sb%29%20%7B%0A%09%20var%20sbDoc%20%3D%20sb.contentDocument%3B%0A%09%20var%20consoleArea%20%3D%20sbDoc.getElementById%28%22ConsoleBox%22%29%3B%0A%09%7D%09%0A%09%20%09%20%09%0Athis.onclick%20%3D%20function%28event%29%20%7B%0A%20if%28event.button%20%3D%3D%200%29%20%7B%0A%20%09function%20OpenJSConsoleInNewTab%28%29%20%7B%0A%09%09gBrowser.selectedTab%20%3D%20gBrowser.addTab%28%29%3B%0A%09%09var%20URL%3D%27chrome%3A//global/content/console.xul%27%3B%0A%09%09loadURI%28URL%29%3B%0A%09%7D%0A%09function%20ToggleJSConsoleInSidebar%28%29%20%7B%0A%09%09toggleSidebar%28%27cbViewConsoleSidebar%27%29%3B%0A%09%09sbLabel%20%3D%20document.getElementById%28%22sidebar-title%22%29%3B%0A%09%09sbLabel.value%20%3D%20sidebarTitle%3B%0A%09%7D%0A%09if%28event.target%20%3D%3D%20this%29%20%7B%0A%09%09if%20%28openInSidebar%29%20%7B%0A%09%09%09ToggleJSConsoleInSidebar%28%29%3B%0A%09%09%7D%20else%20%7B%0A%09%09%09OpenJSConsoleInNewTab%28%29%3B%0A%09%09%7D%0A%09%7D%0A%20%7D%0A%20else%20if%28event.button%20%3D%3D%201%29%20%7B%0A%09%20function%20clear%28%29%20%7B%0A%09%20%09consoleService%20%3D%20Components.classes%5B%22@mozilla.org/consoleservice%3B1%22%5D.getService%28Components.interfaces.nsIConsoleService%29%3B%0A%20%20%20%20%20%09%09consoleService.logStringMessage%28null%29%3B%0A%20%20%20%20%09%09consoleService.reset%28%29%3B%0A%09%20%7D%0A%09%20clear%28%29%3B%0A%20%7D%0A%20else%20if%28event.button%20%3D%3D%202%20%26%26%20%21event.ctrlKey%20%26%26%20%21event.shiftKey%20%26%26%20%21event.altKey%20%26%26%20%21event.metaKey%29%20%7B%0A%20%20this.showMenu%28event%2C%20true%2C%20this.appendMenu%29%3B%0A%20%7D%0A%7D%0A%0Athis.oncontextmenu%20%3D%20function%28event%29%20%7B%0A%20if%28event.button%20%3D%3D%202%20%26%26%20%21event.ctrlKey%20%26%26%20%21event.shiftKey%20%26%26%20%21event.altKey%20%26%26%20%21event.metaKey%29%20%7B%0A%20%20%20%20%20%20%20%20event.preventDefault%28%29%3B%0A%20%20%20%20%20%20%20%20event.stopPropagation%28%29%3B%0A%20%7D%0A%7D%0A%0Athis.showMenu%20%3D%20function%28e%2C%20isContext%2C%20appendMenu%29%20%7B%0A%09document.popupNode%20%3D%20this.ownerDocument.popupNode%20%3D%20this%3B%0A%09if%28%21appendMenu%29%0A%09%09appendMenu%20%3D%20this.appendMenu%3B%0A%09if%28%22openPopupAtScreen%22%20in%20appendMenu%29%0A%09%09appendMenu.openPopupAtScreen%28e.screenX%2C%20e.screenY%2C%20isContext%29%3B%0A%09else%0A%09%09appendMenu.showPopup%28this%2C%20e.screenX%2C%20e.screenY%2C%20isContext%20%3F%20%22context%22%20%3A%20%22popup%22%2C%20null%2C%20null%29%3B%0A%7D%5D%5D%3E%3C/initcode%3E%0A%20%20%3Ccode%3E%3C%21%5BCDATA%5B/*CODE*/%5D%5D%3E%3C/code%3E%0A%20%20%3Caccelkey%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C/accelkey%3E%0A%20%20%3Chelp%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C/help%3E%0A%20%20%3Cattributes/%3E%0A%3C/custombutton%3E
Код инициализации:
var openInSidebarPref = "customButton.openErrorConsole.openInSidebar"; var openInSidebar = cbu.getPrefs(openInSidebarPref); if (openInSidebar == null) { openInSidebar = true; cbu.setPrefs(openInSidebarPref, openInSidebar); } this.appendMenu = this.appendChild(cbu.makeXML( <menupopup xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <menuitem type="radio" label="" oncommand="this.parentNode.parentNode.toggleOpenInSidebarPref(true);" /> <menuitem type="radio" label="" oncommand="this.parentNode.parentNode.toggleOpenInSidebarPref(false);" /> </menupopup> )); if(cbu.getPrefs("general.useragent.locale") == "ru") { var menuLabel1 = "Открывать в боковой панели"; var menuLabel2 = "Открывать в новой вкладке"; var sidebarTitle = "Консоль ошибок"; } else { var menuLabel1 = "Open in sidebar"; var menuLabel2 = "Open in new tab"; var sidebarTitle = "Error console"; } this.appendMenu.children[0].label = menuLabel1; this.appendMenu.children[1].label = menuLabel2; if(openInSidebar) { this.appendMenu.children[0].setAttribute("checked", "true"); } else { this.appendMenu.children[1].setAttribute("checked", "true"); } this.toggleOpenInSidebarPref = function(setting) { openInSidebar = setting; cbu.setPrefs(openInSidebarPref, openInSidebar); } var bc = cbu.makeXML( <broadcaster xmlns={xulns} id="cbViewConsoleSidebar" autoCheck="false" label="" type="checkbox" group="sidebar" sidebarurl="chrome://global/content/console.xul" /> ); document.getElementById("mainBroadcasterSet").appendChild(bc); this.setAttribute("observes", "cbViewConsoleSidebar"); var sb = document.getElementById("sidebar"); if(sb) { var sbDoc = sb.contentDocument; var consoleArea = sbDoc.getElementById("ConsoleBox"); } this.onclick = function(event) { if(event.button == 0) { function OpenJSConsoleInNewTab() { gBrowser.selectedTab = gBrowser.addTab(); var URL='chrome://global/content/console.xul'; loadURI(URL); } function ToggleJSConsoleInSidebar() { toggleSidebar('cbViewConsoleSidebar'); sbLabel = document.getElementById("sidebar-title"); sbLabel.value = sidebarTitle; } if(event.target == this) { if (openInSidebar) { ToggleJSConsoleInSidebar(); } else { OpenJSConsoleInNewTab(); } } } else if(event.button == 1) { function clear() { consoleService = Components.classes["@mozilla.org/consoleservice;1"].getService(Components.interfaces.nsIConsoleService); consoleService.logStringMessage(null); consoleService.reset(); } clear(); } else if(event.button == 2 && !event.ctrlKey && !event.shiftKey && !event.altKey && !event.metaKey) { this.showMenu(event, true, this.appendMenu); } } this.oncontextmenu = function(event) { if(event.button == 2 && !event.ctrlKey && !event.shiftKey && !event.altKey && !event.metaKey) { event.preventDefault(); event.stopPropagation(); } } this.showMenu = function(e, isContext, appendMenu) { document.popupNode = this.ownerDocument.popupNode = this; if(!appendMenu) appendMenu = this.appendMenu; if("openPopupAtScreen" in appendMenu) appendMenu.openPopupAtScreen(e.screenX, e.screenY, isContext); else appendMenu.showPopup(this, e.screenX, e.screenY, isContext ? "context" : "popup", null, null); }
Отсутствует
Перестала работать на 20-ке. Даже после того, как профиксить ее Convert E4X, не открывается в sidebar
Отсутствует
У меня после Convert E4X все работает на FF20:
custombutton://%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0D%0A%3Ccustombutton%20xmlns%3Acb%3D%22http%3A//xsms.nm.ru/custombuttons/%22%3E%0A%20%20%3Cname%3EOpen%20Error%20Console%20in%20Sidebar/New%20Tab%3C/name%3E%0A%20%20%3Cimage%3E%3C%21%5BCDATA%5Bdata%3Aimage/png%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAIAAACQKrqGAAAAB3RJTUUH1gQZEiwBgbbHYQAAANJJREFUeJyNkTEKwkAQRf8sW9lpFy1s0giCJxA8hKiIN7LxHCm9gSdIa0QEm4iNYpNgMslYbEiyAaNT/Z19zN/5S6vd6xDw7ZnjezldNRtpHYTsjnsuAGA9TLZ7Hkw6pfDOy+Tib6an4/VBmN9B3DKyKNEaxOL1f5K0CBXS4pVE1MamuQJL4SDShrIocHMqERlt+aS5QmTtREQiYhxEpKLjTCGyErWu68eIFeJmUnXamBhUG7RsGajU1a7vTJsEylY9ByuTVBSytt+vKhOC4/+FAh9V5XFg5yMYXQAAAABJRU5ErkJggg%3D%3D%5D%5D%3E%3C/image%3E%0A%20%20%3Cmode%3E0%3C/mode%3E%0A%20%20%3Cinitcode%3E%3C%21%5BCDATA%5Bvar%20openInSidebarPref%20%3D%20%22customButton.openErrorConsole.openInSidebar%22%3B%0Avar%20openInSidebar%20%3D%20cbu.getPrefs%28openInSidebarPref%29%3B%0Aif%20%28openInSidebar%20%3D%3D%20null%29%20%7B%0A%09openInSidebar%20%3D%20true%3B%0A%09cbu.setPrefs%28openInSidebarPref%2C%20openInSidebar%29%3B%0A%7D%0A%0Athis.appendMenu%20%3D%20this.appendChild%28e4xConv_parseXULFromString%28%0A%09%27%3Cmenupopup%20xmlns%3D%22http%3A//www.mozilla.org/keymaster/gatekeeper/there.is.only.xul%22%3E%5Cn%5C%0A%20%09%3Cmenuitem%20type%3D%22radio%22%20label%3D%22%22%20oncommand%3D%22this.parentNode.parentNode.toggleOpenInSidebarPref%28true%29%3B%22%20/%3E%5Cn%5C%0A%20%09%3Cmenuitem%20type%3D%22radio%22%20label%3D%22%22%20oncommand%3D%22this.parentNode.parentNode.toggleOpenInSidebarPref%28false%29%3B%22%20/%3E%5Cn%5C%0A%09%3C/menupopup%3E%27%0A%29%29%3B%0Aif%28cbu.getPrefs%28%22general.useragent.locale%22%29%20%3D%3D%20%22ru%22%29%20%7B%0A%09var%20menuLabel1%20%3D%20%22%u041E%u0442%u043A%u0440%u044B%u0432%u0430%u0442%u044C%20%u0432%20%u0431%u043E%u043A%u043E%u0432%u043E%u0439%20%u043F%u0430%u043D%u0435%u043B%u0438%22%3B%0A%09var%20menuLabel2%20%3D%20%22%u041E%u0442%u043A%u0440%u044B%u0432%u0430%u0442%u044C%20%u0432%20%u043D%u043E%u0432%u043E%u0439%20%u0432%u043A%u043B%u0430%u0434%u043A%u0435%22%3B%0A%09var%20sidebarTitle%20%3D%20%22%u041A%u043E%u043D%u0441%u043E%u043B%u044C%20%u043E%u0448%u0438%u0431%u043E%u043A%22%3B%0A%7D%20else%20%7B%0A%09var%20menuLabel1%20%3D%20%22Open%20in%20sidebar%22%3B%0A%09var%20menuLabel2%20%3D%20%22Open%20in%20new%20tab%22%3B%0A%09var%20sidebarTitle%20%3D%20%22Error%20console%22%3B%0A%7D%0Athis.appendMenu.children%5B0%5D.label%20%3D%20menuLabel1%3B%0Athis.appendMenu.children%5B1%5D.label%20%3D%20menuLabel2%3B%0Aif%28openInSidebar%29%20%7B%0A%09this.appendMenu.children%5B0%5D.setAttribute%28%22checked%22%2C%20%22true%22%29%3B%0A%7D%20else%20%7B%0A%09this.appendMenu.children%5B1%5D.setAttribute%28%22checked%22%2C%20%22true%22%29%3B%0A%7D%0A%0Athis.toggleOpenInSidebarPref%20%3D%20function%28setting%29%20%7B%0A%09openInSidebar%20%3D%20setting%3B%0A%09cbu.setPrefs%28openInSidebarPref%2C%20openInSidebar%29%3B%0A%7D%0A%0Avar%20bc%20%3D%20e4xConv_parseXULFromString%28%0A%20%20%20%20%27%3Cbroadcaster%20xmlns%3D%22%27%20+%20e4xConv_encodeHTML%28xulns%2C%20true%29%20+%20%27%22%20id%3D%22cbViewConsoleSidebar%22%20autoCheck%3D%22false%22%5Cn%5C%0A%20%20%20%20%09label%3D%22%22%20%5Cn%5C%0A%20%20%20%20%20%20%20%20type%3D%22checkbox%22%20group%3D%22sidebar%22%20sidebarurl%3D%22chrome%3A//global/content/console.xul%22%20/%3E%27%0A%09%29%3B%0A%09%09%09%0A%09document.getElementById%28%22mainBroadcasterSet%22%29.appendChild%28bc%29%3B%0A%09this.setAttribute%28%22observes%22%2C%20%22cbViewConsoleSidebar%22%29%3B%0A%09%0A%09var%20sb%20%3D%20document.getElementById%28%22sidebar%22%29%3B%0A%09if%28sb%29%20%7B%0A%09%20var%20sbDoc%20%3D%20sb.contentDocument%3B%0A%09%20var%20consoleArea%20%3D%20sbDoc.getElementById%28%22ConsoleBox%22%29%3B%0A%09%7D%09%0A%09%20%09%20%09%0Athis.onclick%20%3D%20function%28event%29%20%7B%0A%20if%28event.button%20%3D%3D%200%29%20%7B%0A%20%09function%20OpenJSConsoleInNewTab%28%29%20%7B%0A%09%09gBrowser.selectedTab%20%3D%20gBrowser.addTab%28%29%3B%0A%09%09var%20URL%3D%27chrome%3A//global/content/console.xul%27%3B%0A%09%09loadURI%28URL%29%3B%0A%09%7D%0A%09function%20ToggleJSConsoleInSidebar%28%29%20%7B%0A%09%09toggleSidebar%28%27cbViewConsoleSidebar%27%29%3B%0A%09%09sbLabel%20%3D%20document.getElementById%28%22sidebar-title%22%29%3B%0A%09%09sbLabel.value%20%3D%20sidebarTitle%3B%0A%09%7D%0A%09if%28event.target%20%3D%3D%20this%29%20%7B%0A%09%09if%20%28openInSidebar%29%20%7B%0A%09%09%09ToggleJSConsoleInSidebar%28%29%3B%0A%09%09%7D%20else%20%7B%0A%09%09%09OpenJSConsoleInNewTab%28%29%3B%0A%09%09%7D%0A%09%7D%0A%20%7D%0A%20else%20if%28event.button%20%3D%3D%201%29%20%7B%0A%09%20function%20clear%28%29%20%7B%0A%09%20%09consoleService%20%3D%20Components.classes%5B%22@mozilla.org/consoleservice%3B1%22%5D.getService%28Components.interfaces.nsIConsoleService%29%3B%0A%20%20%20%20%20%09%09consoleService.logStringMessage%28null%29%3B%0A%20%20%20%20%09%09consoleService.reset%28%29%3B%0A%09%20%7D%0A%09%20clear%28%29%3B%0A%20%7D%0A%20else%20if%28event.button%20%3D%3D%202%20%26%26%20%21event.ctrlKey%20%26%26%20%21event.shiftKey%20%26%26%20%21event.altKey%20%26%26%20%21event.metaKey%29%20%7B%0A%20%20this.showMenu%28event%2C%20true%2C%20this.appendMenu%29%3B%0A%20%7D%0A%7D%0A%0Athis.oncontextmenu%20%3D%20function%28event%29%20%7B%0A%20if%28event.button%20%3D%3D%202%20%26%26%20%21event.ctrlKey%20%26%26%20%21event.shiftKey%20%26%26%20%21event.altKey%20%26%26%20%21event.metaKey%29%20%7B%0A%20%20%20%20%20%20%20%20event.preventDefault%28%29%3B%0A%20%20%20%20%20%20%20%20event.stopPropagation%28%29%3B%0A%20%7D%0A%7D%0A%0Athis.showMenu%20%3D%20function%28e%2C%20isContext%2C%20appendMenu%29%20%7B%0A%09document.popupNode%20%3D%20this.ownerDocument.popupNode%20%3D%20this%3B%0A%09if%28%21appendMenu%29%0A%09%09appendMenu%20%3D%20this.appendMenu%3B%0A%09if%28%22openPopupAtScreen%22%20in%20appendMenu%29%0A%09%09appendMenu.openPopupAtScreen%28e.screenX%2C%20e.screenY%2C%20isContext%29%3B%0A%09else%0A%09%09appendMenu.showPopup%28this%2C%20e.screenX%2C%20e.screenY%2C%20isContext%20%3F%20%22context%22%20%3A%20%22popup%22%2C%20null%2C%20null%29%3B%0A%7D%0A%0Afunction%20e4xConv_parseXULFromString%28xul%29%20%7B%0A%09xul%20%3D%20xul.replace%28/%3E%5Cs+%3C/g%2C%20%22%3E%3C%22%29%3B%0A%09return%20new%20DOMParser%28%29.parseFromString%28xul%2C%20%22application/xml%22%29.documentElement%3B%0A%7D%0Afunction%20e4xConv_encodeHTML%28s%2C%20isAttr%29%20%7B%0A%09s%20%3D%20String%28s%29%0A%09%09.replace%28/%26/g%2C%20%22%26amp%3B%22%29%0A%09%09.replace%28/%3C/g%2C%20%22%26lt%3B%22%29%0A%09%09.replace%28/%3E/g%2C%20%22%26gt%3B%22%29%0A%09%09.replace%28/%22/g%2C%20%22%26quot%3B%22%29%3B%0A%09if%28isAttr%29%20%7B%0A%09%09s%20%3D%20s%0A%09%09%09.replace%28/%5Ct/g%2C%20%22%26%23x9%3B%22%29%0A%09%09%09.replace%28/%5Cn/g%2C%20%22%26%23xA%3B%22%29%0A%09%09%09.replace%28/%5Cr/g%2C%20%22%26%23xD%3B%22%29%3B%0A%09%7D%0A%09return%20s%3B%0A%7D%5D%5D%3E%3C/initcode%3E%0A%20%20%3Ccode%3E%3C%21%5BCDATA%5B/*CODE*/%5D%5D%3E%3C/code%3E%0A%20%20%3Caccelkey%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C/accelkey%3E%0A%20%20%3Chelp%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C/help%3E%0A%20%20%3Cattributes/%3E%0A%3C/custombutton%3E
Отредактировано bunda1 (05-04-2013 19:25:21)
Отсутствует
Страницы: 1