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!


View Poll Results: Did This Help You?

Voters
11. You may not vote on this poll
  • Yes

    1 9.09%
  • No

    6 54.55%
  • Yes And No

    1 9.09%
  • I Already Knew How To Do These Codes, But Good Work

    3 27.27%
Results 1 to 10 of 10
  1. #1

    Post Basic Script Codes, (Includes How To Disable Right Clicking)

    Basic Script Codes, Mainly For Beginners

    The Scripts Below Are Used By Many Sites, Like Even Habbox Use's One Of The Codes Listed Below.

    The Basic Disabling Right Click Code (With Popup Message)

    <script language=JavaScript>
    <!--

    //Disable right mouse click Script

    var message="Function Disabled";

    ///////////////////////////////////
    function clickIE4(){
    if (event.button==2){
    alert(message);
    return false;
    }
    }

    function clickNS4(e){
    if (document.layers||document.getElementById&&!docume nt.all){
    if (e.which==2||e.which==3){
    alert(message);
    return false;
    }
    }
    }

    if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=clickNS4;
    }
    else if (document.all&&!document.getElementById){
    document.onmousedown=clickIE4;
    }

    document.oncontextmenu=new Function("alert(message);return false")

    // -->
    </script>

    Disabling Right Clicking And No Highlighting Script (No Popup Message)

    <body bgcolor="#FFFFFF" ondragstart="return false" onselectstart="return false" oncontextmenu="return false">

    Very Basic Script Codes, For Your Website. I Will Post More Advanced Scripts Soon.

    Hope This Helped

  2. #2
    Join Date
    Jul 2004
    Location
    Sunshine Coast, Queensland, AU
    Posts
    1,830
    Tokens
    467

    Latest Awards:

    Default

    thank you very much

  3. #3

    Default

    No Problem, Glad To Help.

  4. #4
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Why do people always want this compleaty usless code? all it does is annoy people, it dosent stop anyone veiwing your source, or anything? plus it can be disabled with the click of a button "/

  5. #5
    Join Date
    Jul 2004
    Location
    Bournemouth. UK
    Posts
    3,638
    Tokens
    0

    Latest Awards:

    Default

    Rofl. Just highlight it and press ctrl + c.

    I suppose it looks good on noob sites... >.<

    Rofl... OMGZ PHEAR MY HTML SKILLZ I EDITED DA MESSAGE BIT INIT!1
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.

  6. #6
    Join Date
    Oct 2004
    Location
    Scotland
    Posts
    2,280
    Tokens
    1,075

    Latest Awards:

    Default

    omg ross please dont hurt me

    http://www.stupidian.com
    (contains mild swearing)

  7. #7
    Join Date
    Jun 2004
    Posts
    753
    Tokens
    0

    Default

    My sites

    Mangacars.co.uk

    Ppxgames.com

    Uploadforfree.NET (EXPIRED)

    PixelLoft.NET

    Css-Gyro.com

    Neonfusion.NET

    [Zainx / Lofty]

  8. #8
    Join Date
    Jul 2004
    Location
    Bournemouth. UK
    Posts
    3,638
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by -JT-
    omg ross please dont hurt me
    DNT COM NEER ME JAMES IM LEFAL !!!!!1!!1
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.

  9. #9
    Join Date
    Oct 2004
    Location
    Scotland
    Posts
    2,280
    Tokens
    1,075

    Latest Awards:

    Default

    *hides* no one show him where i am

    http://www.stupidian.com
    (contains mild swearing)

  10. #10
    Join Date
    Jul 2004
    Location
    Bournemouth. UK
    Posts
    3,638
    Tokens
    0

    Latest Awards:

    Default

    l-l4l-l4 F()l_l/\l D _l()()

    And there isn't " This is a pointless post " Option in the poll...
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.

Posting Permissions

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