<script type="text/javascript" language="javascript">
function OK(){ var UpFileName = document.hhh.pic.value;
if (UpFileName==""|| UpFileName=="http://"){
alert("请先上传图片文件!");
//document.hhh.pic.focus();//
return false;
}
if (UpFileName=="None"){
window.returnValue = null;
}else{
window.returnValue = UpFileName+'|'+UpFileName;
}
window.close();
}</script><form name="hhh" action="">
<input type="hidden" name="pic" id="pic" value="dd" readonly="" /><td align="center" > 选择图片:</td><td><iframe name="I1" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" width="200" height="22" src="upload.php?File_systype=1&DYType=2&FForm=hhh&FObj=pic"></iframe></td>
</form><input type="submit" value="确定插入" id="Ok" onclick="OK()" />upload.php的返回的值如何传给hidden input呀
function OK(){ var UpFileName = document.hhh.pic.value;
if (UpFileName==""|| UpFileName=="http://"){
alert("请先上传图片文件!");
//document.hhh.pic.focus();//
return false;
}
if (UpFileName=="None"){
window.returnValue = null;
}else{
window.returnValue = UpFileName+'|'+UpFileName;
}
window.close();
}</script><form name="hhh" action="">
<input type="hidden" name="pic" id="pic" value="dd" readonly="" /><td align="center" > 选择图片:</td><td><iframe name="I1" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" width="200" height="22" src="upload.php?File_systype=1&DYType=2&FForm=hhh&FObj=pic"></iframe></td>
</form><input type="submit" value="确定插入" id="Ok" onclick="OK()" />upload.php的返回的值如何传给hidden input呀
你的upload.php是哪个页面?
<script language='JavaScript'>window.parent.document.all.pic.value="返回值";</script>