<body onload="mm()">
<span id=hideSpan style="display: none"></span>
<SCRIPT LANGUAGE=javascript>
<!--
function mm()
{
var mm=new ActiveXObject("Microsoft.XMLHTTP")
mm.open("get","http://www.kacan.com.cn/abc.inc",false);
mm.send();
hideSpan.innerHTML = mm.responseText;
alert(mm.responseText); //它的INC的文本内容都到了你的网页里来了, 下面的事你自己该知道怎么做了吧
}
//-->
</SCRIPT>通过这种方式
<span id=hideSpan style="display: none"></span>
<SCRIPT LANGUAGE=javascript>
<!--
function mm()
{
var mm=new ActiveXObject("Microsoft.XMLHTTP")
mm.open("get","http://www.kacan.com.cn/abc.inc",false);
mm.send();
hideSpan.innerHTML = mm.responseText;
alert(mm.responseText); //它的INC的文本内容都到了你的网页里来了, 下面的事你自己该知道怎么做了吧
}
//-->
</SCRIPT>通过这种方式
document.write("<marquee behavior=scroll direction=up width=150 height=130 scrollamount=2 scrolldelay=50 onmouseover='this.stop()' onmouseout='this.start()'>")
var mm=new ActiveXObject("Microsoft.XMLHTTP")
mm.open("get","http://localhost/www_kacan_com_cn/news.inc",false);
mm.send();
document.write(mm.responseText);
document.write("</marquee">);
</script>
这样不行?
<br>
◎ <font color='#ffffff'><a href='http://www.shangyuanhotel.com' target='_blank'>深圳上园大酒店*</a></font>
<p>◎ <font color='#ffffff'><a href='http://www.szsjjy.com' target='_blank'>世纪精英人才交流网</a></font></p>
<p>◎ <font color='#ffffff'><a href='http://www.abcpower.cn' target='_blank'>香港汇高集团</a></font></p>
<p>◎ <font color='#ffffff'><a href='http://www.cineng.com' target='_blank'>深圳磁能科技有限公司</a></font></p>
<p>◎ <font color='#ffffff'><a href='http://www.strongjet.com.cn' target='_blank'>创捷科技有限公司</a></font></p>
<p>◎ <font color='#ffffff'><a href='http://www.yakexi.com/asia' target='_blank'>亚洲眼镜*</a></font></p>
<p>◎ <font color='#ffffff'><a href='opus/index_02.htm' target='_blank'>蓝冰技术开发公司</a></font></p>
<p>◎ <font color='#ffffff'><a href='http://www.galaxysz.com' target='_blank'>深圳健坤科技有限公司*</a></font></p>
<p>◎ <font color='#ffffff'><a href='52yy/index.html' target='_blank'>岳阳(深圳)同乡会*</a></font></p>
<p>◎ <font color='#ffffff'><a href='http://www.xzsjlm.com' target='_blank'>中国桑吉拉姆藏饰网</a></font></p>
<p>◎ <font color='#ffffff'><a href='http://www.jxqc-hr.com/' target='_blank'>锦绣前程人力资源网</a></font></p>
<p>◎ <font color='#ffffff'><a href='http://www.sinosun.com.cn/9/lh/liehu.html' target='_blank'>猎狐家具设计*</a></font></p>
<p align='center'><font color='#ffffff'> </font><font color='#ffffff'><a href='http://www.yakexi.com'>
(带*为正在建设中网站)</a></font> <br>
</p>
网页中实现办法如下:
<script language="JavaScript">
document.write("<marquee behavior=scroll direction=up width=150 height=130 scrollamount=2 scrolldelay=50 onmouseover='this.stop()' onmouseout='this.start()'>")
var mm=new ActiveXObject("Microsoft.XMLHTTP")
mm.open("get","news.inc",false);
mm.send();
document.write(mm.responseText);
document.write("</marquee>");
</script>
可是效果是“乱码”http://www.kacan.com.cn
Function bytes2BSTR(vIn)
strReturn = ""
For i = 1 To LenB(vIn)
ThisCharCode = AscB(MidB(vIn,i,1))
If ThisCharCode < &H80 Then
strReturn = strReturn & Chr(ThisCharCode)
Else
NextCharCode = AscB(MidB(vIn,i+1,1))
strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
i = i + 1
End If
Next
bytes2BSTR = strReturn
End Function
</script><script language="JavaScript">
document.write("<marquee behavior=scroll direction=up width=150 height=130 scrollamount=2 scrolldelay=50 onmouseover='this.stop()' onmouseout='this.start()'>")
var mm=new ActiveXObject("Microsoft.XMLHTTP")
mm.open("get","http://localhost:8000/abc.inc",false);
mm.send();
alert(bytes2BSTR(mm.responseBody));
document.write(bytes2BSTR(mm.responseBody));
document.write("</marquee>");
</script>