如何对一个“file”赋值呢? http://expert.csdn.net/Expert/FAQ/FAQ_Index.asp?id=734 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 给你一段以前做过的代码。希望对你有所帮助。PhotoEdit.asp<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><body bgcolor="#F8FBFC"><div id="Layer1" style="position:absolute; left:0px; top:0px; width:100%; height:100%; z-index:10; visibility: visible; background-color: #F8FBFC; layer-background-color: #F8FBFC; border: 1px none #000000;"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="center">正在保存图片...</td> </tr> </table></div><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <form name="formPhotoEdit" method="post" action=DBSavePhoto.asp enctype="multipart/form-data"> <input type="file" id="newfile" name="newfile" style="display:yes"> </form> </td> </tr></table></body></html> 没有什么意义,它的value是只读的 没有什么意义,它的value是只读的 请问主窗口的变量,iframe的页面能调用吗? jquery的jquery.validate验证框架 合并了两行的 在代码中怎么写呢? 网页前端开发者需要精通photoshop和flash之类的? radio样式脚本问题。 新手请教:javascript函数的应用问题 对不住大家,我的信誉分低55555555555~~~~ 谦虚请教 救命,javascrip.什么方法弹出一输入框,然后得到返回值,怎么写? 高分求救!!如何实现表格的打印?? 无法传值问题,高手急救!!!!!!!!! 求代码(走头无路啦!) 不用WORD,如何实现一段文字的左右对齐(即:段落的每一行都一样的齐
PhotoEdit.asp<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><body bgcolor="#F8FBFC">
<div id="Layer1" style="position:absolute; left:0px; top:0px; width:100%; height:100%; z-index:10; visibility: visible; background-color: #F8FBFC; layer-background-color: #F8FBFC; border: 1px none #000000;">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">正在保存图片...</td>
</tr>
</table>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<form name="formPhotoEdit" method="post" action=DBSavePhoto.asp enctype="multipart/form-data">
<input type="file" id="newfile" name="newfile" style="display:yes">
</form>
</td>
</tr>
</table>
</body>
</html>