Results 1 to 3 of 3

Thread: navigation from a portion to another portion

  1. #1
    Join Date
    Jan 2012
    Posts
    52
    Thanks
    17
    Thanked 0 Times in 0 Posts

    Lightbulb navigation from a portion to another portion

    Hello,
    i view a website http://lokeshdhakar.com/projects/lightbox2/
    where i saw that when anyone click example than the site tooks
    viewer to the example portion.
    when one click donate than it tooks to donate portion. how this is done.
    Please help me to do this

    Thanks

  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

    That can be done (without the smooth scrolling action) using ordinary named anchors in HTML. However, the page you mention uses a jQuery based script called jquery-smooth-scroll, available at github:

    https://github.com/kswedberg/jquery-smooth-scroll

    Dynamic Drive has a similar script (also jQuery based):

    http://www.dynamicdrive.com/dynamici...markscroll.htm
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    megha_3000 (08-28-2012)

  4. #3
    Join Date
    Jan 2012
    Posts
    52
    Thanks
    17
    Thanked 0 Times in 0 Posts

    Default

    Now i got it. I Found that very useful. Thanks a lot.

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
  •