为了方便 文件都写在一个文件夹下了
dialog.js
(function( $, window, undefined ){ var _basepath = ""; var init = { hide_oprate: 'remove',//when has no button do remove or destroy title : "", button: [], //for example: [{event_method: "click", button_name: "???", callback: function: dosubmit(){form.submit();}, callback_context:this}] and default event is "click" button_container_width: "480px", warning_icon: "" } var _warning_icon = {ok: "url("+ _basepath +"icons.png) -7em -6em;", edit: "url("+ _basepath +"icons.png) -0em -6em;", hard:"url("+ _basepath +"icons.png) -14em -6em;"}; var _$dialog = null; var bindEvent = function ($selector, event, eventfn, ctxt) { $selector.bind(event, function(){ eventfn.call(ctxt); }); } var run = function (settings) { settings = settings || {}; var _settings = $.extend(init, settings); var windowH =$(window).height(); var dialog_top = (windowH-220)/2 +'px'; $container = $('
查看更多关于弹出层divdialog_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did105866