高分求解。在线等 document.IFR.location.href="ceshi2.asp"或document.IFR.location.href="ceshi3.asp" 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 document.img.src.value="";那这个呢? <html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>无标题文档</title></head><body><table width="33%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="81" class="menuPro" id="listName0" onClick="OK('listName0')"> 热点</td> <td width="62"><img id="img" src="images/root.gif" alt="不可修改"></td> <td width="51" id="listName1" align="center" onClick="OK('listName1')">数字 </td> </tr> <tr> <td colspan="3" height="100"> <script language="javascript"> <!-- function OK(id){ if(id=="listName0"){ alert(id); //document.write("sdlkflsdkfalsdk") IFR.src="1.html" alert(IFR.src) } if(id=="listName1"){ //document.write("2938472834") IFR.src="1.html" alert(IFR.src) } } --> </script> <iframe name="IFR" id="IFR" height="100%" width="100%" frameborder="0" src="11.html"></iframe> </td> </tr></table></body></html> 不行呀?郁闷 document.all('img').src='' 不行呀?郁闷 document.all('img').src=''---------------脚本修改某img的图片路径,肯定是上面写的没错.但它指出的是全路径.你可用var src1 = document.all('img').src;alert(src1);看看它是什么而且它的路径也支持替换,比如document.all('img').src = document.all('img').src.replace("a","b"); uploadify求助 js如何实现三位数字逗号间隔?如100,000 代码运行是正确的,但是IE下面提示"网页错误" 不知为什么? 层与焦点的问题 怎么用脚本判断鼠标单双击 请教问题,这边也放100分 再问个小问题,为什么我判定这么写,还会执行下去? 在页面上设置页面的属性!急急急! 去空格的方法 iMacros Browser中的递减或递加,不知道该不该发到这里啊? 得到radio按钮的value 关于location的用法???
那这个呢?
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<table width="33%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="81" class="menuPro" id="listName0" onClick="OK('listName0')"> 热点</td>
<td width="62"><img id="img" src="images/root.gif" alt="不可修改"></td>
<td width="51" id="listName1" align="center" onClick="OK('listName1')">数字 </td>
</tr>
<tr>
<td colspan="3" height="100">
<script language="javascript">
<!--
function OK(id){
if(id=="listName0"){
alert(id);
//document.write("sdlkflsdkfalsdk")
IFR.src="1.html"
alert(IFR.src)
}
if(id=="listName1"){
//document.write("2938472834")
IFR.src="1.html"
alert(IFR.src)
}
}
-->
</script>
<iframe name="IFR" id="IFR" height="100%" width="100%" frameborder="0" src="11.html"></iframe>
</td>
</tr>
</table>
</body>
</html>
---------------
脚本修改某img的图片路径,肯定是上面写的没错.但它指出的是全路径.
你可用
var src1 = document.all('img').src;
alert(src1);
看看它是什么
而且它的路径也支持替换,比如
document.all('img').src = document.all('img').src.replace("a","b");