Home > Web Front-end > HTML Tutorial > How to make images scroll in canvas_html/css_WEB-ITnose

How to make images scroll in canvas_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:11:11
Original
1039 people have browsed it

I defined a canvas with a fixed size, such as width=200, height=720, which can display up to 3 pictures. There is a scroll button inside. When the scroll button is clicked, the next three pictures can be displayed. Here I have obtained all the images to be put into the canvas. The question is how to display the three pictures on the next page through buttons? Try to make the effect as smooth as possible


Reply to the discussion (solution)

Waiting online! ^^^^^^^^^^^^^

1. You can use an array to save the addresses of all pictures in the array
2. Click on the previous page and next page to determine the range of the image in the array to be displayed
3. Redraw the board , display the picture of the corresponding interval

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template