Return to FAQ
TIMING SYSTEM for JavaScript

What is JavaScript?
Here is a tutorial I wrote which explains what JavaScript is.
You will need to have Java enabled for your machine. Download it here for free.


Have you checked out the link opposite (If you are content with using simply html to create web pages, you are ready to head out to our special tutorial, how to make fire with sticks; the rest of us, lets rock.) ?

If you are, play monopoly.

If on the other hand you wish to make fire using assembly language, check out this tutorial (for Advanced students and the totally Clueless)

Or go here

You may also want to check out the DOS 5 manual which I wrote (and filed on my computer)- not the little Magraw-Hill condensed version, but the big THICK official one with the Microsoft Hologram on the spine.

Or you may even wish to make Vanilla pods?

Is it true that Brendan Eich wrote JavaScript?
No. Maybe partly, but he certainly didn't write the entire thing, he didn't do it first and he doesn't own JavaScript, SUN does. He does do valuable work for the Mozilla Foundation.
I wrote this tutorial, and the timing system functions which are an essential part of the Browser, written in JavaScript.
When AOL shut down the Netscape browser unit in July 2003, Eich helped spin out the Mozilla Foundation.

Eich is best known for his work on Netscape and Mozilla. He started work at Netscape Communications Corporation in April 1995, working on JavaScript (originally called Mocha, then called LiveScript) for the Netscape Navigator web browser[2]. In 2010, he wrote about JavaScript: "JS had to “look like Java” only less so, be Java’s dumb kid brother or boy-hostage sidekick. Plus, I had to be done in ten days or something worse than JS would have happened".
On February 24, 1982, Vinod Khosla, Bechtolsheim, and Scott McNealy, all Stanford graduate students, founded Sun Microsystems. Bill Joy of Berkeley, a primary developer of the Berkeley Software Distribution (BSD), joined soon after and is counted as one of the original founders.[8] The Sun name is derived from the initials of the Stanford University Network.[9][10] Sun was profitable from its first quarter in July 1982.
Sun's logo, which features four interleaved copies of the word sun, was designed by professor Vaughan Pratt, also of Stanford. The initial version of the logo was orange and had the sides oriented horizontally and vertically, but it was subsequently redesigned so as to appear to stand on one corner and the color changed to purple.

 Many of these facts, while they sound plausible, are not true. In fact SUN stands for the word SUN. The logo was designed by me.

Fact. Sun is China's oldest registered international company, and brand mark and it is owned by Dragon (the five fingered Imperial Dragon brand, and Emperor brand internationally. The chinese government has existed since the time of the Han Dynasty about 200 BC when China was unified under the first Emperor, and Chinese government based on the thoughts and teachings of Confucius about 500 BC. The word Sun in Mandarin can be seen above, in what is a backwards 'Swastika" and it has been known in India. In this word from the Emperor's robe it is balanced against the symbol of Nazi, the reversed SUN sign. Below can be seen many similar 'symbols' or words on a Shaolin Monk's silk robe. These monks are the legal protectors of the Dragon and Emperor brand.

Fact: JavaScript was first used by the RAF Sea Harrier in August 1978  for their reconnaissance pod and is copyright to SUN.
Sun is a registered property of Emperor brand.

Fact: Emperor brand itself belongs to me as property inherited from my mother's father who visited China on his ship the Southern Cross and purchased an Emperors robe. This has been verified as genuine by the Shaolin Monks, who defend Emperor Brand, even though the Communist Government do not recognise individual property rights in China. Sun corp or the Chinese Army, under a Treaty with India recognising International Brand names and territorial boundaries (China does not currently recognise the boundary of Tibet, or the authority of the Dali Lama) and thus JavaScript legally belongs to (SUN) me also. The Timing System of the web browser was written by me for SUN corp, international. This has also been verified by monks from the Shaolin Temple who are sworn to protect the life and property of (the) Emperor (brand or entity) as owner of SUN.

Community Chest

 GET OUT OF SCHOOL  FREE

THIS CARD MAY BE KEPT UNTIL NEEDED, OR SOLD


 

This free script provided by
JavaScript Kit


totalDays
= totalDays + now.getDate();
}
// Here is the modification: considering when start the 1st week of year.
// Originally was only: var week = Math.round(totalDays/7)
// Check if browser is "Microsoft Internet Explorer" or not and apply the right var
var agt=navigator.userAgent.toLowerCase();
if ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)) {
var firstday=new Date("01/01/"+String(now.getYear())).getDay();
}
else {
JavaScript Primer

So what is JavaScript? Is it Java? What does it do? Is it difficult to learn? These questions will all be answered in this tutorial, and more. Just to get us started, JavaScript is basically a scripting language that helps kick HTML into overdrive. With it, elements in a document can be programmatically accessed and manipulated, bringing a dull web page to life. If you are content with using simply html to create web pages, you are ready to head out to our special tutorial , how to make fire with sticks; the rest of us, lets rock.

In this tutorial, we'll be looking at the following topics:


Getting Started: Setting Up your code

FAQs about this language.

What is JavaScript?
So what exactly is JavaScript? Well, it's is a scripting language developed by Netscape to add interactivity and power to web documents. Examples of JavaScript include live clocks, rollover effects, scrollers, form validations, and so on. JavaScript differs from most other programming languages in that it is relatively easy to master, even for people who have absolutely no programming experiences whatsoever.

Why learn JavaScript?
The first few words that come to mind are: "Freedom baby, freedom!" With html, you are restricted to creating static, non interactive webpages. This, in today's internet standards, is unacceptable. With JavaScript, you can change that. Imagine being able to break free and allow your creativity to dictate what you put on your webpage, instead of the other way round. And the best part is, JavaScript can be learned by anyone-yes, I said anyone!

What's the difference between Java and JavaScript?

Java is completely different from JavaScript-It's a lot more powerful, more complex, and unfortunately, a lot harder to master. It belongs in the same league as C, C++, and other more complex languages. Also, you need to compile a Java program before you can run it, whereas with JavaScript, no compilation is needed-simply open up a text editor, type it, save it, and your browser is ready to run it!

Can my JavaScript programs run on both Netscape and Internet Explorer browsers?
Unfortunately, not necessarily. JavaScript was created by Netscape, so it is most compatible with Netscape. Internet Explorer 4.x supports 99% of what JavaScript has to offer, although IE 3.x is not quite as adorable. A good rule to follow is to always test your codes using both browsers before uploading it onto the internet. You will be surprised how many websites fail to do this, annoying surfers and not even realizing that their scripts are going haywire behind their backs! (this might pertain to me too)



JavaScript Q&A Master List

The JavaScript Q&A Master list is your ultimate JavaScripting cheat sheet. Quickly look up questions on any area of JavaScript, and the corresponding answer awaits you with a single click. We've even extended this list to cover Q&As provided by oher JavaScript sites on the net (scroll to bottom of page). Enjoy!

36.gif (155 bytes) General scripting in JavaScript

-FAQs on JavaScript
-How do I write a basic JavaScript?
-How do I add more than one script to a page without things "screwing up"?
-How do I create functions in JavaScript?
-What are objects in JavaScript?
-How do I use the "document" object of JavaScript?
-How can I repeatedly execute a code in JavaScript?
-How can I persist values of variables from one page to another
-How do I use a "for" loop in JavaScript?
-How do I create robust functions that can accept any number of parameters?
-How do I overcome the document.write() bug that surfaces in NS 3?
-How do I create external JavaScript libraries?

36.gif (155 bytes) Math

-How do I round numbers to, say, two decimal places?
-I want to generate a random number

36.gif (155 bytes) Displaying the time using JavaScript

-What is the Date object, and how can I use it to create time-related scripts?
-How do I create a live clock in JavaScript?
-How do I write out the current date and time using JavaScript?

36.gif (155 bytes) Manipulating images using JavaScript

-How to I access images using JavaScript?
-How do I preloading images using JavaScript?
-How do I PAINLESSLY preload images using JavaScript?
How do I display a different image, depending on the time of the day?
-How do I create "rollover" image effects in JavaScript?

-How do I create an image slideshow using JavaScript?

36.gif (155 bytes) Creating using JavaScript

-How do I access the <select> tag of HTML using JavaScript?
-How do I create a "combo link box" using JavaScript?
-How do I create a combo box that loads the target URL in another frame?
-How do I use an image instead of a form button as the "go" button in a combo box?
-How do I create a "jumpy" combo box?

36.gif (155 bytes) Forms

-How do I access forms using JavaScript?
-How do I validating forms using JavaScript?
-How do I manipulate radio and check boxes in JavaScript?
-How do I dynamically disable/ enable form elements using JavaScript?

36.gif (155 bytes) Windows and frames

-How do I open a new browser window using JavaScript?

 

Make a free website with Yola