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 1 of 3 123 LastLast
Results 1 to 10 of 28
  1. #1
    Join Date
    Feb 2009
    Location
    London
    Posts
    935
    Tokens
    100
    Habbo
    Sameer!

    Latest Awards:

    Thumbs up Disable right-click for your website!

    Hello!

    I found this great script coded in javascript that disabled right-clicks on webpages. Basically no-one can right-click on your page.

    Here it is: Remember to put this code into the BODY of your webpage in HTML.

    HTML Code:
    <script language=JavaScript>
    var message="";
    
    function clickIE() {if (document.all) {(message);return false;}}
    function clickNS(e) {if 
    (document.layers||(document.getElementById&&!document.all)) {
    if (e.which==2||e.which==3) {(message);return false;}}}
    if (document.layers) 
    {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
    else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
    
    document.oncontextmenu=new Function("return false")
    </script>
    Thankies!

  2. #2
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    omg gr8 post +rep!!!
    Hi, names James. I am a web developer.

  3. #3
    Join Date
    Mar 2008
    Posts
    1,055
    Tokens
    0
    Habbo
    Decalan

    Latest Awards:

    Default

    ughhhh. i hate when people disable right-click. :@

  4. #4
    Join Date
    Apr 2006
    Location
    West Midlands
    Posts
    3,384
    Tokens
    0

    Latest Awards:

    Default

    This is pointless and annoying, there's plenty of ways around it.

    People can just save your source, edit out the javascript and then open it.


    Xbox Live: Jholder112233
    PS3 Online Tag: Josh-H

    Last.fm | Digg | Xbox.com

  5. #5

    Default

    Seriously this is completely pointless - if it's to stop them viewing the source, they can just do view -> page source or what ever it is for their browser. If it's to stop them from stealing images, they can easily disable JavaScript. Seriously disable right click is just a pain because it stops you from being able to do right click -> open in new window or tab. Sure you can do this with ctrl but still just no.

  6. #6
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Seriously.. seriously.. this is stupid.

    It's no protection whatsoever, and it just makes you look absolutely stupid when someone right clicks and it says "Images Copyright MEz!1!!"...

    Thanks for providing it though? I guess? Not.

  7. #7
    Join Date
    Feb 2009
    Location
    London
    Posts
    935
    Tokens
    100
    Habbo
    Sameer!

    Latest Awards:

    Default

    Guys, please. I just found this I just wanted to share this with you. I didn't want any anger or anything...Well if you guys are like that...whatever.

  8. #8
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    Thats just annoying, immagine how much more annoying it would be to get image sizes for e.g. our ICT coursework.
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  9. #9
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    Quote Originally Posted by ***** View Post
    Thats just annoying, immagine how much more annoying it would be to get image sizes for e.g. our ICT coursework.
    wat...

    Edited by MattGarner (Forum Super Moderator): Please don't post pointless comments, please make them more constructive to the actual post/thread.
    Last edited by xxMATTGxx; 15-03-2009 at 06:25 PM.
    Hi, names James. I am a web developer.

  10. #10
    Join Date
    Jul 2006
    Location
    Leeds
    Posts
    17,006
    Tokens
    26,134
    Habbo
    e5

    Latest Awards:

    Default

    o nooezzz sum1 stole ma habbo picz from meh websyt !!!!

    who cares lol. if they steal if and its urs u can prosecute cant u or sumin so let em take it then get da muneyz

Page 1 of 3 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
  •