Code to control iframe scrolling with javascript_javascript skills
May 16, 2016 pm 07:15 PMNow there is a horizontal IFRAME. I need to click an image outside the iframe to horizontally scroll an html page inside the iframe, but I don’t want to see the scroll bar of the iframe. How to solve it????
demo.htm 🎜>
onmousedown="timer1=setInterval('parent.frames['in'].scrollBy(0 ,-1)',10)"
onmouseup="clearInterval(timer1)">
onmousedown="timer1=setInterval('parent.frames ['in'].scrollBy(0,1)',10)"
onmouseup="clearInterval(timer1)" >
in.htm
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Scroll horizontally..
demox.htm
onmouseup="clearInterval(timer1)">
onmousedown="timer1=setInterval('parent.frames['in'].scrollBy(1,0)',10)" onmouseup="clearInterval(timer1)" >
inx.htm

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Replace String Characters in JavaScript

Custom Google Search API Setup Tutorial

8 Stunning jQuery Page Layout Plugins
