This article will share with you a piece of code snippet of js carousel images and custom scroll bars. The layout and style editor will not be introduced to you too much. You can optimize and implement the Code according to your individual needs, you can refer to the following code snippet. This is my own carousel image. You can see that I have not optimized it. private Chat for any improvement
You can fix the layout.
`
<>
《script》var c = 0 ;var t ;window.onload = function () {t = setInterval("bo1()",5000);}function lun(num){c = num ;var ptn = document.getElementById("circle").getElementsByTagName("img")[0];for (var i = 1 ; i < 7;i++ ) {var li = document.getElementById("circle").getElementsByTagName("li")[i-1];li.style.backgroundColor = "#3E3E3E";if (num == i) {ptn.src = "img/"+ i + "p.jpg";li.style.backgroundColor = "#B61B1F";}}}function bo1() {if(c>=6){c = 0 ;}c++;lun(c);}function bo2() {if(c<=1){c = 7 ;}c--;lun(c);}《script》
Next, let's take a look at the DEMO of using the custom scroll bar with the mouse scroll wheel.
The Code is as follows:
Vortex Naruto
The title of the hero in the Japanese cartoon painter kimoto Qi shi's work "Naruto. Because the evil nine-tailed Demon Fox was sealed on his body, and his father-less mother-less man suffered cold eyes and discrimination from the villagers, he made up his mind to become the sixth generation of fire shadow and let everyone agree with his existence.
Sun xiangchutian
Actress No. 3 In the Japanese cartoonist ban qishi's work "Naruto. The female ninja in the village of muye ninja, who is the eldest daughter of the family's clan chief. I like vortex Naruto. I used to be a girl with a weak personality. But under the influence of Naruto, I gradually become strong and become a good ninja.
Mengqi · D · lufei
Mengqi D. lufei is the hero of Japanese popular cartoon one piece. He is the hero of one piece, a popular Japanese anime. CAPTCHA has the dream of finding one piece, the legendary treasure, and becoming the pirate.
Mr. box
Danbo is a cute doll DIY from a waste paper box, with round eyes and triangular mouth. It always shows innocent expressions and makes people feel soft. Danbo is a pure and kind little guy, in its pure fantasy world, it is always the most pure and charming.
The above is a small part of the JavaScript carousel diagram and custom scroll bar with the mouse scroll wheel to share the code paste, I hope to help you, if you have any questions, please leave a message, the editor will reply to you in a timely manner. I would like to thank you for your support for PHP chinnet!
For more JavaScript carousel images and custom scroll bars, share the Code with the scroll wheel. For more information, see PHP!