救命阿,遇到空前难题!!! 不可以阿,xmlhttp执行包含的页面这么取不出数据来的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 数据也可以取到的。你得解析一下得到VALUE值 下面的例子从1.asp中获取<img id="image"/>代码,然后设置src<style>div{width:300px;height:200px;background-color:red;}</style><script>function get(url,obj){ var xmlhttp=new ActiveXObject("Microsoft.xmlhttp"); xmlhttp.open("get",url,false); xmlhttp.send(); if(xmlhttp.status==200) { obj.innerHTML=xmlhttp.responseXML.xml; alert(xmlhttp.responseXML.xml); }}function set(){ document.getElementById('image').src='1.jpg';}</script><body><div id="a"></div><br><input type=button value="xmlhttp获取代码" onclick="get('1.asp',a)"><input type=button value="设置图片" onclick="set()"><br></body>1.asp:<% response.contenttype="text/xml" response.write "<img id='image'/>"%> king2003(鱼):那个value是这么解析的,可以说详细点嘛? 用eval可不可以执行阿?怎么执行?? 在jsp页面里,怎么去除text字段的前面,中间,后面的空格问题! extjs4 ajax传送用post问题 求JS效果代码 修改thickbox 样式 正则表达式 /[^0-9^a-z]/g,为什么对^不好用? 怎么关闭左边的导航条 想要实现动态效果,js高手请进,高分! 数据岛绑定到Table后,onchange事件失灵!!(htc,XML问题)超级郁闷中 如何使得页面支持另一种分辨率? 美女用身体写作,我用高分换答案!!! js菜鸟求助 javascript 的request问题
div{width:300px;height:200px;background-color:red;}
</style>
<script>
function get(url,obj)
{
var xmlhttp=new ActiveXObject("Microsoft.xmlhttp");
xmlhttp.open("get",url,false);
xmlhttp.send(); if(xmlhttp.status==200)
{
obj.innerHTML=xmlhttp.responseXML.xml;
alert(xmlhttp.responseXML.xml);
}
}
function set()
{
document.getElementById('image').src='1.jpg';
}
</script>
<body>
<div id="a"></div><br>
<input type=button value="xmlhttp获取代码" onclick="get('1.asp',a)">
<input type=button value="设置图片" onclick="set()">
<br>
</body>1.asp:
<%
response.contenttype="text/xml"
response.write "<img id='image'/>"
%>
那个value是这么解析的,可以说详细点嘛?
怎么执行??