Results 1 to 5 of 5
  1. #1
    New Member
    Join Date
    Jan 2009
    Location
    sdaga
    Posts
    4

    Javascrip jumpScroll function

    Hey,

    Im designing a new page and I want links to scroll down the page to a certain point.
    I used the function --

    <script type="text/javascript">
    function jumpScroll() {
    window.scroll(0,210); // horizontal and vertical scroll targets
    }
    </script>

    however I have several links and all need to scroll to different places on the page, but i dont know how to identify the fuction with each different link.

    if you could tell me how it would be helpful.

    thanks

  2. #2

  3. #3
    Provided a nice script ....it was working and i have similar code ..but works different

  4. #4
    you may also use jQuery which is more easy and simple to use and learn. you can find helpful tutorials at jQuery.com

  5. #5
    New Member
    Join Date
    Sep 2009
    Location
    india
    Posts
    1

    Javascrip jumpScroll function

    here is some code....

    <script type='text/javascript'>
    jQuery(function($){
    $('#news').serialScroll({
    items: 'p.newsSubject', //or just 'li'
    axis: 'y',
    prev: 'a.prev',// Selector to the 'prev' button (absolute!, meaning it's relative to the document)
    next: 'a.next',
    cycle: false,
    offset: -25,
    });
    });

    </script>












    Web Site Promotions

Tags for this Thread

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
  •  
Subscribe to us on YouTube