Mobile phone and PC station Click Business Pass no trajectory solution

Source: Internet
Author: User
Tags jquery library
<span id="Label3"></p><p style="text-align:center;"><p style="text-align:center;"><span style="font-size:24px;"><strong>Mobile site hit business pass no trajectory solution</strong></span></p></p><p><p><span style="font-size:24px;"><strong><br></strong></span></p></p><p><p>Mobile Site Click the Business Advisory button is a lot of times will appear in the background can not count the Visitor's browsing trajectory situation, This situation is because some mobile browsers open a new page does not pass the route address information caused by the Page. Here's a way to solve this situation:</p></p><p><p>The code is as follows</p></p><p><p><br></p></p><p><p><span style="color:rgb(255,0,0);"><script type= "text/javascript" ></span></p></p><p><p><span style="color:rgb(255,0,0);">function Online () {</span></p></p><p><p><span style="color:rgb(255,0,0);">Business Pass Track</span></p></p><p><p><span style="color:rgb(255,0,0);">var e = ' wap ';</span></p></p><p><p><span style="color:rgb(255,0,0);">if (arguments.length = = 1) {</span></p></p><p><p><span style="color:rgb(255,0,0);">E = arguments[0];</span></p></p><p><p><span style="color:rgb(255,0,0);">}</span></p></p><p><p><span style="color:rgb(255,0,0);">If (typeof Openzoosurl = = ' undefined ') {</span></p></p><p><p><span style="color:rgb(255,0,0);">var url = ' http://pht.zoosnet.net/LR/Chatpre.aspx?id=PHT22079011 ';//modify the address of your Business Pass dialog window here</span></p></p><p><p><span style="color:rgb(255,0,0);">url = url + ' &e= ' + E + ' &p= ' + encodeuricomponent (location.href);</span></p></p><p><p><span style="color:rgb(255,0,0);">try{</span></p></p><p><p><span style="color:rgb(255,0,0);">window.open (url, ' news ' + math.round (math.random () * 1000000));</span></p></p><p><p><span style="color:rgb(255,0,0);">}catch (ex) {</span></p></p><p><p><span style="color:rgb(255,0,0);">window.location.href=url;</span></p></p><p><p><span style="color:rgb(255,0,0);">}</span></p></p><p><p><span style="color:rgb(255,0,0);">Return false;</span></p></p><p><p><span style="color:rgb(255,0,0);">}else{</span></p></p><p><p><span style="color:rgb(255,0,0);">Openzoosurl (' chatwin ', ' &e= '. e);</span></p></p><p><p><span style="color:rgb(255,0,0);">}</span></p></p><p><p><span style="color:rgb(255,0,0);">}</span></p></p><p><p><span style="color:rgb(255,0,0);"></script></span></p></p><p><p><br></p></p><p><p>The default way to open the Business Pass window is onclick= "openzoosurl (' chatwin ', ' &e=zhuanjia ');" Modified to onclick= "online (' Zhuanjia ');" The method can pass a parameter that marks some of the information that you want to Record.</p></p><p><p><br></p></p><p><p>========================================================================================</p></p><p><p><br></p></p><p style="text-align:center;"><p style="text-align:center;"><span style="font-size:24px;"><strong>Website Business Communication Dialogue no trajectory solution</strong></span></p></p><p><p><br></p></p><p><p>Many friends have asked me to ask for a dialogue without track of the problem, today on the business communication dialogue without track to share a Solution.</p></p><p><p>first, through the analysis of Business dialogue has the following characteristics:</p></p><p><p>In the business pass to the JS above click on the consultation, there are antecedents;</p></p><p><p>Only use the Business Pass hyperlink Click Consultation is no antecedents;</p></p><p><p>OK, analysis of the method here is also out, is in its own website all "online consultation text" and "online consultation button" on the addition of similar business access JS function link;</p></p><p><p>The following is a non-trajectory specific solution to the business communication dialogue:</p></p><p><p>Through the comparison found that business through their own JS read after the display of the image link is</p></p><pre class="brush:html;toolbar:false"><pre class="brush:html;toolbar:false"><a href= "#" onclick= "lr_hideinvite (); openzoosurl (); return false;" target= "_blank" ></a></pre></pre><p><p>We are going to replace all the hyperlinks on the site with code like the above code;<br></p></p><p><p>Call a JS in</p></p><p><p>The code is as Follows:</p></p><p><p><br></p></p><p><p>function Swtclick () {</p></p><p><p>Lr_hideinvite ();</p></p><p><p>Openzoosurl ();</p></p><p><p>Return false;</p></p><p><p>}</p></p><p><p><br></p></p><p><p>Then click on the code to write</p></p><pre class="brush:html;toolbar:false"><pre class="brush:html;toolbar:false"><a href= "javascript:swtclick (); target=" _blank "></a></pre></pre><p><p>Or</p></p><pre class="brush:html;toolbar:false"><pre class="brush:html;toolbar:false"><a href= "#" onclick= "lr_hideinvite (); openzoosurl (); return false;" target= "_blank" ></a></pre></pre><p><p>of course, This kind of method has limitations, can only be used in their own website to improve the business communication dialogue without track problems, such as to use the Third-party Platform Business Advisory Link Advisory function, currently only after the link to add the dialogue Portal and portal url, if you have a better way to comment below the Discussion.</p></p><p><p><br></p></p><p><p>=================================================================================</p></p><p><p><br></p></p><p style="text-align:center;"><p style="text-align:center;"><span style="font-size:24px;"><strong>A solution to the non-trajectory of the website business Pass</strong></span></p></p><p><p><span style="font-size:24px;"><strong><br></strong></span></p></p><p><p>Website Business Pass a solution of no trajectory, when visitors click on the form of Httpt://www.xxx.com/swt/this link to enter the Business Communication dialog window, will cause the loss of business background track, The following medical template Library for everyone to provide a solution.</p></p><p><p>The code is as Follows:<br></p></p><pre class="brush:html;toolbar:false"><pre class="brush:html;toolbar:false">$ (function () {$ ("a[href= '/swt/')"). Click (function () {if (typeof (openzoosurl)! = "undefined") {open            Zoosurl (' chatwin ', ' &e=fromlink ');        Return false;    } return true; });});</pre></pre><p><p>Description: The above code uses jquery, please introduce yourself to the jquery library.</p></p><p><p>Mobile phone and PC station Click Business Pass no trajectory solution</p></p></span>

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.