Home > Web Front-end > JS Tutorial > Picture scroll up_image effects

Picture scroll up_image effects

WBOY
Release: 2016-05-16 19:27:40
Original
923 people have browsed it

[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute
]<script> articleHeight=150; stopscrolla=false; article1.scrollTop=0; //more javascript from http://www.webjx.com with(article1){ style.width=0; style.height=articleHeight; style.overflowX="visible"; style.overflowY="hidden"; noWrap=true; onmouseover=new Function("stopscrolla=true"); onmouseout=new Function("stopscrolla=false"); } preTopa=0; currentTopa=0; stoptimea=0; function init_srolltext1(){ article2.innerHTML=""; article2.innerHTML+=article1.innerHTML; article1.innerHTML=article2.innerHTML+article2.innerHTML; setInterval("scrollUp1()",50); } function scrollUp1(){ if(stopscrolla==true) return; currentTopa+=1; if(currentTopa==151) { stoptimea+=1; currentTopa-=1; if(stoptimea==50) { currentTopa=0; stoptimea=0; } } else { preTopa=article1.scrollTop; article1.scrollTop+=1; if(preTopa==article1.scrollTop){ article1.scrollTop=article2.offsetHeight-articleHeight; article1.scrollTop+=1; } } } init_srolltext1(); </script>
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