<script type="text/javascript">
if (window.location.href.indexOf("https://www.haoma5.com/category-1.html") > -1) {
window.location.href='http://www.baidu.com';
//广告网址1
} else if (window.location.href.indexOf("https://www.haoma5.com/category-2.html") > -1) {
window.location.href='http://www.360.com/';
//广告网址2
} else if (window.location.href.indexOf("https://www.haoma5.com/category-3.html") > -1) {
window.location.href='http://www.sougou.com';
//广告网址3
}
</script>
1.把JS代码加到你的模板里边,或者存成js进行调用! 2.设置好访问页和落地页的地址即可!
转载请说明《好码网_Haoma5.com》
好码网 » 指定页面跳转,不同页面不同广告
好码网 » 指定页面跳转,不同页面不同广告