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!


Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: DIV functions

  1. #11
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    <a href="x.html" onmouseup="functiona()" onmousedown="function()" class="myclass">MY LINK!</a>
    How could this hapen to meeeeeeeeeeeeeee?lol.

  2. #12
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    Reconix, thanks but no thanks. That won't work, I don't have control of the link. Think of it like it's in an iframe.

    Craig's working on it for me anyway now
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


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

    Latest Awards:

    Default

    Guy, i think the javascript behind the ad is preventing the onclick function from working sorry :S

    I dont really know what to suggest :S
    Coming and going...
    Highers are getting the better of me

  4. #14
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    Hehe, your screwed boo..
    How could this hapen to meeeeeeeeeeeeeee?lol.

  5. #15
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    Is there some way of "onEvent" or possibly putting it in a table or something?
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


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

    Latest Awards:

    Default

    its not that, its just when anywhere inside the ad is clicked, the ad javascript overtakes any previous onclick functions..

    I could put it inside 20 tables and 30 divs each with an onclick but as long as its the inside of the ad thats being clicked, thats the JS that will run.
    Coming and going...
    Highers are getting the better of me

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

    Latest Awards:

    Default

    <a href="x.html" onmouseup="functiona() return false;" onmousedown="function() return false;" class="myclass">MY LINK!</a>

    That will make it so it goes to x.html if you don't have javascript enabled.

  8. #18
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    Quote Originally Posted by Blob View Post
    <a href="x.html" onmouseup="functiona() return false;" onmousedown="function() return false;" class="myclass">MY LINK!</a>

    That will make it so it goes to x.html if you don't have javascript enabled.
    Why have you put onmouseup/onmousedown there? And also Craig, onmouseout works.. even after they've clicked the ad. In internet explorer, you can click it then close the new window and voila it'd have run the javascript function by then because it's onmouseout, when you move the mouse away to close the new window.
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


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

    Latest Awards:

    Default

    Quote Originally Posted by iUnknown View Post
    Why have you put onmouseup/onmousedown there? And also Craig, onmouseout works.. even after they've clicked the ad. In internet explorer, you can click it then close the new window and voila it'd have run the javascript function by then because it's onmouseout, when you move the mouse away to close the new window.
    I copied Reconix' code.

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

    Latest Awards:

    Default

    i know onmouseout works. But onclick doesnt which is the whole point of people having to click it..
    Coming and going...
    Highers are getting the better of me

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

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