Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
JS can be said to be a very good web page, but a lot of new friends do not understand, all feel JS bad, this is from the sentence: JS on the search engine unfriendly. A lot of new people wrong understanding this sentence, JS search engine is not friendly is said JS things can not be searched crawl, the important things in the page do not put into JS, it is because the contents of JS search can not crawl, we can use it.
Control CSS Styles
Many times we need some special methods, such as hiding some do not want to let users see things, but want to let the search to see, or to highlight something but do not want to make the search too prominent, and these things directly with the definition of CSS will be found by search engines, with JS to define OK. To give a simple example, the current one-page Taobao customer site application of more, these websites want to show the ads to the user and not to the search engine, but the content of their own does not want to see the search and users can not see, this time need to use JS, the ads directly with JS to do, and the content of the site to use JS to hide, Look at the page code:
The following are the referenced contents:
<div id= "YC" >
Page content
</DIV>
To see the reduction of the JS code:
the following references:
document.getElementById (' YC '). style.display= ' None ';
This is very good to achieve a balance between users and search engines, but this is pure garbage station practice, of course, some regular stations can also use these techniques, as to how to use, according to different websites to do.
Ii. Enhancing interaction with users
For example, some registration, landing and so on according to the current user's state and change, these things must be done with JS, and some generate static web site, home or channel page has called the Forum's posts, if the homepage does not regenerate, these posts will not be adjusted out, This time can use JS program to control the production of the first page, to reach the home page how long time automatically generation, which is very beneficial to users and search engines.
Iii. Controlling Export Links
Sometimes you need to export a lot of links to other sites for some reason, this may be very unfavorable, such as some classified information site check bus, check train and other convenient tool links, need to export a lot of links, this time completely with nofollow is also very bad, with JS is much better.
The use of JS is still a lot, but the difficulty of using a good JS is too technical, after all, not many people can play JS very skilled, but, as a webmaster, some basic JS tips or should learn to master the good. This article by Chizhou seo@ I love Mule (Newborn power Network marketing team) to provide, URL: http://www.52luo.com/, welcome reprint, Reprint please indicate the source of the link.