Post by Cam on Sept 10, 2010 9:41:29 GMT
Hello, I'm going to set this out easyly by starting with just the basic JavaScript.
Lesson One: The start of making a code.[/colour][/size]
So I'm going to show you how to start a script. It involves the following:
To put that in english it would be like:
Next what you put is:
So now what it looks like is the following:
This is the start of the script, the end looks like this:
Over all we have something looking like the following:
Next part of the lesson which will be posted in a reply to this thread will teach you the next step of JavaScript
_________________________________________________________________
Lesson two: Putting some text into the code
So now what I'm going to teach you is how to write text. In Javascript you don't just write the text theres ways to do it. So as you know the main bits you need to do to make it work, put the following where I put Put code here document.write("hello"); So hopefully what you see is=
Then what that will write is Hello.
Yes that was a very short lesson but it's very easy, next will will be getting the variables and putting comments in. PM me or reply below if you have questions.
_________________________________________________________________
Lesson Three: Comments and variables
So now what we are going to move onto is comments and variables. Comments come very handy when you want to tell the user of your code what to do. For example:
So basicly the comment is easy to remember and doesn't show up in the code you just see it as you install it.
Now we have variables.
This is a basic Variable:
What that would do is write:
'The Varible Text Here'
It can be used in many other ways but that is the basic way of doing a varible. If you want to learn more about Variables which if I were you I would look out for my new lesson which will come out after this which will be a little more advanced.
Next what we are going to learn is a basic location check. What that is is a easy way to write certain text on one certain board. We will cover that though in the next lesson. So practice Varibles and comments
_______________________________________________________________
Lesson One: The start of making a code.[/colour][/size]
So I'm going to show you how to start a script. It involves the following:
<script language = "text/javascript">
To put that in english it would be like:
Define the script language. Script language = " "
Next what you put is:
<!--
So now what it looks like is the following:
<script language = "text/javascript">
<!--
This is the start of the script, the end looks like this:
// -->
</script>
Over all we have something looking like the following:
<script language = "text/javascript">
<!--
Code in here
// -->
</script>
Next part of the lesson which will be posted in a reply to this thread will teach you the next step of JavaScript
_________________________________________________________________
Lesson two: Putting some text into the code
So now what I'm going to teach you is how to write text. In Javascript you don't just write the text theres ways to do it. So as you know the main bits you need to do to make it work, put the following where I put Put code here document.write("hello"); So hopefully what you see is=
<script language = "text/javascript">
<!--
document.write("hello");
// -->
</script>
Then what that will write is Hello.
Yes that was a very short lesson but it's very easy, next will will be getting the variables and putting comments in. PM me or reply below if you have questions.
_________________________________________________________________
Lesson Three: Comments and variables
So now what we are going to move onto is comments and variables. Comments come very handy when you want to tell the user of your code what to do. For example:
<script type= "text/javascript">
// This is a single line comment. Good to use to tell the user what a line means
/*This is a
mutiple lined
Comment */
</script>
So basicly the comment is easy to remember and doesn't show up in the code you just see it as you install it.
Now we have variables.
This is a basic Variable:
<script type="text/Javascript">
var myVariable = "The Variable Text Here";
document.write(myVariable)
</script>
What that would do is write:
'The Varible Text Here'
It can be used in many other ways but that is the basic way of doing a varible. If you want to learn more about Variables which if I were you I would look out for my new lesson which will come out after this which will be a little more advanced.
Next what we are going to learn is a basic location check. What that is is a easy way to write certain text on one certain board. We will cover that though in the next lesson. So practice Varibles and comments
_______________________________________________________________