代码示例:
调用示例
var _frameDialog = new FrameDialog("noname1.html", 480, 450);
_frameDialog.showDialog();
dialog.js 文件
FrameDialog = Class.create();
FrameDialog.prototype = {
initialize : function(src, width, height) {
this.src = src;
this.width = width;
this.height = height;
if ($("EasyFRMS_ModalDialog")==null){
var _dialogHTML = "<html><body scroll='no' bgcolor='#ffffcc'></body></html>";
var _dialog = document.createElement("IFRAME");
_dialog.id = "EasyFRMS_ModalDialog";
_dialog.src = "about:blank";
_dialog.frameBorder = 0;
document.body.appendChild(_dialog);
window.EasyFRMS_ModalDialog.document.open();
window.EasyFRMS_ModalDialog.document.write(_dialogHTML);
window.EasyFRMS_ModalDialog.document.close();
$("EasyFRMS_ModalDialog").setStyle({"top":"0px","left":"0px","width":"0px","height":"0px","position":"absolute","visibility":"hidden","filter":"alpha(opacity=0)"});
}
if ($("EasyFRMS_ModalFrame")==null){
var _dialog = document.createElement("IFRAME");
_dialog.id = "EasyFRMS_ModalFrame";
_dialog.src = this.src;
_dialog.frameBorder = 0;
_dialog.allowtransparency="true";
document.body.appendChild(_dialog);
$("EasyFRMS_ModalFrame").setStyle({"top":"0px","left":"0px","width":"0px","height":"0px","position":"absolute","visibility":"hidden","background-color":"transparent"});
}else{
$("EasyFRMS_ModalFrame").src = this.src;
}
},
showDialog : function() {
var _button_index = 1;
var _dlgWidth = Math.max(document.body.scrollWidth,document.body.clientWidth);
var _dlgHeight = Math.max(document.body.scrollHeight,document.body.clientHeight);
var _freX = document.body.scrollLeft + document.body.clientWidth/2 - this.width/2;
var _freY = document.body.scrollTop + document.body.clientHeight/2 - this.height/2;
var _freWidth = this.width;
var _freHeight = this.height;
$("EasyFRMS_ModalDialog").alpha = 0;
$("EasyFRMS_ModalDialog").setStyle({"top":"0px","left":"0px","width":_dlgWidth,"height":_dlgHeight,"visibility":"visible"});
$("EasyFRMS_ModalFrame").setStyle({"top":_freY,"left":_freX,"width":_freWidth,"height":_freHeight,"visibility":"visible"});
$("EasyFRMS_ModalDialog").timer = window.setInterval(this.showAlpha, 10);
document.body.disabled = true;
},
closeDialog : function(){
$("EasyFRMS_ModalDialog").setStyle({"visibility":"hidden"});
$("EasyFRMS_ModalFrame").setStyle({"visibility":"hidden"});
document.body.disabled = false;
},
showAlpha : function(){
if ($("EasyFRMS_ModalDialog")!=null){
$("EasyFRMS_ModalDialog").alpha += 10;
$("EasyFRMS_ModalDialog").setStyle({"filter":"alpha(opacity=" + $("EasyFRMS_ModalDialog").alpha + ")"});
if ($("EasyFRMS_ModalDialog").alpha>50){
window.clearInterval($("EasyFRMS_ModalDialog").timer);
}
}
}
}
相关推荐
JasperReport制作行内容合并的表格
效果图: 实现思路一: 交叉表 另一个思路: 普通表格 缺点:无法实现内容 垂直居中显示 准备工作 一、数据准备 DROP TABLE IF EXISTS `address_item_sex_value`; CREATE TABLE `address_item_sex_value` ( `id` int(11) NOT NULL AUTO_INCREM...
易好文件资源管理系统 (EasyFRMS) 进化史
<br />1. EasyFRMS 1.0.0 (DimoIM.Net)<br /> <br /> 2008 年 4 月的一天,我和合伙人(当时还没有合伙)还有两个老师朋友一起吃饭,其间他们说起了他们工作中遇到的问题,他们都是电教老师,学校机房由他们管理,而学校这样的传统行业总是会习惯性的认为所有于电脑有关的事情就都是他们的工作了,所以学校里的各种照片,视频等文件都是他们来管理,于是就经常发生这样是情况,晚上10点了,校长一个电话要什么什么照片,他们就需要登录学校 FTP 然后去一个目录一个目录的
Spring Boot集成Jasypt踩坑实录:自定义SM4加密器Bean加载失败的终极解决方案
本文深入剖析了Spring Boot集成Jasypt时自定义SM4加密器Bean加载失败的根源,即Spring Boot启动流程中Bean加载顺序与Jasypt自动配置的时序冲突。文章提供了三种从源码层面解决问题的有效方案,包括使用ApplicationContextInitializer提前注册、调整Bean依赖顺序以及自定义PropertySource处理机制,并给出了完整的国密SM4加密器实现与测试示例。
html5自动填充父类框,使用HTML5原生对话框元素并轻松创建模态框组件
HTML 5.2草案加入了新的dialog元素。但是是一种实验技术。以前,如果我们想要构建任何形式的模式对话框或对话框,我们需要有一个背景,一个关闭按钮,将事件绑定在对话框中的方式安排我们的标记,找到一种将消息传递出去的方式对话......这真的很复杂。对话框元素解决了上述所有问题。Bootstrap 模态框和原生模态框的对比下面是一个bootstrap模态框的html结构:开始演示模态框×模态框...
【银河麒麟服务器操作系统】安装英伟达4090D显卡驱动操作指南
本文详细介绍了在银河麒麟高级服务器操作系统V10SP3-2403-X86版本上安装NVIDIA RTX4090D显卡驱动的完整流程。主要内容包括:准备工作检查、开源驱动禁用、运行级别切换、依赖包安装以及交互式安装过程中的关键选项选择(32位库选Yes、X配置选No)。通过禁用nouveau驱动、重建内核引导等步骤确保驱动安装成功,最后通过nvidia-smi命令验证驱动安装情况。文档提供了操作检查表和安装流程图,帮助用户在银河麒麟系统上顺利完成显卡驱动部署。
7、刚度矩阵与弹簧元素:有限元分析的核心
本文深入探讨了有限元分析中的核心概念——刚度矩阵与弹簧元素。详细介绍了刚度矩阵的定义、构建方法及其对称性、正定性和稀疏性等性质,同时解析了弹簧和阻尼器元素的特性及其在模拟复杂系统中的应用,如液压缸、减震器等。通过结合刚度矩阵与弹簧元素,可以提高结构模型的精度并模拟复杂的工程系统。文章还讨论了优化策略、验证流程、误差分析及实际应用案例,展示了这些技术在桥梁分析、汽车悬挂系统等领域的重要作用,并展望了其在未来新材料、智能结构和数字孪生技术中的发展潜力。
易好文件资源管理系统 (EasyFRMS) 4.2.0 版本推出
<br /><br />4.2.0 版本更新如下:<br /> - 类 Windows 资源管理器操作<br /> - 拖选文件,Ctrl 增加选择<br /> - 树图导航<br /> - 快捷键操作,全选,剪切,复制,粘贴<br /> - 文件拖拽移动<br /> - 分段读取<br /> - 快捷访问,快速定位<br /> - 文件快速预览<br /> - 用户私人存储空间<br /> - 更方便的搜索<br /> - 存储位置定位<br /> - 搜索模式(是
UG二次开发GRIP刻字
UG二次开发GRIP刻字
网络文件资源管理系统的计划设想
通过 Web 应用系统为用户提供网络文件的集中管理、检索、分享服务,并提供开放接口和辅助客户端,然后利用开放接口实现网络相册、论坛、博客、数字图书馆、VOD点播、网络硬盘、文档管理、音乐库、网摘等各种扩展应用,以此来帮助用户构建一站式信息管理平台。 Web 主应用系统将采用 ASP.Net 开发 (由于采用 ASP.Net 将导致系统仅可运行于 Windows 平台
[EdgeAI] NXP eIQ 机器学习Toolkit (二):模型篇
eIQ™机器学习(ML)软件开发环境支持在恩智浦EdgeVerse™微控制器和微处理器(包括i.MX RT跨界MCU和i.MX系列应用处理器)上使用ML算法。eIQ ML软件包括称为eIQ Toolkit的ML工作流工具以及推理引擎、神经网络编译器和优化库。......
InVEST模型 | HAbitat quality模块计算生境质量
本文详细介绍使用InVEST模型中HAbitat quality模块计算生境质量,包含各个参数的含义、所需数据、数据处理以及需要各个参数注意的地方等过程。
文件资源管理系统分类模块设计
系统的一个重要功能就是对文件资源的分类检索,所以拥有灵活强大的分类模块将显得非常的必要,为此系统将提供 3 种分类方式:扩展信息分类,文件类型分类,自定义分类。 扩展信息分类 系统可以通过程序自动获取文件的相关信息,并自动对其进行归类,此分类信息由程序自动进行不可被改变。例如:日期,照片拍摄的相机,型号,音乐的作者,专集,软件的开发公司等 文件类型
【音视频基础】一篇搞懂视频的各种封装格式
在现代多媒体处理中,视频封装格式扮演着至关重要的角色。不同的封装格式决定了视频文件的存储方式、兼容性以及功能特性。无论是观看高清视频、编辑电影剪辑,还是在互联网上流式传输内容,理解各种视频封装格式的基础知识都是必不可少的。在这篇文章中,我们将详细介绍常见的视频封装格式,探讨为什么需要这些格式,以及它们各自的功能和区别,帮助你在选择和使用视频格式时做出更明智的决定。WEBM理解各种视频封装格式的功能和区别对于选择合适的格式至关重要。
模态窗口js脚本
js ="setTimeout(function(){document.getElementsByTagName('Button')[3].click()},100);" 处理模态窗口的方法 看到的记下吧 Ray神写的
深度学习工具包 DeepLearningToolbox
深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[](https://bitdeli.com/free "Bitdeli Badge")
IEM模型,地表粗糙度模拟
利用微波反演土壤水分时候,利用IEM模型可以实现对随机地表的模拟
模态窗口
1 如何在提交后防止弹出新窗口2 在模态窗口中再次弹出模态窗口3 模态窗口返回值4 刷新父窗口5 父窗口如何添加刷新脚本 主窗口弹出一个模态窗口,var firstDiag = window.showModalDialog(url,window,"center:yes;dialogWidth:300px;dialogHeight:400px"); 注:在url
ET2012新版免狗免安装绿色软件
ET2012新版免狗免安祖昂绿色软件。,新界面,新视觉,
asp.net弹出多个模态窗口
asp.net中无限制弹出模态窗口 特点: 1. 可以在模态窗口上再弹出模态窗口,不限制次数 2. 弹出窗口的支持拖放,及调整大小 3. 弹出窗口关闭后可以动态控制是否刷新父窗口 总共需要3个页面来做演示 1. 页面ModalDemo.aspx 前台代码: <head runat="server"&...
visio安装包
Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。
showModalDialog模态页面中使用Iframe下载文件问题总结
最近在项目中经常用到模态窗口(showModalDialog),客户需要在一个模态窗口中有"生成Excel报表"并"导出"的功能。 功能的设计思路是这样的: 1、首先在主窗口收集一些需要的数据 2、showModalDialog,将收集的数据传递过去,在模态页面使用window.dialogArguments接收这些参数 3、在模态页面收集客户的个性化定制信息 4、客户点击模态页面...
用div替代模态窗口
一直用惯了弹出modal窗口,总觉得用url传值和关闭窗口后刷新父窗体都用的很别扭.今天项目中恰好又出现了以前类似的情况,想图个新鲜使用下弹出层来作,这样对于页面的控制逻辑也清晰了很多. 网上搜索了一篇文章,代码和注释都还不错,虽然没具体使用,不过先copy下来,等着测试咯. 作者是园子里面的 jecray兄弟 拒绝session丢失 利用DIV层实现对模态...
JavaScript中alert、prompt 和 confirm区别及使用【通俗易懂】
本篇文章主要在于,让我们看几个与用户交互的函数:alert,prompt 和confirm的使用及区别
JavaScript中的交互的方式alert,prompt,confirm的用法
JavaScript中的交互的方式alert,prompt,confirm的用法
Bootstrap模态框
div id="example" 分配给相关 div 的 id,id 的值指向后边要实现 modal(模态框)的 JavaScript。 class="modal hide fade in" Bootstrap CSS 的四个 class - modal、hide、fade 和 in,用于设置 modal(模态框)的布局。 style="display...
js原生弹出窗
js: var divheader = document.getElementById("divheader"); var divbg = document.getElementById("divbg"); var diveditcontent = document.getElementById("diveditcontent");
Dynamics CRM 2011编程系列(47): JavaScript调试之模态窗口
如何调试JavaScript,可以参考博文:《Dynamics CRM 2011编程系列(43):JavaScript 的调试》,《Dynamics CRM 2011编程系列(44):JavaScript 的 Hack 调试(Fiddler)》。本文介绍如何调试以模态窗口方式弹出页面JS。 配置步骤如下:图1图2图3图4图5
js弹框带传值父窗口给子框_JavaScript实现弹出子窗口并传值给父窗口
新建父窗口页面:加入以下脚本Firstfunction ShowDialog(Url){var iWidth=560; //模态窗口宽度var iHeight=300;//模态窗口高度var iTop=(window.screen.height-iHeight-100)/2;var iLeft=(window.screen.width-iWidth)/2;var returnValue=w...
js变量、交互、数据类型、类型转换
js变量、交互、数据类型、类型转换javascript变量声明变量变量赋值变量声明并赋值标识符命名规则保留字关键字交互:alert、prompt 和 confirmalertpromptconfirm总结基本数据类型(值类型)number(数值)所有 JavaScript 数字均为 64 位精度( 2进制、八进制、16进制)进制转换toString();科学计数法Infinity与-Infinitystring(字符串)转义字符(\)操作字符串获取字符串长度获取指定下标的字符转化为小写转化为大写获取指定字符
a11y-dialog 快速入门:5分钟学会构建第一个可访问模态窗口
a11y-dialog 是一个超轻量级且灵活的可访问模态窗口脚本,专为创建符合无障碍标准的对话框而设计。本文将带你快速掌握如何使用这个强大工具,在短短5分钟内构建出你的第一个无障碍模态窗口。 ## 📋 准备工作:一键安装步骤 要开始使用 a11y-dialog,首先需要将项目克隆到本地环境: ```bash git clone https://gitcode.com/gh_mirrors/
2468



被折叠的 条评论
为什么被折叠?



