为什么?在ie5中提交表单时,提交到一个iframe中时,却在新窗口打开. 是这样写的吗?<form target="win"><input type=submit></form><iframe name="win"></iframe> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 to xuzuning(唠叨) : 是 这是代码:<div id='show_text'></div><form name='form1' enctype='multipart/form-data' method='post' action='file_upload.php?dir=logos' target=file_upload_iframe><input type='file' name='img'><br><input type=submit value=下一步><br><img name=show_img src='../../../.././forum/images/system/icons.gif' style='display:none'><br><div id=show_swf style='display:none'></div></form><iframe id=file_upload_iframe name=file_upload_iframe style='width:0;height:0'></iframe><script language=javascript> //读取扩展名 function readEx(s) { var s = s.split('\\'); s = s[s.length-1]; s = s.split('.'); s = s[s.length-1]; return s; } function show(value) { if (document.all.img.value != '') { var ex = readEx(document.all.img.value) if (/bmp/i.test(ex) || /jpg/i.test(ex) || /gif/i.test(ex) || /png/i.test(ex)) { document.all.show_img.src = document.all.img.value; document.all.show_img.style.display = ''; document.all.show_swf.style.display = 'none'; } else if (/swf/i.test(ex)) { if (value != document.all.img.value) { value = document.all.img.value; value = value.replace(/\\/g, '\\\\'); document.all.show_swf.innerHTML ='<embed id=swf_show src='+document.all.img.value+' height=320 width=240>'; document.all.show_swf.style.display = ''; document.all.show_img.style.display = 'none'; } else { value = value.replace(/\\/g, '\\\\'); } } else { document.all.show_swf.style.display = 'none'; document.all.show_img.style.display = 'none'; } } setTimeout('show("'+value+'")', 500); } show(document.all.img.value); </script><script>window.open(self.location);</script> <script>window.open(self.location);</script>最后这句是开新窗口啊? 去掉最后的window.open(self.location);就正常了 我的代码是在一个用showModalDialog打开的弹出对话框中,在ie6下正常,而在ie5下却弹出新窗口.请问如何解决. 关于系统采集问题fopen PHP数组排序问题 include老是出问题 请教代码:如何查找某网页里面含有特定字符 PHP模拟POST传输图片问题 这个功能在php中如何实现? 大家觉得这个引用值应该是多少? 帮忙分析一下时间函数错在哪 一个郁闷的session问题 怪怪:高分求教session问题 请问mysql中有无象SQL SERVER中的视图 ->听说是类的意思,谁有相关的文章,介绍下
<div id='show_text'></div><form name='form1' enctype='multipart/form-data' method='post' action='file_upload.php?dir=logos' target=file_upload_iframe><input type='file' name='img'><br><input type=submit value=下一步><br><img name=show_img src='../../../.././forum/images/system/icons.gif' style='display:none'><br><div id=show_swf style='display:none'></div></form>
<iframe id=file_upload_iframe name=file_upload_iframe style='width:0;height:0'></iframe><script language=javascript>
//读取扩展名
function readEx(s)
{
var s = s.split('\\');
s = s[s.length-1];
s = s.split('.');
s = s[s.length-1];
return s;
}
function show(value)
{
if (document.all.img.value != '') {
var ex = readEx(document.all.img.value)
if (/bmp/i.test(ex) || /jpg/i.test(ex) || /gif/i.test(ex) || /png/i.test(ex)) {
document.all.show_img.src = document.all.img.value;
document.all.show_img.style.display = '';
document.all.show_swf.style.display = 'none';
} else if (/swf/i.test(ex)) {
if (value != document.all.img.value) {
value = document.all.img.value;
value = value.replace(/\\/g, '\\\\');
document.all.show_swf.innerHTML ='<embed id=swf_show src='+document.all.img.value+' height=320 width=240>';
document.all.show_swf.style.display = '';
document.all.show_img.style.display = 'none';
} else {
value = value.replace(/\\/g, '\\\\');
}
} else {
document.all.show_swf.style.display = 'none';
document.all.show_img.style.display = 'none';
}
}
setTimeout('show("'+value+'")', 500);
}
show(document.all.img.value);
</script><script>window.open(self.location);</script>
最后这句是开新窗口啊?
弹出新窗口.
请问如何解决.