Webmaster Blessed-Let the URL one-click Add Baidu Home Navigation

Source: Internet
Author: User

Since the leadership of the edification, I would like to do a business operations and maintenance of IT staff site, collect some of the enterprise operation and maintenance of valuable sites, but also recommend some security information to operations personnel, in the work found that China's IT operations personnel lack of awareness of security, the site is now online, can go to share.ykuaile.net above view information, also welcome everybody recommend website. Web site is done, it is necessary to do user experience, because I habitually used to add to Baidu home page navigation, so that every time you open a browser can choose to open my favorite sites. Very convenient. Such a thought, I want to let my website can have this function, so I also did this function.


Download code

Https://git.oschina.net/ykuaile/Add-to-Baidu-Home.git

No.2 open baidu.html, see Add Effect

Click happy to share can pop up Baidu url add box, no login Baidu account, will pop up Baidu login window, login to add

are adding

Added after the completion can be in the Baidu home page to see the added URL, because Baidu does not know share.ykuaile.net site is what type, so put to uncategorized.

No.3 add code to your page

1. Replace the A tag with the URL you want to add

<a onclick= "Addtobaidu (this); return false; "href=" http://share.ykuaile.net/"> Happy sharing </a>

"http://share.ykuaile.net/" replaced the URL to be added in the Baidu navigation, "happy to share" replaced with the Baidu navigation to add the name of the URL.

2. Call the Baidu.js file in the page

<script type= "Text/javascript" src= "Baidu.js" ></script>

Just so simple, click on a tag URL can be added to Baidu homepage.

Website effect:http://share.ykuaile.net

Webmaster Blessed-Let the URL one-click Add Baidu Home Navigation

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.