Guest User

Untitled

a guest
Apr 16th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. var dialogBox = Class.create({
  2. initialize: function(content, dialog, backdrop)
  3. {
  4. this.divContent = content;
  5.  
  6.  
  7. this.dialog = Array();
  8. this.dialog.width = (dialog.width)? dialog.width : '300px';
  9. this.dialog.height = (dialog.height)? dialog.height : '300px';
  10. this.dialog.Background = (dialog.Background)? dialog.Background : '#eaeaea';
  11. this.dialog.Border = (dialog.Border)? dialog.Border : '1px solid #bbb';
  12. this.dialog.effect = (dialog.effect)? dialog.effect : 'appear';
  13. this.dialog.duration = (dialog.duration)? dialog.duration : .5;
  14. this.dialog.isDraggable = (dialog.isDraggable)? dialog.isDraggable : false;
  15. this.dialog.roundCornersEnable = (dialog.roundCornersEnable)? dialog.roundCornersEnable : false;
  16. this.dialog.roundCornersRadius = (dialog.roundCornersRadius)? dialog.roundCornersRadius : 10;
  17.  
  18.  
  19. this.backdrop = Array();
  20. this.backdrop.background = (backdrop.background) ? backdrop.background : '#000';
  21. this.backdrop.effect = (backdrop.effect) ? backdrop.effect : 'appear';
  22. this.backdrop.opacity = (backdrop.opacity) ? backdrop.opacity : 0.8;
  23. this.backdrop.duration = (backdrop.duration) ? backdrop.duraction : .5
  24. },
Add Comment
Please, Sign In to add comment