Web/Admin/javascript/ShowDivDialog.js

(开头部分) 13KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*弹出div对话框*/
/*参数:[可选参数在调用时可写可不写,其他为必写]
    title:	窗口标题
  content:  内容(可选内容为){ text | id | img | url | iframe }
    width:	内容宽度
   height:	内容高度
	 drag:  是否可以拖动(ture为是,false为否)
     time:	自动关闭等待的时间,为空是则不自动关闭
   showbg:	[可选参数]设置是否显示遮罩层(0为不显示,1为显示)
  cssName:  [可选参数]附加class名称
 ------------------------------------------------------------------------*/
 //示例:
 //simpleWindown("例子","text:例子","500","400","true","3000","0","exa")
 /*
 	$("#text1").click(function() {
		tipsWindown("标题","text:提示信息内容","250","150","true","","true","text")
	});
	$("#text2").click(function() {
		tipsWindown("标题","text:我不能拖动,而且还没遮罩背景","250","150","false","","false","text")
	});
	$("#text3").click(function() {
		tipsWindown("标题","text:我不能拖动,但3秒钟后我会自动消失","250","150","false","3000","true","text")
	});

	$("#id1").click(function() {
		tipsWindown("标题","id:dialogContent","500","300","true","","true","id")
	});

	$("#img1").click(function() {
		tipsWindown("图片","img:http://leotheme.cn/wp-content/uploads/2008/09/tr2xcp6yw4o5xebj9s.jpg","500","230","true","","true","img")
	});

	$("#url1").click(function(){
		tipsWindown("标题","url:get?test.html","250","150","true","","true","text");
	});

	$("#iframe1").click(function(){
		tipsWindown("标题","iframe:http://leotheme.cn","950","527","true","","true","leotheme");
	});
 */
var showWindown = true; //设置弹出窗是否已经显示
var templateSrc = "";  //设置loading.gif路径
function tipsWindown(title,content,width,height,drag,time,showbg,cssName)
{
    $("#windown-box").remove(); //清除内容
    var width = width >= 950 ? this.width = 950 : this.width = width;     //设置最大窗口宽度
    var height = height >= 527 ? this.height = 527 : this.height = height;   //设置最大窗口高度
    if (showWindown == true) {
        var simpleWindown_html = new String;
        simpleWindown_html = "<div id=\"windownbg\" style=\"height:" + $(document).height() + "px;filter:alpha(opacity=0.8);opacity:0.8;z-index: 999901;background: none repeat scroll 0% 0% rgb(50, 50, 50); \"></div>";
        simpleWindown_html += "<div id=\"windown-box\">";
        simpleWindown_html += "<div id=\"windown-title\"><h2></h2><span id=\"windown-close\"><a href='javascript:'> </a></span></div>";
        simpleWindown_html += "<div id=\"windown-content-border\"><div id=\"windown-content\"></div></div>";
        simpleWindown_html += "</div>";
        $("body").append(simpleWindown_html);
        show = false;
    }
    contentType = content.substring(0, content.indexOf(":"));
    content = content.substring(content.indexOf(":") + 1, content.length);
    switch (contentType) {
后面还有 261 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。