document.getElementById("photo_roolup")这个怎么搞不定啊 window.frames["photo_roolup"].location.href = "aa.asp"; //不可跨域 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 document.getElementById("photo_roolup").location.href <body><IFRAME id="photo_roolup" name="photo_roolup" marginWidth=0 marginHeight=0 src="1.htm" frameBorder=0 width="255" scrolling=no height=205>载入中...</IFRAME></body><script>document.getElementById('photo_roolup').src='http://www.csdn.net';</script> 我的和楼上你写的是一样的啊,单独出来行的,为什么放到我的asp里就是找不到对象呢?id冲突? function chg_rolPic(obj){ for (i=1;i<=9;i++){ obj_t=document.getElementById(i).style; obj_t.backgroundColor="#f5f5f5"; obj_t.borderRightWidth="1px"; obj_t.color="#a0a0a0"; } obj.style.color="#1479A7"; obj.style.backgroundColor="#FFFFFF"; obj.style.borderRightWidth="0px"; document.getElementById('photo_roolup').src="_roolup.asp?iClassNo="+obj.id;} <tr> <td align="center" class="btn2" id="4" onClick="chg_rolPic(this)" onMouseOver="chg_btnOver(this)" onMouseOut="chg_btnOut(this)" style="color:#a0a0a0">厨 房</td> </tr><IFRAME id="photo_roolup" name="photo_roolup" marginWidth=0 marginHeight=0 src="_roolup.asp?iClassNo=0" frameBorder=0 width="255" scrolling=no height=205>载入中...</IFRAME></td>看相关的都列出来了,就是找不到对象 javascript JS怎么设置图片居中?在线~~~ 迟到的漂亮下雪效果 不同的html引用同一个JS文件中的不同document.writeln javascript语法 新手 计算表格中,单元格中数值的得数 输出数组问题 急求:怎样提交一个表单而不在地址栏显示参数? 关于通过javascript向word文档中写内容的问题 这个东西怎样实现的?在线等 高分求理解这段代码 我在html中声明了document.write("<%=Lilu%>"),在javascript里Lilu=parseFloat(5454.55);为什么不显示数字??
<IFRAME id="photo_roolup" name="photo_roolup" marginWidth=0 marginHeight=0 src="1.htm" frameBorder=0 width="255" scrolling=no height=205>载入中...</IFRAME>
</body>
<script>
document.getElementById('photo_roolup').src='http://www.csdn.net';
</script>
for (i=1;i<=9;i++){
obj_t=document.getElementById(i).style;
obj_t.backgroundColor="#f5f5f5";
obj_t.borderRightWidth="1px";
obj_t.color="#a0a0a0";
}
obj.style.color="#1479A7";
obj.style.backgroundColor="#FFFFFF";
obj.style.borderRightWidth="0px";
document.getElementById('photo_roolup').src="_roolup.asp?iClassNo="+obj.id;
} <tr>
<td align="center" class="btn2" id="4" onClick="chg_rolPic(this)" onMouseOver="chg_btnOver(this)" onMouseOut="chg_btnOut(this)" style="color:#a0a0a0">厨 房</td>
</tr><IFRAME id="photo_roolup" name="photo_roolup" marginWidth=0 marginHeight=0 src="_roolup.asp?iClassNo=0" frameBorder=0 width="255" scrolling=no height=205>载入中...</IFRAME></td>看相关的都列出来了,就是找不到对象