How JQuery scrolls up the text list
This article is about how JQuery scrolls up the text list. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
The jQuery implementation code is as follows:
$(function () {)
$("# newly") .hover (function () {
ClearInterval (scrtime)
}, function () {
Scrtime=setInterval (function () {
$ul=$ ("# newly ul")
Liheight=$ul.find (li:first) .height ()
$ul.animate ({marginTop: "- 10px"}, 1000 technology function () {
$ul.find ("li:first") .appendTo ("# newly ul")
Ul.find ("li:first") .hide ()
$ul.css ("margin-top", "0px")
Ul.find ("li:first") .show ()
});
}, 4200)
}) .trigger ("mouseleave")
});
Thank you for reading! This is the end of the article on "how to scroll up the text list in JQuery". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!