最后加载广告的js代码
<div id="myads">载入中...</div>
<div id="span_myads">这里放广告代码</div>
<script type="text/javascript">
document.getElementById("myads").innerHTML = document.getElementById
("span_myads").innerHTML;
document.getElementById("span_myads").innerHTML = ""; </script>
使用方法: 1、将以下代码放置页面中想要放广告的地方 <div id="myads">载入中...</div> 2、将一下代码放置页面底部,也就是footer,php文件的底部。 <div id="span_myads">这里放广告代码</div> <script type="text/javascript"> document.getElementById("myads").innerHTML = document.getElementById
("span_myads").innerHTML; document.getElementById("span_myads").innerHTML = ""; </script>