Urgente Help Please with Frame Scroll

B

Bubu

Hello, excuse me bu I'm not a programmer.
I have two frames, left navigation, right main
In the left I have two buttons (up and down), I need to scroll the
mainFrame up when I push the up button and down when I press the down
button.
I have search in google, but I have not found a working script.

Please anyone can help me?

Thanks
Bubu
 
A

ASM

Bubu a écrit :
Hello, excuse me bu I'm not a programmer.
I have two frames, left navigation, right main

I understand you work with a framed page
In the left I have two buttons (up and down), I need to scroll the
mainFrame up when I push the up button and down when I press the down
button.

why don't you let the browser to display the vertical lift in your
mainFrame ? (lift = scrollbar)
I have search in google, but I have not found a working script.

perhaps could you try something like :

<button onclick="parent.mainFrame.scrollBy(0,12);">down</button>
<button onclick="parent.mainFrame.scrollBy(0,-12);">up</button>

or :

<a href="#"
onmouseover="truc=setInterval(function() {
parent.mainFrame.scrollBy(0,5);},100}"
onmouseout="clearInterval(truc);"
onclick="return false;"><img src="down.jpg"></a>
<a href="#"
onmouseover="truc=setInterval(function() {
parent.mainFrame.scrollBy(0,-5);},100}"
onmouseout="clearInterval(truc);"
onclick="return false;"><img src="up.jpg"></a>


Not tested ...
 
A

ASM

ASM a écrit :

correction :

<a href="#"
onmouseover="truc=setInterval(function() {
parent.mainFrame.scrollBy(0,5);},100);"
onmouseout="clearInterval(truc);"
onclick="return false;"><img src="down.jpg"></a>
<a href="#"
onmouseover="truc=setInterval(function() {
parent.mainFrame.scrollBy(0,-5);},100);"
onmouseout="clearInterval(truc);"
onclick="return false;"><img src="up.jpg"></a>

if too fast change 5 in bigger number
if too slow change 5 in smaller number

you can also play with 100

and ... no more tested !
 
B

Bubu

if too fast change 5 in bigger number
if too slow change 5 in smaller number

you can also play with 100

and ... no more tested !

Many thanks, and sorry for the double post.

Bubu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top