First video multi-domain name Delivery code solution

Source: Internet
Author: User

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

Friends who have made the first video and the site is a double domain name know that the first video code only supports a domain name corresponding to a code, if there are 2 domain names, you can only play one of them, another domain name under the display "your domain name and placed the code does not match or has not yet passed the first video network audit!" "This will undoubtedly bring a little trouble to many dual domain owners." My station is a novel network (Kiss novel Net www.77shu.com), because opened the Netcom line (wt.77shu.com) domain name, so also met this troublesome problem, headache for a while.  O (∩_∩) o ... Now get a piece of code, a good solution to this problem, and do not violate the rules of the first video, special release for everyone to share.

Here is the first video of the customer service issued by the rules:
It is OK to place code as long as you do not violate the requirements of the Federation 6186.html "> Player". 1 The player has a domain name that must be placed on its application and is on the first screen.  Players placed on other pages must also be on the first screen.  2 placement of the player URL must be in the "network" Platform for registration, or even if the player is placed does not generate flowmeter charges.  3 the same page can only place one player, and the bottom of the player from the top of the page is not more than 600 pixels.  4 The player must be embedded in the page. 5 The website owner shall not edit and modify the player without authorization.   such as after the ads automatically disappear, add a close button, such as 6 of the page to place the player should not use the window and other illegal promotion, once found, will immediately stop its cooperation and stop the current settlement. 7 The player must be fully displayed and cannot be obscured.

This is the code I provide, the code principle to understand, do not need to explain it, change the URL, replace the network code can be used.

<script>

var s_domain = Location.host;
var Js_path = "www.77shu.com";
if (S_domain!= js_path)
{
document.write ("<script src=http://busjs.vodone.cn/bus/ownerjs/advjs_xx/xxxxx/xxxxx_.js></script>") ;
}
Else
{
document.write ("<script src=http://busjs.vodone.cn/bus/ownerjs/advjs_xx/xxxxx/xxxxx_.js></script>") ;
}

</script>

If nested in JS inside the <script> and </script> can be removed.

Although the code is very simple, but also spent 50 of the ocean to buy drops, free contribution to hope that we use happy.

My QQ 85588588 rookie one, piety to everyone to learn.

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.