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 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jul 2004
    Location
    I'm not quite sure.......
    Posts
    771
    Tokens
    0

    Default JavaScript - Begginners Guide

    JavaScript

    JavaScript is a type of HTML which can do some pretty decent things.

    Entering Pop-Up

    <script language=”JavaScript”>alert (“YOUR MESSAGE HERE”) </script>


    Leaving Pop-Up

    <body onUnload=”alert (‘YOUR MESSAGE HERE’) ;”>


    Entering and leaving pop-up

    <body onLoad=”alert(‘YOUR TEXT HERE’) ; “onUnload=”alert (‘YOUR TEXT HERE’) ; “>

    As you can probably tell the first part in brackets and inverted commas’ is what comes up when you open the page and the same for the second one apart from that one appears when you close the page.


    Blocking right clicking

    <script LANGUAGE="JavaScript">

    <!--
    function click() {
    if (event.button==2) {
    alert(‘YOUR WANRING HERE');
    }
    }
    document.onmousedown=click
    // -->
    //-->

    </script>


    Password protect pages

    <script language=”JavaScript”><!—hidevar password;var pass1=”PASSWORD GOES HERE”;password=prompt (‘TEXT ON POP-UP’,’ ‘);if (password=pass1)alert(‘TEXT IF RIGHT’);else { window.location=”URL OF PAGE IT GOES TO IF PASSWORD IS WRONG”; }//--></script>

    This goes after the <head> tag – not after the </head> tag.


    That’s just some basic JavaScript scripts for you. If you want to find more search for JavaScript on Google or something like that.
    Join My Forum

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

    Latest Awards:

    Default

    another good attempt at a tutorial. Well done once again This one is a little empty so i might add some stuff to it if you dont mind...?

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

  3. #3
    Join Date
    Jul 2004
    Location
    I'm not quite sure.......
    Posts
    771
    Tokens
    0

    Default

    Sure. Go ahead. I just put those scripts in from what I know - i.e not a lot.
    Join My Forum

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

    Latest Awards:

    Default

    okay, i will add some stuff

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

  5. #5
    Join Date
    Jan 2005
    Location
    Crewe/[HxHD]
    Posts
    713
    Tokens
    0

    Default

    Great Tutorial.
    Back.

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

    Latest Awards:

    Default

    I dont quite see why people write toutrials on things there not entirly familr with themslevs.

    Also if you want a serios password javascript wont do. and disabling right click wont stop people from viewing your sorese or stealing your images.


    Its oviosl your putting in alot of effort but i cant serily se how people can benifit form this .

  7. #7
    Join Date
    Jan 2005
    Location
    Kentucky Fried Chicken
    Posts
    4,610
    Tokens
    0

    Latest Awards:

    Default

    thanks, i needed that right click disabled

  8. #8
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,119
    Tokens
    1,371

    Latest Awards:

    Default

    Hm.. thats not really a tutorial, just some scripts!
    Make it more elaberate, maybe.. I dont know much about JavaScript, but maybe say how to code it or something!

    But its still nice =D


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

    Latest Awards:

    Default

    Quote Originally Posted by Mentor
    I dont quite see why people write toutrials on things there not entirly familr with themslevs.

    Also if you want a serios password javascript wont do. and disabling right click wont stop people from viewing your sorese or stealing your images.


    Its oviosl your putting in alot of effort but i cant serily se how people can benifit form this .
    we have had this argument before

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

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

    Latest Awards:

    Default

    Quote Originally Posted by <James>
    we have had this argument before
    yer just:

    cpanel>password protect directories
    REMOVED

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

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