|
|
|
|
|
Javascript. JavaScript is used in millions of Web pages to improve the design, validate forms, detect browsers, create cookies, and much more. JavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer, Mozilla, Firefox, Netscape, and Opera. JavaScript is a lightweight scripting language that was designed to add interactivity to HTML pages which consists of lines of executable computer code and is usually embedded directly into HTML pages. It is an interpreted language (means that scripts execute without preliminary compilation) and everyone can use JavaScript without purchasing a license JavaScript gives HTML designers a programming tool - HTML authors are normally not programmers, but JavaScript is a scripting language with a very simple syntax! Almost anyone can put small "snippets" of code into their HTML pages and can be used to put dynamic text into an HTML page - A JavaScript statement like this: document.write("<h1>" + name + "</h1>") can write a variable text into an HTML page. JavaScript can react to events - A JavaScript can be set to execute when something happens, like when a page has finished loading or when a user clicks on an HTML element Also it can be used to validate data, |
Alert BoxThis is a simple button that calls a function to display an alert box, it can say anything you need it to say and will have just one button; "OK". |
|||
| This box calls a function that is linked to an arry which cycles through the images defined within the array. | ||||
Password BoxThis box is used mainly for simple password confirmation, but I have used it as a "typed answer" box. If you type yes, you will go back to the homepage, but type anything else and another alert box will show up. |
This is using Javascript to detect which Browser and Operating System you are using and displaying it in an easy to read to way. |
|||
Confrim BoxThis is a confrim box, it will ask you a quiestion and depending on whether you click ok or cancel it will perform one of two tasks, either it will display the Gallery, or display another alert. |
At the bottom of the Theme Select menu is the time as set by your computer clock, the Javascript reads the hours and minutes from the computer time and displays it with elading zeros and an AM/PM depending if it is after 12:00pm. | |||
|
professional imaging solutions. email:kyle@sevensense.co.uk |
|||