<script language="javascript">
window.onload=function show()
{
var id=document.location.search.split("=")[1];
var title=id+"_title";
var introduction=id+"_introduction";
var logourl=id+"_logourl";
alert(window.opener.document.getElementById(title).innerHTML);
document.getElementById("xuanshouname").innerHTML=window.opener.document.getElementById(title).innerHTML;
document.getElementById("introduction").innerHTML=window.opener.document.getElementById(introduction).innerHTML;
document.getElementById("imgUrl").src=window.opener.document.getElementById(logourl).innerHTML;
}
</script><div class="neirong"> <p><b><label name="xuanshouName" id="xuanshouName"></label></b>
</p>
<p><label name="introduction" id="introduction"></label></p></div>
现在的问题是 window.opener.document.getElementById(title).innerHTML 这个值是可以取得的,但是在IE下label的值会显示出来,但是FF下就是不出,请问各位是啥原因,谢谢
window.onload=function show()
{
var id=document.location.search.split("=")[1];
var title=id+"_title";
var introduction=id+"_introduction";
var logourl=id+"_logourl";
alert(window.opener.document.getElementById(title).innerHTML);
document.getElementById("xuanshouname").innerHTML=window.opener.document.getElementById(title).innerHTML;
document.getElementById("introduction").innerHTML=window.opener.document.getElementById(introduction).innerHTML;
document.getElementById("imgUrl").src=window.opener.document.getElementById(logourl).innerHTML;
}
</script><div class="neirong"> <p><b><label name="xuanshouName" id="xuanshouName"></label></b>
</p>
<p><label name="introduction" id="introduction"></label></p></div>
现在的问题是 window.opener.document.getElementById(title).innerHTML 这个值是可以取得的,但是在IE下label的值会显示出来,但是FF下就是不出,请问各位是啥原因,谢谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货