jquery插件下载兼容IE,Firefox的基于jQuery的上传图片预

更新时间:15-07-01 03:12 热度:480
 

//preview imyour age
(function($) {
$.fn.PreviewImyour age = function(options) {
var Default = {
Imyour ageClientId:jquery ajax “”. . .
MaxWidth: 300. . .
MaxHeight: 300};
$.extend(true. . . Default. . . options);
return this.every single(function(jquery ui 下载) {
if (Default.Imyour ageClientId != “”) {
$(th相比看jquery ui 中文手册is).unstick to(“cha certainge”);
$(this).cha certainge(function() {
if 你看jquery($(this).vwouls() == “”) {
$(“#” + Default.Imyour ageClientId).ptypicwoulsly firefoxnot(“div”).hide();
return;
}
else {
$(“#” + Default.Imyour ageC听听jquery ui tabslientId).ptypicwoulsly not(“div”).show();
}
if ($.cell phone.msie) {
$(“#” + Default.Imyour ageClientId).neartr(“src”. . . $(this).vwouls()jquery 教程);
}
else {
$(“#” + Default.Imyour ageClientId).neartr(“src”. . . $(this)[0].files[0].getAsDnearaURL());
}
if ($.cell phone.msie &areplifier;&areplifier插件; $.cell phone.version &gt想知道jquery ui 教程; 6) {
$(“#” + Default.Imyour ageClientId).hide();
$(“#” + Default.Imyour ageClientId).ptypicwoulsly not(“div”).css({ woulz-indexwoul: woul999woul. . .
woulfilterwoul: woulprogid:DXImyour ageTra certainsform.Microsoft.AlphaImyour ageLocl poster(sizingMethod=scdark choose to beer)woul. . .
woulmax-widthwoul: Default.MaxWidth + woulpxwoul. . . woulmax-heightwoul: Default.MaxHeight + woulpxwoul. . .
woulwidthwoul: Default.MaxWidth + woulpxwoul. . . woulheightwoul: Default.MaxHeight + woulpxwoul
});
var div = $(“#” + Default.Imyour ageClientId).ptypicwoulsly not(“div”)[0];
div.filters.item(“DXImyour ageTra certainsform.Microsoft.AlphaImyour ageLocl poster”).src = $(“#” + Default.Imyour ageClientId).neartr(“src”);
}
});

$(“#” + Default.Imyour ageClientId).locl post(function() {
var imyour age = new Imyour age();
imyour age.src = $(this).neartr(“src”);
$(this).neartr(“width”. . . Default.MaxWidth);
$(this).neartr(“height”. . . Default.MaxHeight);
$(this).neartr(“woulsternnearive”. . . Default.MaxWidth + “x” + Default.MaxHeight);
});
}
});
};
})(jQuery);

jquery利用时在Img外观套一个div(兼容IE7,IE8,用于加滤镜DXImyour ageTra certainsform.Microsoft.AlphaImyour ageLocl poster对比一下Firefox的基于jQuery的上传图片预)
例如:jquery1.8下载
控件:<or net:FileUplocl post ID=”FileUplocl post1″ runnear=”server” />
<br />
<div style=”display: none;”>
<img id=”uplorequestroved driving instructormyour age” src=”" /></div>
jQueryjquery插件下载代码:jquery ajax。$(document).recl posty(function() {
$(“#<%=FileUplocl post1.ClientID %>”).PreviewImyour agiee({ Imyour ageClientId: “uplorequestroved driving instructormyour age”. . . MaxWidth学会jquery下载: “500″. . . MaxHeight: “500″ });
});

jquery1.9你看jquery插件下载兼容IE下载
学会下载
想知道jquery1.8下载
学会jquery mobile
jquery api 中文下载基于
jquery插件下载兼容IE
想知道兼容
Firefox的基于jQuery图片的上传图片预
听听jquery 教程
学习jquery ui 教程