Multiple domain name hanging advertising Method!

Source: Internet
Author: User
Keywords Flying over film and television

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

You can visit separately: www.bb2020.cn www.bb2020.com.cn www.jjflash.cn Trial effect! If you do not understand can add my qq:393440579 contact!
Here is a JS file we tentatively named: Guanggao.js

Copy the following code into the Guanggao.js file. The domain name in the file into its own domain name, the document.write ("www.bb2020.cn");
JS code into your own JS AD code! (Note: Different domain name hangs different advertisement, put document.write ("www.bb2020.cn"); Switch to the corresponding domain name JS advertising code!

To call the JS file method in HTML:
<div align=center>
<script src= "/js/guanggao.js" ></SCRIPT>
</DIV>

Guanggao.js File Code:

var s_domain = location.host;
var js_path1 = "www.bb2020.cn";
var js_path2 = "bb2020.cn";
var js_path3 = "www.bb2020.com.cn";
var js_path4 = "bb2020.com.cn";
var js_path5 = "www.jjflash.cn";
var js_path6 = "jjflash.cn";
if (S_domain = = js_path1)
{
document.write ("www.bb2020.cn");
}
if (S_domain = = js_path2)
{
document.write ("bb2020.cn");
}
if (S_domain = = Js_path3)
{
document.write ("www.bb2020.com.cn");
}
if (S_domain = = Js_path4)
{
document.write ("bb2020.com.cn");
}
if (S_domain = = Js_path5)
{
document.write ("www.jjflash.cn");
}
if (S_domain = = Js_path6)
{
document.write ("jjflash.cn");
}

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.