SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: scrollTop

  1. #1
    runat="server" Golgotha's Avatar
    Join Date
    Nov 2001
    Location
    Colorado
    Posts
    2,085
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    scrollTop

    Code:
     function menuDown() {
     panel = document.all.panelCategories;
     panel.scrollTop += 85; 
    }
    is there a more crossbrowser way to set scrollTop?

  2. #2
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    panel = document.getElementById('panelCategories');
    Problem is: this is unlikely to be the only line with MSIE-specific coding in it. Sometimes it's better to just find another script.
    ::: certified wild guess :::


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
  •