Thread: JavsScript

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Posts
    1
    Rep Power
    0

    JavsScript


    Can anyone help my with this promble that I am having.

    I have three frames:

    Code:
    ---------------------------------
    -             TOP               -
    ---------------------------------
    -                               -
    -                               -
    -                               -
    -              MAIN             -
    -                               -
    -                               -
    -                               -
    ---------------------------------
    -             BOTTOM            -
    ---------------------------------
    I need the BOTTOM frame to have two button that contorl the scroll bar for the MAIN frame.

    Dose anyone know how to do this? If so can you show me?

    http://densdesign.com
  2. #2
  3. nx
    Devshed Novice (500 - 999 posts)

    Join Date
    Aug 2003
    Location
    USA
    Posts
    626
    Rep Power
    0
    give your main frame a name, such as "main" or something. then for your buttons, do this:
    <input type="button" value="Scroll" onclick="top.main.scrollTo(50,0)">

    im not sure if thats what you need(nor if itll work....im not too familiar with the scrollTo() method...)...but its worth a try
    btw, nice site design and layout

IMN logo majestic logo threadwatch logo seochat tools logo