/*
* nyroModal - jQuery Plugin
* http://nyromodal.nyrodev.com
*
* Copyright (c) 2008 Cedric Nirousset (nyrodev.com)
* Licensed under the MIT license
*
* $Date: 2009-05-14 (Thu, 14 May 2009) $
* $version: 1.5.0
*/
jQuery(function($){var userAgent=navigator.userAgent.toLowerCase();var browserVersion=(userAgent.match(/.+(?:rv|webkit|khtml|opera|msie)[\/: ]([\d.]+)/)||[0,'0'])[1];var isIE6=(/msie/.test(userAgent)&&!/opera/.test(userAgent)&&parseInt(browserVersion)<7&&!window.XMLHttpRequest);var body=$('body');var currentSettings;var shouldResize=false;var gallery={};var fixFF=false;var contentElt;var contentEltLast;var modal={started:false,ready:false,dataReady:false,anim:false,animContent:false,loadingShown:false,transition:false,resizing:false,closing:false,error:false,blocker:null,blockerVars:null,full:null,bg:null,loading:null,tmp:null,content:null,wrapper:null,contentWrapper:null,scripts:new Array(),scriptsShown:new Array()};var resized={width:false,height:false,windowResizing:false};var initSettingsSize={width:null,height:null,windowResizing:true};var windowResizeTimeout;$.fn.nyroModal=function(settings){if(!this)return false;return this.each(function(){var me=$(this);if(this.nodeName.toLowerCase()=='form'){me.unbind('submit.nyroModal').bind('submit.nyroModal',function(e){if(me.data('nyroModalprocessing'))return true;if(this.enctype=='multipart/form-data'){processModal($.extend(settings,{from:this}));return true}e.preventDefault();processModal($.extend(settings,{from:this}));return false})}else{me.unbind('click.nyroModal').bind('click.nyroModal',function(e){e.preventDefault();processModal($.extend(settings,{from:this}));return false})}})};$.fn.nyroModalManual=function(settings){if(!this.length)processModal(settings);return this.each(function(){processModal($.extend(settings,{from:this}))})};$.nyroModalManual=function(settings){processModal(settings)};$.nyroModalSettings=function(settings,deep1,deep2){setCurrentSettings(settings,deep1,deep2);if(!deep1&&modal.started){if(modal.bg&&settings.bgColor)currentSettings.updateBgColor(modal,currentSettings,function(){});if(modal.contentWrapper&&settings.title)setTitle();if(!modal.error&&(settings.windowResizing||(!modal.resizing&&(('width'in settings&&settings.width==currentSettings.width)||('height'in settings&&settings.height==currentSettings.height))))){modal.resizing=true;if(modal.contentWrapper)calculateSize(true);if(modal.contentWrapper&&modal.contentWrapper.is(':visible')&&!modal.animContent){if(fixFF)modal.content.css({position:''});currentSettings.resize(modal,currentSettings,function(){currentSettings.windowResizing=false;modal.resizing=false;if(fixFF)modal.content.css({position:'fixed'});if($.isFunction(currentSettings.endResize))currentSettings.endResize(modal,currentSettings)})}}}};$.nyroModalRemove=function(){removeModal()};$.nyroModalNext=function(){var link=getGalleryLink(1);if(link)return link.nyroModalManual(getCurrentSettingsNew());return false};$.nyroModalPrev=function(){var link=getGalleryLink(-1);if(link)return link.nyroModalManual(getCurrentSettingsNew());return false};$.fn.nyroModal.settings={debug:false,blocker:false,modal:false,type:'',from:'',hash:'',processHandler:null,selIndicator:'nyroModalSel',formIndicator:'nyroModal',content:null,bgColor:'#000000',ajax:{},swf:{wmode:'transparent'},width:null,height:null,minWidth:400,minHeight:300,resizable:true,autoSizable:true,padding:25,regexImg:'[^\.]\.(jpg|jpeg|png|tiff|gif|bmp)\s*$',addImageDivTitle:true,defaultImgAlt:'Image',setWidthImgTitle:true,ltr:true,gallery:null,galleryLinks:'<a href="#" class="nyroModalPrev">Prev</a><a href="#" class="nyroModalNext">Next</a>',galleryCounts:galleryCounts,zIndexStart:100,css:{bg:{position:'absolute',overflow:'hidden',top:0,left:0,height:'100%',width:'100%'},wrapper:{position:'absolute',top:'50%',left:'50%'},wrapper2:{},content:{overflow:'auto'},loading:{position:'absolute',top:'50%',left:'50%',marginTop:'-50px',marginLeft:'-50px'}},wrap:{div:'<div class="wrapper"></div>',ajax:'<div class="wrapper"></div>',form:'<div class="wrapper"></div>',formData:'<div class="wrapper"></div>',image:'<div class="wrapperImg"></div>',swf:'<div class="wrapperSwf"></div>',iframe:'<div class="wrapperIframe"></div>',iframeForm:'<div class="wrapperIframe"></div>',manual:'<div class="wrapper"></div>'},closeButton:'<a href="#" class="nyroModalClose" id="closeBut" title="close">Close</a>',title:null,titleFromIframe:true,openSelector:'.nyroModal',closeSelector:'.nyroModalClose',contentLoading:'<a href="#" class="nyroModalClose">Cancel</a>',errorClass:'error',contentError:'The requested content cannot be loaded.<br />Please try again later.<br /><a href="#" class="nyroModalClose">Close</a>',handleError:null,showBackground:showBackground,hideBackground:hideBackground,endFillContent:null,showContent:showContent,endShowContent:null,beforeHideContent:null,hideContent:hideContent,showTransition:showTransition,hideTransition:hideTransition,showLoading:showLoading,hideLoading:hideLoading,resize:resize,endResize:null,updateBgColor:updateBgColor,endRemove:null};function processModal(settings){if(modal.loadingShown||modal.transition||modal.anim)return;debug('processModal');modal.started=true;setDefaultCurrentSettings(settings);if(!modal.full)modal.blockerVars=modal.blocker=null;modal.error=false;modal.closing=false;modal.dataReady=false;modal.scripts=new Array();modal.scriptsShown=new Array();currentSettings.type=fileType();if($.isFunction(currentSettings.processHandler))currentSettings.processHandler(currentSettings);from=currentSettings.from;url=currentSettings.url;initSettingsSize.width=currentSettings.width;initSettingsSize.height=currentSettings.height;if(currentSettings.type=='swf'){setCurrentSettings({overflow:'hidden'},'css','content');currentSettings.content='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+currentSettings.width+'" height="'+currentSettings.height+'"><param name="movie" value="'+url+'"></param>';var tmp='';$.each(currentSettings.swf,function(name,val){currentSettings.content+='<param name="'+name+'" value="'+val+'"></param>';tmp+=' '+name+'="'+val+'"'});currentSettings.content+='<embed src="'+url+'" type="application/x-shockwave-flash" width="'+currentSettings.width+'" height="'+currentSettings.height+'"'+tmp+'></embed></object>'}if(from){var jFrom=$(from);if(currentSettings.type=='form'){var data=$(from).serializeArray();data.push({name:currentSettings.formIndicator,value:1});if(currentSettings.selector)data.push({name:currentSettings.selIndicator,value:currentSettings.selector.substring(1)});$.ajax($.extend({},currentSettings.ajax,{url:url,data:data,type:jFrom.attr('method')?jFrom.attr('method'):'get',success:ajaxLoaded,error:loadingError}));debug('Form Ajax Load: '+jFrom.attr('action'));showModal()}else if(currentSettings.type=='formData'){initModal();jFrom.attr('target','nyroModalIframe');jFrom.attr('action',url);jFrom.prepend('<input type="hidden" name="'+currentSettings.formIndicator+'" value="1" />');if(currentSettings.selector)jFrom.prepend('<input type="hidden" name="'+currentSettings.selIndicator+'" value="'+currentSettings.selector.substring(1)+'" />');modal.tmp.html('<iframe frameborder="0" hspace="0" name="nyroModalIframe" src="javascript:false;"></iframe>');$('iframe',modal.tmp).css({width:currentSettings.width,height:currentSettings.height}).error(loadingError).load(formDataLoaded);debug('Form Data Load: '+jFrom.attr('action'));showModal();showContentOrLoading()}else if(currentSettings.type=='image'){debug('Image Load: '+url);var title=jFrom.attr('title')||currentSettings.defaultImgAlt;initModal();modal.tmp.html('<img id="nyroModalImg" />').find('img').attr('alt',title);modal.tmp.css({lineHeight:0});$('img',modal.tmp).error(loadingError).load(function(){debug('Image Loaded: '+this.src);$(this).unbind('load');var w=modal.tmp.width();var h=modal.tmp.height();modal.tmp.css({lineHeight:''});resized.width=w;resized.height=h;setCurrentSettings({width:w,height:
没有合适的资源?快使用搜索试试~ 我知道了~
the .Net Framework for JQuery and JQueryUI
共131个文件
png:93个
cs:12个
aspx:9个
需积分: 0 4 下载量 27 浏览量
2009-11-20
16:39:02
上传
评论
收藏 393KB ZIP 举报
温馨提示
the .Net Framework for JQuery and JQueryUI
资源推荐
资源详情
资源评论
收起资源包目录
the .Net Framework for JQuery and JQueryUI (131个子文件)
AjaxBackend.ashx 447B
DNJPanelDemo.aspx 6KB
UISample.aspx 4KB
DNJRPCDemo.aspx 4KB
DNJPanelSimpleDemo.aspx 4KB
DNJTabs.aspx 2KB
Default.aspx 1KB
DNJAccordion.aspx 1KB
DNJSlider.aspx 996B
DNJDatePicker.aspx 880B
Web.Config 723B
DNJPanelDemo.aspx.cs 914B
includes.cs 766B
DNJPanelSimpleDemo.aspx.cs 738B
DNJSlider.aspx.cs 678B
DNJDatePicker.aspx.cs 545B
DNJAccordion.aspx.cs 421B
DNJRPCDemo.aspx.cs 421B
DNJTabs.aspx.cs 416B
MasterPage.master.cs 414B
DNJ.master.cs 407B
Default.aspx.cs 406B
UISample.aspx.cs 404B
jquery-ui.css 27KB
jquery-ui.css 27KB
jquery-ui.css 27KB
jquery-ui.css 27KB
jquery-ui.css 27KB
nyroModal.full.css 3KB
nyroModal.css 2KB
styles.css 156B
Org.Eurekaa.DNJ.UI.dll 289KB
Org.Eurekaa.DNJ.dll 141KB
jquery.nyroModal-1.5.0.min.js 35KB
dnjrpc.conf.js 468B
scripts.js 7B
MasterPage.master 2KB
DNJ.master 1KB
theme_30_excite_bike.png 5KB
theme_30_trontastic.png 5KB
theme_30_black_tie.png 5KB
theme_30_start_menu.png 5KB
theme_30_windoze.png 5KB
theme_30_dot_luv.png 5KB
theme_30_humanity.png 5KB
theme_30_hot_sneaks.png 4KB
theme_30_smoothness.png 4KB
theme_30_black_matte.png 4KB
theme_30_blitzer.png 4KB
ui-icons_72b42d_256x240.png 4KB
ui-icons_228ef1_256x240.png 4KB
ui-icons_ef8c08_256x240.png 4KB
ui-icons_ffffff_256x240.png 4KB
ui-icons_222222_256x240.png 4KB
ui-icons_ffffff_256x240.png 4KB
ui-icons_cccccc_256x240.png 4KB
ui-icons_4b8e0b_256x240.png 4KB
ui-icons_ffffff_256x240.png 4KB
ui-icons_4eb305_256x240.png 4KB
ui-icons_a83300_256x240.png 4KB
ui-icons_222222_256x240.png 4KB
ui-icons_cd0a0a_256x240.png 4KB
ui-icons_ffd27a_256x240.png 4KB
ui-icons_d8e7f3_256x240.png 4KB
ui-icons_6da8d5_256x240.png 4KB
ui-icons_888888_256x240.png 4KB
ui-icons_cd0a0a_256x240.png 4KB
ui-icons_469bdd_256x240.png 4KB
ui-icons_f9bd01_256x240.png 4KB
ui-icons_cd0a0a_256x240.png 4KB
ui-icons_217bc0_256x240.png 4KB
ui-icons_2e83ff_256x240.png 4KB
ui-icons_2e83ff_256x240.png 4KB
ui-icons_222222_256x240.png 4KB
ui-icons_454545_256x240.png 4KB
ui-bg_gloss-wave_35_f6a828_500x100.png 4KB
ui-bg_gloss-wave_55_5c9ccc_500x100.png 3KB
theme_30_south_street.png 2KB
theme_30_le_frog.png 2KB
theme_30_ui_dark.png 2KB
ui-bg_gloss-wave_25_333333_500x100.png 2KB
theme_30_sunny.png 2KB
theme_30_eggplant.png 2KB
theme_30_dark_hive.png 2KB
theme_30_mint_choco.png 2KB
theme_30_ui_light.png 2KB
theme_30_pepper_grinder.png 2KB
theme_30_cupertino.png 2KB
theme_30_swanky_purse.png 2KB
theme_30_overcast.png 2KB
theme_30_flick.png 1KB
ui-bg_diagonals-thick_95_ffdc2e_40x40.png 266B
ui-bg_diagonals-thick_18_b81900_40x40.png 260B
ui-bg_diagonals-thick_15_444444_40x40.png 253B
ui-bg_diagonals-thick_20_666666_40x40.png 251B
ui-bg_flat_55_fbec88_40x100.png 182B
ui-bg_flat_30_cccccc_40x100.png 180B
ui-bg_flat_0_aaaaaa_40x100.png 180B
ui-bg_flat_50_5c5c5c_40x100.png 180B
ui-bg_flat_0_aaaaaa_40x100.png 180B
共 131 条
- 1
- 2
资源评论
领君2018
- 粉丝: 204
- 资源: 1527
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功