SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    cd /pub; more beer diacono's Avatar
    Join Date
    Dec 2000
    Location
    Horsham, West Sussex, UK
    Posts
    277
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    scrolling a window

    well i've got this script:
    Code:
    <script language=JavaScript>
    function scrollit(from, dist){
      y = from;
      scrollEnd = y + dist;
      for (I=1; I<=scrollEnd; I++){
            parent.scroll(1,I)
      }
    }
    </script>
    and i call it like this:
    <a href="#" onMouseOver="scrollit(0,500);">scroll</a>

    but i was trying to make the window scroll from a position since my script will only scroll down from the top, how do i do this??
    btw, i dont speak javascript
    thanx
    DIEGO MOORE

  2. #2
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Change the 0 in scrollit to something higher.
    I swear to drunk I'm not God.
    Matt's debating is not a crime
    Hint: Don't buy a stupid dwarf Clicky

  3. #3
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Did you get this workign yet diacono?
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  4. #4
    cd /pub; more beer diacono's Avatar
    Join Date
    Dec 2000
    Location
    Horsham, West Sussex, UK
    Posts
    277
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    kinda gave up...

    well it was for a site which i changed my mind about... but basically no, i didnt make it work!

    i remember a site that had a lot of frames which could be scrolled up/down/left/right via js, but i cant find it (tipical!)

    still curious on how to do it though...
    DIEGO MOORE


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •