|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JavaScript for web design:
JavaScript is a scripting language most often used for client-side web development. It was the originating dialect of the ECMAScript standard. As such, it is a dynamic, weakly typed, prototype-based language with first-class functions. JavaScript was influenced by many languages and was designed to have a similar look to Java, but be easier for non-programmers to work with.[1] The language is best known for its use in websites (as client-side JavaScript), but is also used to enable scripting access to objects embedded in other applications.JavaScript Applications Exampels:
JavaScript Menus Design
JavaScript LightBox Design
JavaScript Popup Design
JavaScript for Web Design - The Advantages:
JavaScript is an excellent solution to implement when validating input forms on the client side. This means that if a user forgets to enter his name in a form for instance a JavaScript validation function can popup a message to let him know about the omission. This is a far better solution that having a server side validation routine handle the error because the server does not have to do any additional processing. An asp or php routine could be written to achieve the same task but the JavaScript would not allow the form to be submitted unless it was completed properly in the first place, a much more robust solution! Another area where JavaScript excels is in the creation of dynamic effects such as rollover images and scripted slideshows, where its use has become commonplace. Because JavaScript runs inside the clients browser it can be used to change the appearance of the users screen after the page has been sent by the server. This allows it to create some very impressive dynamic image effects.JavaScript for Web Design - The Disadvantages:
One of the major draw backs to using JavaScript is that it tends to severely bloat web pages. JavaScript code can quickly add up to hundreds of lines of code if you are using it to do anything even remotely interesting.That said the problem of large chunks of JavaScript code is easily solved by storing the JavaScript code off into separate JavaScript source files that have a .js extension.
This cleans up your web page code because the JavaScript code is stored separately to the HTML page itself, leaving a much cleaner and more readable web page.
Because of JavaScript’s tendency to bloat web pages it can be very detrimental to the search engine friendliness of your web site. This is because when a search engine arrives at your site looking for quality content and keywords to determine what your page is al about, the last thing it wants to see is hundreds of lines of JavaScript code. Again, this problem is easily solves by neatly storing JavaScript code away in script files with a .js extension and linking to the script file in your HTML documents.
