Website link exchanging method and device
A technology for website linking and switching devices, applied in the field of network communication, can solve the problems of wasting administrators' time and energy, failing to discover in time, and harming interests, saving time and energy, eliminating trust problems, and ensuring fairness.
Active Publication Date: 2014-10-01
奇安信网神信息技术(北京)股份有限公司 +1
3 Cites 1 Cited by
AI-Extracted Technical Summary
Problems solved by technology
This method of manual communication has led to the following series of problems: First, in order to exchange a link, the administrators of both parties often need to communicate with each other several times to reach an exchange intention, thus wasting a lot of time and energy of the administrators
Secondly, the administrators of the two parties do not know each other, and there is still the question of whether they can trust each other: after reaching an exchange intention, the party that first adds the link to the o...
Abstract
The invention relates to a website link exchanging method and device. The method and device can solve the problems that in the prior art, website administrators of double parties are communicated with each other about link exchanging details by themselves, repeated communication is caused when link exchanging is manually executed, and the administrators cannot trust in each other. The method comprises the steps of obtaining and displaying first website information hoping to perform link exchanging, wherein source codes of the first website comprise link exchanging control codes; obtaining second website information hoping to perform link exchanging with the first website and link exchanging request information, and sending the link exchanging request information to the first website, wherein source codes of the second website comprise link exchanging control codes; after the first website agrees to perform link exchanging, building a link exchanging corresponding relation between the first website and the second website; executing the link exchanging control codes according to the link exchanging corresponding relation, displaying the link of the second website in the first website, and displaying the link of the first website in the second website.
Application Domain
TransmissionSpecial data processing applications
Technology Topic
Link exchangeComputer network +1
Image
Examples
- Experimental program(1)
Example Embodiment
[0026] Hereinafter, exemplary embodiments of the present disclosure will be described in more detail with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0027] The embodiment of the present invention provides a method and device for link exchange on a website, which can solve the problem of repeated communication and mutual distrust caused by the two website administrators communicating link exchange details and manually performing link exchange in the prior art. .
[0028] figure 1 It shows a flowchart of a method for exchanging website links provided by an embodiment of the present invention. Such as figure 1 As shown, the method includes the following steps:
[0029] Step S110: Obtain and display the information of the first website that is expected to perform link exchange, wherein the source code of the first website contains the link exchange control code.
[0030] The above-mentioned link exchange control code is used to implement link exchange in subsequent steps. Optionally, the link exchange control code is a link exchange script code.
[0031] Step S120: Obtain the second website information and link exchange request information that are expected to be exchanged with the first website, and send the link exchange request information to the first website, where the source code of the second website contains the link exchange control code.
[0032] Optionally, the above link exchange request information includes at least one of the following information required for link exchange: the display identifier of the link on the other party’s website, the display identifier includes: text identifier, image identifier or custom identifier; the link is on the other party The display style on the website, the display style includes: display color and/or display size; link exchange time.
[0033] Step S130: After the first website agrees to perform the link exchange, a link exchange correspondence is established between the first website and the second website.
[0034] It can be seen from this link exchange correspondence that the cooperative website of the first website includes the second website, and the cooperative website of the second website includes the first website. The cooperative website mentioned here refers to a website that has reached a cooperative intention to exchange links with a certain website. In addition, the link exchange correspondence relationship can be established through a list or other methods.
[0035] Step S140: According to the above-mentioned link exchange corresponding relationship, the above-mentioned link exchange control code is executed, and the link of the second website is displayed on the first website, and the link of the first website is displayed on the second website.
[0036] Optionally, step S140 is specifically implemented in the following manner: when the above-mentioned first website is accessed, according to the above-mentioned link exchange correspondence, a second website with which the link exchange is performed is determined, and link information of the second website is generated and output to the first website. On the website; when the second website is visited, according to the above-mentioned link exchange correspondence, the first website with which the link exchange is performed is determined, and the link information of the first website is generated and output to the second website.
[0037] The website link exchange method provided by the embodiment of the present invention can save the link of repeated communication between the administrators of both parties and save a lot of time and energy; in addition, since the link exchange process is automatically completed by the above link exchange control code, it can be Both parties’ websites add each other’s links at the same time to ensure fairness and eliminate trust problems caused by manually adding links (for example, one party fails to add the other party’s link as scheduled, or adds the other party’s link and then secretly removes it).
[0038] The following describes in detail the website link exchange method provided by the present invention in conjunction with a specific embodiment. In this specific embodiment, the above-mentioned website link exchange method is implemented based on an exchange platform. The exchange platform can also be called a friend chain exchange platform, where the friend chain refers to the link corresponding to the website that has reached the cooperation intention to exchange links with each other, also called the friendship link.
[0039] figure 2 The method flow chart of this specific embodiment is shown. Such as figure 2 As shown, the website link exchange method provided in this specific embodiment includes the following steps:
[0040] Step S210: Obtain and display the information of the A website desired to be exchanged.
[0041] Among them, A website mainly refers to the website that hopes to exchange links through the exchange platform. image 3 A schematic diagram of an interface of the exchange platform is shown. After the administrator of site A clicks the "I want to publish a friend link" button at the top right of the interface, it will pop up Figure 4 The interface shown. The exchange platform passes Figure 4 The interface shown is to obtain the A website information entered by the administrator. Such as Figure 4 As shown, the A website information includes: website domain name, website type, and website name. Of course, those skilled in the art can also increase or decrease the content contained in the A website information according to actual needs, which is not limited in the present invention. For example, the input content in the website name is the name displayed by website A on the partner website, except Figure 4 In addition to the website name in the text form shown, you can also enter the website logo in the form of pictures or other custom forms to improve the display effect of website A on the cooperative website. In addition, in Figure 4 The interface shown also contains the friend chain code entered by default. The friend chain code is the link exchange control code mentioned above. Among them, the link exchange control code is automatically generated by the exchange platform, and is used to automatically realize the link exchange in the subsequent link exchange process. when Figure 4 After the "Publish" button in is clicked, the friend chain platform obtains and displays the above-mentioned A website information, and automatically inserts the above-mentioned link exchange control code in the website source code of A website.
[0042] In addition, since there are often many websites that wish to exchange links through this exchange platform, other websites (such as website B in step S220, and some other websites, such as website C, website D, etc.) can also be obtained through the method in step S210. Website information such as websites, where the source code of websites such as B website, C website, and D website also includes the above-mentioned link exchange control code). In addition, the exchange platform can display all the websites that have obtained website information (all the website source codes that have obtained website information include the above-mentioned link exchange control code) to help these websites find suitable cooperative websites. Specifically, in order to facilitate searching, the exchange platform can also display websites from which website information has been obtained according to different categories: for example, corresponding websites can be displayed according to the size of the PR value (PageRank, PR for short) and the website type.
[0043] Step S220: Obtain website B information and link exchange request information that are expected to be exchanged with website A, and send the link exchange request information to website A, where the source code of website B contains link exchange control code.
[0044] Wherein, the method of obtaining the information of the B website that is expected to be link exchanged with the A website and inserting the link exchange control code in the source code of the B website can be implemented with reference to step S210, which will not be repeated here.
[0045] In this step, the administrator of the B website finds the information of the A website among the many website information displayed on the exchange platform, and believes that the PR value and/or network type of the A website meets the cooperation requirements of the B website. , The administrator of site B clicks Figure 5 The "I want to exchange" button on the right side of the A website information shown is to generate the above link exchange request information. When the "I want to swap" button is clicked, it will pop up Figure 6 The link exchange request information generation interface shown. Such as Figure 6 As shown, the link exchange request information first includes the domain name information (www.9867.org) of the A website, and the exchange platform forwards the link exchange request information to the A website according to the domain name information. Secondly, the link exchange request information also includes information for setting the display mode of the link of the B website on the A website and the link exchange time information. E.g, Figure 6 The "Select a website" input box in can confirm the input of the domain name information of the B website, and the "Website name" input box can input the text display logo of the B website link on the A website. In addition, in order to improve user experience, in other embodiments of the present invention, other types of display identifiers can be further set in the link exchange request information, such as picture display identifiers or custom display identifiers. In this way, website B The display logo of the link on the A website can be not only text, but also a picture or other custom methods, so as to improve the experience satisfaction of visitors to the B website. In addition, it is possible to further set the display style of website B link on website A in the link exchange request information, such as display color and/or display size, etc., so that the display style of website B link on website A can be compared with that of website B. The overall style is consistent, thereby further improving the experience satisfaction of visitors to the B website.
[0046] Step S230: After the A website agrees to perform the link exchange, a link exchange correspondence is established between the A website and the B website.
[0047] After website A receives the above link exchange request information, its administrator decides whether to exchange links with website B by checking the website content and PR value of website B. If website A agrees to exchange links with website B, a consent message will be returned to the exchange platform, and the exchange platform will establish a link exchange correspondence between website A and website B according to the consent message, and continue to perform the subsequent step S240. If website A does not agree to exchange links with website B, a rejection message will be returned to the exchange platform, and the method ends. In addition, the exchange platform may forward the aforementioned consent message or rejection message to website B so that the administrator of website B knows the result.
[0048] Step S240: According to the link exchange correspondence in step S230, execute the above-mentioned link exchange control code, display the link of the B website on the A website, and display the link of the A website on the B website.
[0049] Because in this embodiment, only the establishment of link exchange between website A and website B is used as an example for description. Therefore, the link exchange correspondence here is: B-A and A-B. Specifically, when website A is visited, the link exchange control code contained in the source code of website A is automatically executed, and the link exchanged website is determined to be website B according to the above-mentioned link exchange correspondence, and then a link to website B is generated. The information is output to website A; when website B is accessed, the link exchange control code contained in the source code of website B is automatically executed. According to the above-mentioned link exchange correspondence relationship, the website with which it is link exchanged is determined to be website A, and then A The link information of the website is output to the B website. It can be seen that step S240 is a step that is executed multiple times. As long as website A or website B is accessed, step S240 is executed.
[0050] Among them, the link exchange control code contained in the source code of website A and the link exchange control code contained in the source code of website B are link exchange script codes. Furthermore, the link exchange script code is dynamically generated by the link exchange control server (server for managing the exchange platform) according to the link exchange correspondence in step S230 and the website information. For example, suppose the link exchange control code inserted on website A is "", where type="text/javascript" indicates that the link exchange control code is a text control code generated by a javascript script, src="http://links.webscan.360.cn*# *Used to indicate the source server address of the link exchange control code. Whenever website A is accessed, the above-mentioned link exchange control code in the source code of website A "