Home > Web Front-end > JS Tutorial > A JS page turning effect_javascript skills

A JS page turning effect_javascript skills

WBOY
Release: 2016-05-16 19:11:12
Original
1033 people have browsed it

Previous pageNext page


Jump to page



The above is my modification to a page turning effect. I don’t know if it is possible. Can anyone help me?
<script> <BR>var curId = 1; <BR>var maxId = 3; <BR>if (document.location.search) curId = Number(document.location.search.split("?")[1].split("=")[1]); <BR>document.getElementById("pic").src = curId + ".htm"; <BR>function Page(id) <BR>{ <BR> if ( id == 0 ) <BR> curId = Number(document.getElementById("page").value); <BR> else <BR> curId += id; <BR> if ( curId < 1 ) <BR> curId = 1; <BR> if ( curId > maxId ) <BR> curId = maxId; <BR> document.getElementById("pic").src = curId + ".htm"; <BR>} <BR></script>I don’t know if it has any practical significance.
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