。。。一些相关的文件,貌似不能传递css值过去,所以必须要在news.html中写上。在主体部分
<script>
function viewpage(p){
if(window.XMLHttpRequest){
var xmlReq = new XMLHttpRequest();
} else if(window.ActiveXObject) {
var xmlReq = new ActiveXObject('Microsoft.XMLHTTP');
}
var formData = "page="+p;
xmlReq.onreadystatechange = function(){
if(xmlReq.readyState == 4){
document.getElementById('content2').innerHTML = xmlReq.responseText;
}
}
xmlReq.open("post", "news_main_ajaxpage2.php", true);
xmlReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlReq.send(formData);
return false;
}
</script>

<body onLoad="viewpage(1)">
<div ;


?>
本文首发于我的主站http://www.corange.cn/archives/2009/05/3202.html

相关文章: