= Introduction = jQuery.msgbox Popups a msgbox on the web pages using jquery JavaScript Library = Information = pwwang http://pwwang.com plugin page http://pwwang.com/technology/js-javascript/jquery%e6%8f%92%e4%bb%b6%ef%bc%9adiv%e6%8f%90%e7%a4%ba%e6%a1%86jquery-msgbox-2-0/ = Details = It does: * simulate window.alert, and the title of the box will flash if you try to click other part of the page * simulate window.confirm * allow you to popup a plain text box * allow you to popup a iframe in the box * allow you to popup a box with Ajax method * be closed automatically as you wish * mask the back contents of page when box showed * do an event you designated when the box closes * be dragged to anywhere in the window as you wish * decided whether popup another box if the page is in the iframe of a box = Version 1.0 = * add basic functions, non-jQuery version = Version 2.0 = * jQuery version, change the code in form of jQuery * change the initial auto close time value from -1 to 0, more logical * dispatch the css(except the neccessary css to display) * change realization of close event from 'eval' to function * add close icon * the background opacity(0~1) is configurable * add the event after ajax loaded, the data can be passed by parameters * fix a drag bug * fix a bug about "select" * prevent dragging on close icon * fix a bug that when the msgbox is closed manually, but the timer is still runs * when window resized, the location of the msgbox is relocated. = Version 3.0 = * fix a bug of close event * add a mode of using the plugin just by a string * add a configurable css of title, and fix the bug * add a parameter oneboxmode to control whether the msgbox is shown in an iframe * add a effect that the title flashes when clicking the background * auto-calculated the close icon location * auto-calculated the height of iframe * fix a bug of background * fix a bug that the drag does not stop when the mouse enter the iframe = Version 3.1 = * fix the bug that display can not get got in IE 8 * the msgbox code is removed when msgbox closed = Version 4.0 = * fix the bug that ie6 can not find display property and the close icon can not be found * add a parameter to hide the scroll bar in firefox * add the type of "alert" * add the type of "confirm" * fix a bug of "oneboxmode" * provide jquery.msgbox.min.js * fix other bugs = Version 4.1 = * show "Close" before the close icon loaded * fix a bug of displaying = Version 4.2 = * fix a bug of "select" = Version 5.0 = * change a set of parameters' name * add the type of "input" * add a parameter to control whether drag is enabled * add a parameter to control whether animation is enabled * keep the msgbox stay when window scrolled * add a external method to close the msgbox * do not force a close icon * remove the parameters : oneboxmode, hidescrollbar * change the drag function, using the jquery.dragndrop plugin * change the content overflow from hidden to auto = Version 6.0 = * change the frame of codes of the plugin. New codes help to provide external method * provide serval external method( closing the box from outside for example) * parameter 'type' is not standalone any more, it is included in 'content' * parameter 'closeImg' is changed to 'closeIcon', include types of 'string' or 'icon' * return value could be got directly via $mb.value, ($mb = $.msgbox(...)) * serval different animations for the box showing and closing provided = Next version = * provide a textarea for input