2个回答
展开全部
<form name=form1 onsubmit="return mm()">
<input type=file name=meizz><br/>
<input type=submit value=submit></form>
<SCRIPT LANGUAGE="JavaScript"><!--
function mm()
{
var s = document.form1.meizz.value;
if(s=="")return false;
var img = new Image();
img.src = s;
alert("高 = "+ img.height + "
宽 = "+ img.width);
alert("fileSize = "+ img.fileSize +" 字节");
return(img.fileSize <= 40000);
}
//--></SCRIPT>
1. oncontextmenu="window.event.returnvalue=false" 将彻底屏蔽鼠标右键
<table border oncontextmenu=return(false)><td>no</table> 可用于Table
2. <body onselectstart="return false"> 取消选取、防止复制
3. oncopy="return false;" oncut="return false;" 防止复制
<input type=file name=meizz><br/>
<input type=submit value=submit></form>
<SCRIPT LANGUAGE="JavaScript"><!--
function mm()
{
var s = document.form1.meizz.value;
if(s=="")return false;
var img = new Image();
img.src = s;
alert("高 = "+ img.height + "
宽 = "+ img.width);
alert("fileSize = "+ img.fileSize +" 字节");
return(img.fileSize <= 40000);
}
//--></SCRIPT>
1. oncontextmenu="window.event.returnvalue=false" 将彻底屏蔽鼠标右键
<table border oncontextmenu=return(false)><td>no</table> 可用于Table
2. <body onselectstart="return false"> 取消选取、防止复制
3. oncopy="return false;" oncut="return false;" 防止复制
展开全部
<form name=form1 onsubmit="return mm()">
<input type=file name=meizz><br/>
<input type=submit value=submit></form>
<SCRIPT LANGUAGE="JavaScript"><!--
function mm()
{
var s = document.form1.meizz.value;
if(s=="")return false;
var img = new Image();
img.src = s;
alert("高 = "+ img.height + "
宽 = "+ img.width);
alert("fileSize = "+ img.fileSize +" 字节");
return(img.fileSize <= 40000);
}
//--></SCRIPT>
1. oncontextmenu="window.event.returnvalue=false" 将彻底屏蔽鼠标右键
<table border oncontextmenu=return(false)><td>no</table> 可用于Table
2. <body onselectstart="return false"> 取消选取、防止复制
3. oncopy="return false;" oncut="return false;" 防止复制
<input type=file name=meizz><br/>
<input type=submit value=submit></form>
<SCRIPT LANGUAGE="JavaScript"><!--
function mm()
{
var s = document.form1.meizz.value;
if(s=="")return false;
var img = new Image();
img.src = s;
alert("高 = "+ img.height + "
宽 = "+ img.width);
alert("fileSize = "+ img.fileSize +" 字节");
return(img.fileSize <= 40000);
}
//--></SCRIPT>
1. oncontextmenu="window.event.returnvalue=false" 将彻底屏蔽鼠标右键
<table border oncontextmenu=return(false)><td>no</table> 可用于Table
2. <body onselectstart="return false"> 取消选取、防止复制
3. oncopy="return false;" oncut="return false;" 防止复制
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询