|
1、首先将妈妈广告位建成待加载广告位,放在页面中要实际显示广告的地方,具体代码参考下面:
<SPAN id="index_200_ad_04header" class="td_content">阿里妈妈数据载入中,请稍后...</SPAN>
2、建立加载代码,放在页面的"</html>"后面,具体代码参考如下:
<span id="index_200_ad_04footer">
<script language="javascript" type="text/javascript" src="/ad_files/files/index_ads/index_200_ad_04.js"></script>
<script language="javascript" type="text/javascript">
document.getElementById("index_200_ad_04header").innerHTML = document.getElementById("index_200_ad_04footer").innerHTML;
document.getElementById("index_200_ad_04footer").innerHTML = "";
</script>
3、创建具体的广告JS文件,即2中的index_200_ad_04.js,如:
document.writeln("<script type=\"text\/JavaScript\">");
document.writeln("alimama_pid=\"mm_10027999_119597_1640152\";");
document.writeln("alimama_titlecolor=\"dddddd\";");
document.writeln("alimama_descolor =\"dddddd\"; ");
document.writeln("alimama_bgcolor=\"333333\";");
document.writeln("alimama_bordercolor=\"333333\";");
document.writeln("alimama_linkcolor=\"808080\";");
document.writeln("alimama_bottomcolor=\"333333\";");
document.writeln("alimama_anglesize=\"0\";");
document.writeln("alimama_bgpic=\"0\";");
document.writeln("alimama_icon=\"0\";");
document.writeln("alimama_sizecode=\"23\";");
document.writeln("alimama_width=160; ");
document.writeln("alimama_height=600; ");
document.writeln("alimama_type=2; ");
document.writeln("<\/script>");
document.writeln("<script src=\"http:\/\/a.alimama.cn\/inf.js\" type=text\/javascript>");
document.writeln("<\/script>");
红色 自己修改 |
|