<script type="text/javascript">
function imgPreView(imgSrc)
{
var imgSrc='file:///'+imgSrc.replace(/\\/g,"/");
imgSrc=imgSrc.toLowerCase();
if(imgSrc)
{
var imgInDoc=window.document.getElementById("imgInDocument");
imgInDoc.src = imgSrc;
imgInDoc.style.display="";
imgInDoc.height=200;
}
}
function imgTextSignCheck()
{
if(window.document.getElementById("FileUpload1").value==""&&window.document.getElementById("FileUpload2").value==""&&window.document.getElementById("FileUpload3").value==""&&window.document.getElementById("FileUpload4").value==""&&window.document.getElementById("FileUpload5").value==""&&window.document.getElementById("FileUpload6").value=="")
{
window.alert("您没有添加图片!");
return false;
}
}
function document.onkeypress()
{
if(event.keyCode==13)
{
return false;
}
}
</script>
【JavaScript】验证图片
最新推荐文章于 2011-11-13 15:28:18 发布