2013-08-18 98 views
0

我試過編輯Shutter Reloaded腳本來簡單地添加一點CSS時按下調整大小按鈕,但我不能讓它工作作爲我的JavaScript知識是可怕的。這是我一直在做綁:Javascript,添加刪除按鈕按下按鈕(快門重新加載CSS)

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"; 
    }, 

我想補充:display: "none";div #colour,但是,是似乎無法得到它的工作。

頁它對是這樣的:Link

它可能有助於有代碼的其餘部分也:

shutter.js

任何想法的傢伙?

回答

0

就快,試試這個:

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

啊你真棒,謝謝!這是我所需要的,謝謝你花時間回答! – user2684403

+0

不客氣。 :) – eggshot