I am trying to use the following function with my API. It works, but the background is not masked. What's wrong?
dialog: function(message) { this.OCache = $('<div class="modal">'+ message+'</div>').appendTo('body').overlay ({top: 0,mask:{color: '#000',loadSpeed:200,opacity:0.5},closeOnClick:true,load:true}); }
and this is css for modal block
.modal { display:none; width:400px; background-color:#000; border:1px solid #fff; padding:10px 15px; display:none; color:#fff; text-align:left; font-size:12px; opacity:0.8; -moz-box-shadow:0 0 10px #000; -webkit-box-shadow:0 0 10px #000; }
javascript
Yakup
source share