Tip: You can modify some of the code before running
<p> Sina Blog Tips window </p> <! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" > <ptml> <pead> <meta http-equiv= " Content-type "c> <title> Sina Blog Tips window, recommended!" </title> <script> Function Dialog () {var titile = '; var width = #; var height = 180; var src = ' "; var path = ""; var sfunc = ' <input id= ' Dialogok "type=" button "http:\/\/www.butong.net\/other\/061111\/smb_btn_bg.gif\"); line-height:20px "value=" confirmation "/> <input id=" dialogcancel "type=" button "http:\/\/www.butong.net\/other\/061111 \/smb_btn_bg.gif\ '); line-height:20px; "value=" Cancel "/>"; var sclose = ' <input type= ' image "Id=" Dialogboxclose "src=" http:\/\/www.butong.net\/other\/061111\/ Dialogclose0.gif "border=" 0 "width=" "height=" "align=" Absmiddle "/>"; var sbody = ' <table id= "Dialogbodybox" border= "0" align= "center" cellpadding= "0" cellspacing= "0" >\ <tr Hei Ght= "Ten" ><td colspan= "4" ></td></tr>\ <tr>\ <td WIdth= "Ten" ></td>\ <td width= "align=" center "valign=" Absmiddle "></td>\ <td id=" dialogmsg "></td&" Gt;\ <td width= "Ten" ></td>\ </tr>\ <tr height= "Ten" ><td colspan= "4" align= "Center" >& Lt;/td></tr>\ <tr><td id= "Dialogfunc" colspan= "4" align= "center" > ' + sfunc + ' </td></tr& Gt;\ <tr height= "Ten" ><td colspan= "4" align= "center" ></td></tr>\ </table>\ '; var sbox = ' <table id= ' dialogbox "width=" ' + width + ' "border=" 0 "cellpadding=" 0 "cellspacing=" 0 ">\ <tr height= "1" bgcolor= "#D6E3EB" ><td></td></tr>\ <tr height= "#6795B4" bgcolor= >\ >\ <table width= "100%" border= "0" cellpadding= "0" cellspacing= "0" >\ <tr>\ <td width = "6" ></td>\ <td id= "Dialogboxtitle"> System hint Information </td>\ <td id=" dialogclose "width=" "align=" right "valign=" middle ">\ ' + sclose + ' \ </td>\ <td width= "6" ></td>\ </tr>\ </table>\ </tr>\ <tr height= "2" bgcolor= "#EDEDED" ><td></td></tr>\ <tr id= "DialogHeight" + height + ' ">\ <td id=" Dialogbody "> ' + sbody + ' </td>\ </tr>\ </table>\ <div Id= "Dialogboxshadow" ></div>\ "; function $ (_sid) {return document.getElementById (_sid)} this.show = function () {$ (' dialogbodybox ')? Function () {}: This.init (); This.middle (' dialogbox '); This.shadow ();} This.reset = function () {this.hidemodule (' select ', '); $ (' DialogBox '). style.display= ' None '; $ (' Dialogboxshadow '). Style.display = "None"; $ (' Dialogbody '). InnerHTML = Sbody;} this.html = function (_shtml) {$ ("dialogbody"). InnerHTML = _shtml;this.show ();} this.init = function () {$ (' dialogcase ')? $ (' DIALOGCAse '). Parentnode.removechild ($ (' dialogcase ')): function () {}; var odiv = document.createelement (' span '); Odiv.id = "Dialogcase"; odiv.innerhtml = Sbox; Document.body.appendChild (ODIV); } This.button = function (_sid, _SFUC) {if ($ (_SID)) {$ (_sid). style.display = '; if ($ (_sid). AddEventListener) {if ($ (_SID). Act) {$ (_SID). RemoveEventListener (' click ', function () {eval ($ (_sid). Act)} , false); $ (_sid). act = _SFUC; $ (_SID). AddEventListener (' click ', function () {eval (_SFUC)}, False); }else{if ($ (_SID). Act) {$ (_SID). DetachEvent (' onclick ', function () {eval ($ (_sid). Act)});} $ (_sid). act = _SFUC; $ (_SID). attachevent (' onclick ', function () {eval (_SFUC)}); }} This.shadow = function () {var Oshadow = $ (' Dialogboxshadow '); var Odialog = $ (' dialogbox '); oshadow[' style ' [' position '] = "absolute"; oshadow[' style ' [' background '] = "#000"; oshadow[' style ' [' display '] = ' "; oshadow[' style ' [' opacity '] = "0.2"; oshadow[' style ' [' filter '] = ' alpha ' (opacity=20) "; oshadow[' style ' [' top '] = odialog.offsettop + 6; oshadow[' style ' [' left '] = odialog.offsetleft + 6; oshadow[' style ' [' width '] = odialog.offsetwidth; oshadow[' style ' [' height '] = odialog.offsetheight; } This.open = function (_surl, _smode) {this.show (); if (!_smode | | _smode = = "No" | | _smode = = "Yes") {$ ("dialogbody"). InnerHTML = <iframe id= ' dialogframe ' width= ' 100% ' height= ' 100% ' frameborder= ' 0 ' scrolling= ' + _smode + ' ></iframe> '; $ ("Dialogframe"). src = _surl; } This.showwindow = function (_surl, _iwidth, _iheight, _smode) {var Owindow; var sleft = (screen.width)? (Screen.width-_iwidth)/2:0; var sTop = (screen.height)? (Screen.height-_iheight)/2:0; if (window.showmodaldialog && _smode = = "M") {Owindow = window.showModalDialog (_surl, "", "dialogwidth:" + _iwidth + "Px;dialogheight:" + _iheight + "px"); else {Owindow = window.open (_surl, ', ' height= ' + _iheight + ', width= ' + _iwidth + ', top= ' + STop + ', left=' + Sleft + ', Toolbar=no, Menubar=no, scrollbars= ' + _smode + ', Resizable=no,location=no, Status=no '); } this.event = function (_smsg, _sok, _scancel, _sclose) {$ (' Dialogfunc '). InnerHTML = Sfunc; $ (' Dialogclose '). InnerHTML = Sclose; $ (' dialogbodybox ') = = null? $ (' dialogbody '). InnerHTML = Sbody:function () {}; $ (' dialogmsg ')? $ (' dialogmsg '). InnerHTML = _smsg:function () {}; This.show (); _sok? This.button (' Dialogok ', _sok) | $ (' Dialogok '). Focus (): $ (' Dialogok '). style.display = ' None '; _scancel? This.button (' Dialogcancel ', _scancel): $ (' Dialogcancel '). style.display = ' None '; _sclose? This.button (' Dialogboxclose ', _sclose): function () {}; _sok? This.button (' Dialogok ', _sok): _sok = = ""? function () {}: $ (' Dialogok '). style.display = ' None '; _scancel? This.button (' Dialogcancel ', _scancel): _scancel = = ""? function () {}: $ (' Dialogcancel '). style.display = ' None '; } This.set = function (_oattr, _sval) {var Oshadow = $ (' Dialogboxshadow '); var odialog= $ (' dialogbox '); var oheight = $ (' dialogheight '); if (_sval!= ') {switch (_oattr) {case ' title ': $ (' Dialogboxtitle '). InnerHTML = _sval; title = _sval; Break Case ' width ': odialog[' style ' [' width '] = _sval; width = _sval; Break Case ' height ': oheight[' style ' [' height '] = _sval; Height = _sval; Break Case ' src ': if (parseint (_sval) > 0) {$ (' Dialogboxface ') $ (' dialogboxface '). src = path + _sval + '. gif ': F Unction () {}; }else{$ (' Dialogboxface ')? $ (' dialogboxface '). src = _sval:function () {}; src = _sval; Break } this.middle (' DialogBox '); oshadow[' style ' [' top '] = odialog.offsettop + 6; oshadow[' style ' [' left '] = odialog.offsetleft + 6; oshadow[' style ' [' width '] = odialog.offsetwidth; oshadow[' style ' [' height '] = odialog.offsetheight; } This.movestart = function (event, _sid) {var oobj = $ (_SID); Oobj.onmousemove = MouseMove; Oobj.onmouseup = MouseUp; Oobj.setcapture? Oobj.setcapture (): function () {}; Oevent = window.event? Window.event:event; var dragdata = {x:oevent.clientx, y:oevent.clienty}; var backdata = {X:parseint (oObj.style.top), Y:parseint (OObj.style.left)}; function MouseMove () {var oevent = window.event? window.event:event; var ileft = oevent.clientx-dragdata["x"] + parseint (oObj.style.left); var itop = oevent.clienty-dragdata["y"] + parseint (oObj.style.top); OObj.style.left = ILeft; OObj.style.top = Itop; $ (' Dialogboxshadow '). Style.left = ILeft + 6; $ (' Dialogboxshadow '). Style.top = Itop + 6; Dragdata = {x:oevent.clientx, y:oevent.clienty}; </script> <script language=javascript type=text/javascript> function setcopy (_stxt) {try{ Clipboarddata.setdata (' Text ', _stxt)}catch (e) {}} </pead> <BODY> http://www.111cn.net click Copy <script Language=javascript type=text/javascript>new Dialog (). Init ();</script> </BODY></HTML>
Tip: You can modify some of the code before running