Thursday, February 23, 2012

TheMadScript Not Reccomended!

Pretty soon, I'm going to release a new JavaScript library I made called TheMadLibrary, and it is way better than TheMadScript.

I will keep TheMadScript and this blog up, but I won't update TheMadScript again.

Friday, May 27, 2011

TheMadScript Compressed released

TheMadScript Compressed has been officially released! This version is only 116 bytes smaller than TheMadScript 2.0.0, but if TheMadScript ever grows to be much, much bigger, this'll be a bit useful. The regular version is still available.

The JS file is located at "http://www.themadcomputer.com/themadscript_comp.js".

TheMadScript example page released

http://themadcomputer.com/themadscript/examples.html

Click on the link above to test out some TheMadScript examples. More are coming soon, so keep an eye out.

Thursday, May 26, 2011

TheMadScript reference and tutorial complete!

I know it took me a few days, but I finally got my big project done: updating the reference and tutorial for TheMadScript. I am not updating TheMadScript like this for a long time. So, you may be wondering why I updated TheMadScript to the second version so soon?

TheMadScript 1.0.0 came out with 16 methods and no objects. And the next day, I released TheMadScript 1.0.5, because I removed a useless method, the calculate() method. But TheMadScript wasn't useful enough.

TheMadScript has a lot of methods that you can display text with. For example, the round() method rounds a specified decimal number to the nearest integer, but that method used to only have two options to display the result: in an alert box or overwrite the document with text. Now you can display the result with your own text and the result of the rounding. And also, some methods have changed to objects.

Also, some methods were missing that could make TheMadScript more useful were missing. So I added those.

TheMadScript 2.0.0 is a more useful and convenient library now. It's the way it meant to be: small, simple, and easy to use. Go ahead and learn all the new methods, and you'll see what I mean.

Variables

A variable holds a value and can be accessed from anywhere in the JavaScript coding. Their values can be changed for the page session, and can be used in many cases. Because it is useful to study JavaScript before studying TheMadScript, you should already know this.

Browser support: all
TheMadScript version: 2.0.0

Syntax: v.variablename=value

Keep in mind that any variable, whatever you do with it, wherever it is, must always start with "v.".

userAgent object

The userAgent object returns the user agent headers sent by the server.

Browser support: all
TheMadScript version: 2.0.0

As with all objects, use JavaScript operators (unless there is no other text) to insert the userAgent object into your text-writing coding. This is just one way:

box_alert("User agent headers: "+userAgent);

screen object

The screen object returns the resolution and color depth of the screen.

Browser support: all
TheMadScript version: 2.0.0

Use JavaScript operators to insert the object (or any object) into your text-writing coding. This is just one way:

box_alert("Details on the screen: "+screen);