Results 1 to 5 of 5

Thread: Stop Page from Returning to Top with Links

  1. #1
    Join Date
    Sep 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Stop Page from Returning to Top with Links

    ok i help

    how do u stop the page going to the top when i go into a another link?

    can you find a way that when i go into another page it will not go up the top it will just stay in position.

    if you show me the code then i'll appreicate a lot !!!!!! can please give me it as soon as possible

  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

    Where else would the page go? If you link to a new page, that new page should start at the top. If you are talking about an anchor link tag being used for a javascript action on a page without loading a new page, something like so:

    Code:
    <a href="#" onclick="doSomething();">Do Something</a>
    Do it like this:

    Code:
    <a href="#" onclick="doSomething();return false;">Do Something</a>
    But certain free hosts, like Geocities will sometimes still reload the page, then you can do this:

    Code:
    <span onclick="doSomething();">Do Something</span>
    And, if you like, the span can be styled to look like a link:

    Code:
    <span onclick="doSomething();"
    style="color:blue;cursor:pointer;text-decoration:underline;">Do Something</span>
    That is actually the preferred method for doing javascript actions on a page anyway.

    If you are talking about something else, please explain it better, and:

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

  3. #3
    Join Date
    Sep 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

  4. #4
    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

    Quote Originally Posted by Doujinshi Fanboi View Post
    That's a big page, what link(s) are you talking about? And, what would you like them to do that they are not currently doing?

    Quote Originally Posted by me
    If you are talking about something else, please explain it better . . .
    My time here is limited, please do me the favor of focusing the question.
    - John
    ________________________

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

  5. #5
    Join Date
    Sep 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    oh sorri the example is my friends

    ok if you see the navigation area those are the links. when i click on it the page dosen't go up the top it just in position so i want my site to be just like that.

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
  •