This article mainly introduces the Ajax scoring effect of the Forum implemented by JS, and analyzes the related skills of JavaScript in responding to mouse events and dynamically operating page element styles in the form of a complete example, if you need it, refer to the example in this article to describe the Ajax scoring effect of the Forum implemented by JS. We will share this with you for your reference. The details are as follows:
This is a common Ajax scoring effect in forums. This effect is achieved when the Discuz old edition forum is used. At present, many websites share similar results with you, I think it is a very practical Ajax scoring effect. I use a background image and can download it myself.
The running effect is as follows:
The Online Demo address is as follows:
Http://demo.jb51.net/js/2015/js-dicuz-ajax-df-plugs-codes/
The Code is as follows:
Forum Ajax rating
Script function go () {var count = sum = distance = 0; var dd, a; var as = document. getElementById ("rank "). getElementsByTagName ("a"); var here = document. getElementById ("here"); var show = document. getElementById ("show"); for (var I = 0; I
1 2 3 4 5
Score ..
I hope this article will help you design JavaScript programs.