Java Script Tutorial
Java Script is one of the most useful web languages, like CGI it allows the user to interact with the page more and for the page to do more. Java Script works in a normal HTML page and does not require much modification to work. This tutorial will mainly focus on how to use existing java scripts, but a little of it will talk about making your own script. Remember to check out our script center.
First off, you will need to know about the versions of Java Script and which ones work with each browser.
Another commonly used script is Get Rid of Frames automatically. This script makes your site automatically remove it's self from any frames it may be in, and it works much better then the meta tag version! Where you want the link to be, add this code: Another script that people often look for is one that will write a text file or a particular java script to a web page. We have made one, and one that allows you to edit the text file very simply, with a single upload. Here it is. In your filename.html put your code Then make a file named myscript.js (make sure u have the .js otherwise it wont work) In this file, put the rest of the script like you would normally do. For instance a script that writes to web page would be this: This part of the tutorial is about common variables and coding in java script. This will not teach you how to completely make your own java script, just how to edit them. If - this statement is used to open an idea, if this is true or false, do this. = is equals, != equals not, as plain as that. { is open function, } is close function //comments here an more there closes it. function() starts a function. This part of the tutorial is about common variables and coding in java script. This will not teach you how to completely make your own java script, just how to edit them. If - this statement is used to open an idea, if this is true or false, do this. = is equals, != equals not, as plain as that. { is open function, } is close function //comments here an more there closes it. function() starts a function. There are many more commands, but they mainly deal with individual parts of scripts and types of scripts. Try looking through more of our sample scripts to see how they work. Mouse Over commands are very commonly used and very important for many people. We have included a few of them for your use along with an explanation of how to use them. This last script loads pages based on a user's resolution. This is very important because different resolutions change how the page is viewed and how it looks. This script is VERY easy to setup, simply put it on it's own page and change the variables!.
Subscribe to:
Post Comments (Atom)
|
No comments:
Post a Comment