Urgente Help Please with Frame Scroll

Discussion in 'Javascript' started by Bubu, Oct 19, 2006.

  1. Bubu

    Bubu Guest

    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
    Bubu, Oct 19, 2006
    #1
    1. Advertising

  2. Bubu

    ASM Guest

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

    --
    ASM
    ASM, Oct 19, 2006
    #2
    1. Advertising

  3. Bubu

    ASM Guest

    ASM a écrit :
    >
    > or :


    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 !

    --
    ASM
    ASM, Oct 19, 2006
    #3
  4. Bubu

    Bubu Guest

    > 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
    Bubu, Oct 19, 2006
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Javier

    Urgente.

    Javier, May 10, 2004, in forum: Perl
    Replies:
    2
    Views:
    612
  2. nicholas
    Replies:
    0
    Views:
    431
    nicholas
    Dec 7, 2004
  3. Fabry
    Replies:
    3
    Views:
    642
    Govindan Chandran
    Jul 20, 2003
  4. KK
    Replies:
    2
    Views:
    528
    Big Brian
    Oct 14, 2003
  5. Bubu
    Replies:
    0
    Views:
    80
Loading...

Share This Page