<iframe src=" 自己网站域名/include/p.html?id=94804" width="950" height="65" scrolling="no" frameborder="0" style="display:block;margin:0"></iframe>
里面那个id ,就是广告代码
根据需要设置长度和宽度
//incluede文件夹下p.html文件
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="margin:0">
<script type="text/javascript" src="引用网站提供的js地址"></script>
<script type="text/javascript">
(function() {
var match = location.href.match(/(\?|&)id=([^&]+)(&|$)/);
if (match) {
var slotId = parseInt(match[2], 10);
if (slotId) {
//调用用户广告模块配置文件进行解析,如:
BAIDU_CLB_singleFillSlot(match[2]);
}
}
})();
</script>
</body>
</html>