Results 1 to 2 of 2

Thread: auto scrolling to a <LI>

  1. #1
    Join Date
    Sep 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default auto scrolling to a <LI>

    I have a scrollable div that I have an unordered LIst in. Sometimes the list gets long and an item of interest to my user (he's clicked on it previously) is scrolled off to the bottom. Is there a way, when the page is loaded, to scroll to that List item?
    I've seen this before when someone would have <U> tags, search for the <U> tags, and then do a scrollintoview on the next to the last item in the collection (maybe it's ordered backwards or something).
    What what if I have something that isn't with <U> tags. How can I flag it so that I can scroll to it the next time I come to the page?
    Last edited by HockeyFan; 11-18-2005 at 03:24 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You could still use the <u> tag if you like, without it causing an underline:

    HTML Code:
    <u style="text-decoration:none">Tagged Text</u>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •