2 回答
TA贡献1875条经验 获得超3个赞
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>无标题页</title>
</head>
<body>
<div id="DynamicContent_id">
.显示在这里
</div>
<script type="text/jscript">
function loadFragmentInToElement(fragment_url, element_id)
{
var element = document.getElementById(element_id);
var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
xmlhttp.open("POST", fragment_url);
xmlhttp.onreadystatechange = function()
{
if(xmlhttp.readyState == 4 && xmlhttp.status == 200)
{
var txtconent = xmlhttp.responseText;
element.innerHTML = txtconent;
}
}
xmlhttp.send(null);
}
loadFragmentInToElement("http://baike.baidu.com/view/25390.htm?fr=ala0_1", "DynamicContent_id" );
</script>
<!--
unescape();
escape()
-->
</body>
</html>
TA贡献1851条经验 获得超3个赞
用VBScvript 进行处理 就可以
<SCRIPT FOR=window EVENT=onload LANGUAGE="JScript">
<!--
initAd();
-->
</SCRIPT>
<script language="JScript" >
<!--
function initAd() {
document.all.AdLayer.style.posTop = -200;
document.all.AdLayer.style.visibility = 'visible'
MoveLayer('AdLayer');
}
function MoveLayer(layerName) {
var x = 805;
var y = 420;
var diff = (document.body.scrollTop + y - document.all.AdLayer.style.posTop)*.40;
var y = document.body.scrollTop + y - diff;
eval("document.all." + layerName + ".style.posTop = y");
eval("document.all." + layerName + ".style.posLeft = x");
setTimeout("MoveLayer('AdLayer');", 20);
}
-->
</script>
<div id=AdLayer style='position:absolute; width:192px; height:192px;bgcolor:'>
<embed src="http://player.youku.com/player.php/sid/XMTk3MDYwMzAw/v.swf" />
</div>
<div >
<table height="920"><tr><td></td></tr></table>
</div>
添加回答
举报