Intermediary transaction SEO diagnosis Taobao guest Cloud host technology Hall
About Arctic ' s Internal Alexa Redirect, this is a good idea to redirect your site's links to http://redirect.alexa.com/redirect?http:// Beauty.bazhan.net, and then wait for http://redirect.alexa.com to return to their site links. This completes a traffic statistic. (statistical effect remains to be seen)
Looks good, I try to install this plugin.
Studied the code, found that the link on the site a label on the add a sentence onclick= "parent.location.href= ' http://redirect.alexa.com/redirect?http:// beauty.bazhan.net/'; Event.returnvalue=false ', implemented here to redirect to Alexa.com.
Now the code is:
<a href= "http://blog.const.net.cn/" onclick= "parent.location.href=" http://redirect.alexa.com/redirect?http:// beauty.bazhan.net/'; return event.returnvalue=false ' >CBM ' land</a>
Then we found a few questions:
1. Use the parent.location to direct to alexa.com, equal to window.location orientation page, this kind of jump does not bring referer information.
2. Here return event.returnvalue=false do not know if it is necessary. This specifies the return of the onclick event, But redirect is parent.location, regardless of whether the onclick return is false,parent.location have already begun to execute, I think this is forbidden parent.location turn.
3. Increase page file volume. Each a tag adds a lot of junk code, and if the onclick content is encapsulated in a common function, isn't it better?
To improve the method, write a common function:
<script language= "JavaScript" >
function Onclick_func (event) {
Event.href= ' Http://redirect.alexa.com/redirect? +event.href;
}
</script>
Each a label changes to <a onclick= "Onclick_func (This)" href= "http://beauty.bazhan.net/" > My Web page </a>
So that each connection plus the data only onclick= "Onclick_func (This)", relatively long before the onclick event is not a lot of short, in the page links more than the case can save a lot of pages of the number of bytes.
You can also name the function shorter, which saves the download traffic is conceivable.
Simplify the code again:
<a href= "http://beauty.bazhan.net/" onclick= "E (This)" >CBM ' s land</a>
<script language= "javascript" >function E (E) {e.href= "Http://redirect.alexa.com/redirect?" +e.href; </script>