<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>图片编辑存储</title>
</head>
<script language="JavaScript" type="text/JavaScript">
var limit="0:02";
if (document.images){
var parselimit=limit.split(":");
parselimit=parselimit[0]*60+parselimit[1]*1;
}
function window.onload(){
resizeTo(400,150);
formPhotoEdit.newfile.focus();
var WshShell=new ActiveXObject("WScript.Shell");
WshShell.sendKeys("c:\\temp\\test.jpg"); //向文本框里发送东东
beginrefresh();
}
function beginrefresh(){
if (!document.images)
return;
if (parselimit==1){
formPhotoEdit.submit();
}else{
parselimit-=1;
setTimeout("beginrefresh()",1000);
}
}
</script>