开发者

Disable HTML elements

How do I disable page?

I have a following code written using scriptaculous/prototype. It just moves 开发者_C百科a div to the center (actually at 100,100). I want the entire background (all elements) to be disabled except this div.

new Effect.Move(element, {x:100,y:100,duration:1});


I would suggest covering the rest of your elements in a div and then using the z-index to move your centering div on top. Similar to below.

#disableElements{  
 display:none;  
 position:fixed;  
 height:100%;  
 width:100%;  
 top:0;  
 left:0;  
} 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜