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

A JS page turning effect_javascript skills

WBOY
WBOYOriginal
2016-05-16 19:11:121012browse

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.
Statement:
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