JAVA高手请进 20
functionshowImageDimensions(){if((this.minWidth!=''&&this.width>this.minWidth)||(this...
function showImageDimensions() {
if ((this.minWidth != '' && this.width > this.minWidth) || (this.minHeight != '' && this.height < this.minHeight)) {
alert('您所上传的图片尺寸太小了!\n上传的图片大小至少要 ' + this.minWidth + ' x ' + this.minHeight); return;}
if ((this.maxWidth != '' && this.width > this.maxWidth) || (this.maxHeight != '' && this.height > this.maxHeight)) {
alert('您所上传的图片尺寸为 '+ this.width + ' x ' + this.height+' 太大了!\n上传的图片大小不可超过 ' + this.maxWidth + ' x ' + this.maxHeight); return;}
if (this.sizeLimit != '' && this.fileSize/1000 > this.sizeLimit) {
alert('您所上传的档案为 '+this.fileSize/1000+' KB太大了!\n最大不可超过 ' + this.sizeLimit + ' KB'); return;}
if (this.saveWidth != '') document.PU_uploadForm[this.saveWidth].value = this.width;
if (this.saveHeight != '') document.PU_uploadForm[this.saveHeight].value = this.height;
document.MM_returnValue = true;
}
看看有什么错误,在IE6下能正常运行,在IE7下就不行. 展开
if ((this.minWidth != '' && this.width > this.minWidth) || (this.minHeight != '' && this.height < this.minHeight)) {
alert('您所上传的图片尺寸太小了!\n上传的图片大小至少要 ' + this.minWidth + ' x ' + this.minHeight); return;}
if ((this.maxWidth != '' && this.width > this.maxWidth) || (this.maxHeight != '' && this.height > this.maxHeight)) {
alert('您所上传的图片尺寸为 '+ this.width + ' x ' + this.height+' 太大了!\n上传的图片大小不可超过 ' + this.maxWidth + ' x ' + this.maxHeight); return;}
if (this.sizeLimit != '' && this.fileSize/1000 > this.sizeLimit) {
alert('您所上传的档案为 '+this.fileSize/1000+' KB太大了!\n最大不可超过 ' + this.sizeLimit + ' KB'); return;}
if (this.saveWidth != '') document.PU_uploadForm[this.saveWidth].value = this.width;
if (this.saveHeight != '') document.PU_uploadForm[this.saveHeight].value = this.height;
document.MM_returnValue = true;
}
看看有什么错误,在IE6下能正常运行,在IE7下就不行. 展开
1个回答
2008-12-02
展开全部
如果ie6下能运行~那就是ie7的问题~~
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询