liuxb
非常火狐
非常火狐
  • UID26160
  • 注册日期2008-09-05
  • 最后登录2021-12-02
  • 发帖数659
  • 经验324枚
  • 威望0点
  • 贡献值184点
  • 好评度16点
阅读:1466回复:1

求助:查找栏findbar的两个小脚本(findbar on top和Ctrl+F Toggle findbar)失效了

楼主#
更多 发布于:2011-02-22 11:10
在b12pre上失效了.
哪位给修一下,谢谢.
/* Find bar on top */
(function () {
var findbar = document.getElementById('FindToolbar');

//move findbar to the top
var tabpanels = gBrowser.mPanelContainer;
tabpanels.parentNode.insertBefore(findbar, tabpanels);

//bottom border
findbar.setAttribute("style", "-moz-border-bottom-colors: none; border-top: 0px; border-bottom: 1px solid ThreeDShadow; max-height: 21px !important; min-height: 21px !important; margin:-4px 0px 0px 0px !important;");
})();


// Toggle findbar
function toggleFindbar() {
    if (gIeTab.goDoCommand('find')) return; 
		    if (document.getElementById('FindToolbar').hidden==true) {
        gFindBar.onFindCommand();
    }
    else
        gFindBar.close();
}
document.getElementById("cmd_find").setAttribute("oncommand",
    "toggleFindbar();");
我的...
心跳五百年
火狐狸
火狐狸
  • UID34652
  • 注册日期2010-11-22
  • 最后登录2018-03-27
  • 发帖数111
  • 经验30枚
  • 威望0点
  • 贡献值18点
  • 好评度0点
1楼#
发布于:2011-02-22 11:10
同求。。。。。。。
游客

返回顶部