2 <style type="text/css" title="AppleStyle">
8 background-color:rgba(0,0,0,0.82);
13 .dialog-cancel-button {
21 font: 12px "Helvetica Neue";
35 dialog = new Dialog ();
40 var div = document.createElement('div');
41 div.setAttribute('id', 'dialog-background');
42 div.setAttribute('class', 'dialog-background');
44 var button_div = document.createElement('div');
45 button_div.setAttribute('class', 'dialog-button dialog-cancel-button');
46 div.appendChild (button_div);
47 createDialogButton (button_div, 'Cancel', 66);
49 document.body.appendChild(div);
50 this.background = div;
53 function createDialogButton (div, title, minwidth)
55 element = document.createElement('div');
56 element.setAttribute ("style", 'display:inline-block;text-align:center;line-height:24px;background:url(button_center.png) repeat-x top left;');
57 div.appendChild (element);
58 element.innerHTML = title;
64 <body onload='load();'>