Wikipedia para siempre
ShareCode
Permalink: http://www.treeweb.es/u/974/ 01/02/2011

ShareCode

1 <div id="resultado">2 </div>3 4 5 <script type="text/javascript">6 var res = document.getElementById('resultado');7 8 9 var Dialog = function() {10  this.uno =function() {alert('esto es uno');};11  this.dos = function() {alert('esto es dos')};12  13  14  // Constructor15  var dom = document.createElement('div');16  dom.style.border = 'solid black 1px';17  dom.style.position = 'absolute';18  dom.style.minWidth = '300px';19  dom_title = document.createElement('div');20  dom_title.innerHTML = 'Título';21  dom_title.style.backgroundColor = 'rgba(255,255,255,0.8)';22  dom_title.style.fontWeight = 'bold';23  dom_title.style.textAlign = 'center';24  dom.appendChild(dom_title);25  26  27  28  document.body.appendChild(dom);29  30  31  }32 33 34 var midialog = new Dialog();35 36 37 38 39 </script>
Enlace
El enlace para compartir es: