我正在尝试将 javascript 中动态创建的链接调用到 iframe 中。正在创建动态链接,但链接在父窗口而不是 iframe 中打开。
<li><a href="#">New Member Name</a>
<ul>
<li><script type="text/javascript">
<!--
var d = new Date()
month=(d.getUTCMonth()+1).toString();
if(month.length<2) month = "0" + month;
day=(d.getUTCDate()).toString();
if(day.length<2) day = "0" + day;
hour=(d.getUTCHours()).toString();
if(hour.length<2) hour = "0" + hour;
minute=(d.getUTCMinutes()).toString();
if(minute.length<2) minute = "0" + minute;
for (x=1 ; x<=10 ; x++)
{
xx = x.toString();
if (xx.length<2) xx = "0" + xx;
h= "http://apps.facebook.com/evonyoffical/facebook.Uprising.php?F=100002319241135&C=878988&SID=NA46&T=" + d.getUTCFullYear() + "." + month + "." + day + "+" + hour + "." + minute + "." + xx + "&SX=0&FEEDID=10001&GUID=220B83CD-91F8-D26A-B411-25BC9BAF1B5E&k=070d6091c63e5a21b5a1e9b829262396"; target="_rightfb"
document.writeln("<p>"+("Link "+x).link(h)+"</p>");
}
//-->
</script></li>
</ul>
</li>
iframe div 属性在哪里:
<div id=facebook><iframe src='javascript:""' name="rightfb" width:"900" height:"450"></iframe></div>