Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 7 of 7
  1. #1
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default Jumping to Top..

    Does anyone know how to make it so that when i do.

    HTML Code:
    <a href="#" onclick="loadit('index.php');">Click</a>
    It doesnt scroll to the top of the page?

    (I dont want to use <a href="javascriptoadit('index.php');">Click</a>)
    Coming and going...
    Highers are getting the better of me

  2. #2
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Quote Originally Posted by MrCraig View Post
    Does anyone know how to make it so that when i do.

    HTML Code:
    <a href="#" onclick="loadit('index.php');">Click</a>
    It doesnt scroll to the top of the page?

    (I dont want to use <a href="javascriptoadit('index.php');">Click</a>)
    Its because your going to #, which is a span id for nothing. If you have like <span id="hello">YO</span> typed in #hello it would go to the text YO.

  3. #3
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    i know..

    Im asking if anyone knows how to stop it jumping to the id.
    Coming and going...
    Highers are getting the better of me

  4. #4
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    You cant...

    Edit:

    btw, you dont have to use a href. You could just do an id and in css make the cursor the same as if hovering over a link.

  5. #5
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    would

    PHP Code:
    <a href="javascript:void(0)">Click</a
    work? (ie the void wouldnt interrupt the onclick attrb.?)
    Coming and going...
    Highers are getting the better of me

  6. #6
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Quote Originally Posted by MrCraig View Post
    would

    PHP Code:
    <a href="javascript:void(0)">Click</a
    work? (ie the void wouldnt interrupt the onclick attrb.?)
    Dont know actually, try it.

  7. #7
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Blob View Post
    Dont know actually, try it.
    Its working fine
    Coming and going...
    Highers are getting the better of me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •