Javascript,在按下按钮时添加一个删除CSS(重新加载快门)

Javascript, adding an removing CSS on button press (shutter reloaded)

本文关键字:一个 删除 CSS 新加载 快门 加载 按钮 Javascript 添加      更新时间:2023-09-26

我试过编辑Shutter Reloaded脚本,只需在按下调整大小按钮时添加一点CSS,但我无法让它工作,因为我的javascript知识很糟糕。这就是我一直在做的事情:

  Resize : function(ln) {
             if ( this.resizing ) return;
             if ( ! this.I('shShutter') ) return;
             var W = this.I('shWrap');
             if ( W ) W.style.visibility = 'hidden';
    window.setTimeout(function(){shutterReloaded.resizing = null},500);
    window.setTimeout(new Function('shutterReloaded.VP = null;shutterReloaded.Make("'+ln+'");'),100);
    this.resizing = true;
    document.getElementById("colour").style.property=display="none";
    },

我想在div #colour,中添加:display: "none";,但是的,似乎无法使其发挥作用。

页面是这样的:链接

拥有其余的代码可能也会有所帮助:

shutter.js

你们知道吗?

你就快到了,试试这个:

document.getElementById("colour").style.display="none";