Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var dialogBox = Class.create({
- initialize: function(content, dialog, backdrop)
- {
- this.divContent = content;
- this.dialog = Array();
- this.dialog.width = (dialog.width)? dialog.width : '300px';
- this.dialog.height = (dialog.height)? dialog.height : '300px';
- this.dialog.Background = (dialog.Background)? dialog.Background : '#eaeaea';
- this.dialog.Border = (dialog.Border)? dialog.Border : '1px solid #bbb';
- this.dialog.effect = (dialog.effect)? dialog.effect : 'appear';
- this.dialog.duration = (dialog.duration)? dialog.duration : .5;
- this.dialog.isDraggable = (dialog.isDraggable)? dialog.isDraggable : false;
- this.dialog.roundCornersEnable = (dialog.roundCornersEnable)? dialog.roundCornersEnable : false;
- this.dialog.roundCornersRadius = (dialog.roundCornersRadius)? dialog.roundCornersRadius : 10;
- this.backdrop = Array();
- this.backdrop.background = (backdrop.background) ? backdrop.background : '#000';
- this.backdrop.effect = (backdrop.effect) ? backdrop.effect : 'appear';
- this.backdrop.opacity = (backdrop.opacity) ? backdrop.opacity : 0.8;
- this.backdrop.duration = (backdrop.duration) ? backdrop.duraction : .5
- },
Add Comment
Please, Sign In to add comment