Results 1 to 13 of 13
Thread: Javascript - The Basics
-
01-15-2005, 09:19 PM #1Web Hosting Master
- Join Date
- Feb 2004
- Posts
- 558
Javascript - The Basics
Javascript - The Basics
by Kurt Maine
Javascript is a fairly powerful scripting language that unfortunately, usually either gets underused, or WAY overused. For those of you not familiar with Javascript (referred to as "JS"), you usually see it used in the visual sense .. image fading, count-downs, etc. You should familiarize yourself with the Javascript keywords like: Variables, Event Handlers, If/Then Statements.
Javascript code is typically embedded into an HTML document using the script tag, you accomplish this by using the following code:
<script language="Javascript">
<!--
document.write("Binary Invisions is excellent..");
//-->
</script>
The language attribute isn't required, but in using it, you tell a browser "If you don't have this version of JS, then don't execute this code.". Example:
<script language="Javascript1.1">
I'll cover one last thing, the SRC attribute. It is used to link to an offpage javascript file to be executed as code on that paticular page. Example:
<script language="Javascript" src="whaibowpwns.js">
</script>
More advanced writings on Javascript (and other topics) can be found at the Binary Invisions Community forum. A link is conveniently located in my signature.
-
01-29-2005, 10:48 PM #2Newbie
- Join Date
- Jan 2005
- Posts
- 22
nice lil tut there , will come in handy for ppl like me starting out with that stuff, thank you.
-
03-17-2005, 11:02 PM #3Disabled
- Join Date
- Mar 2005
- Posts
- 7
a+ thank you.
-
01-24-2006, 09:08 AM #4Newbie
- Join Date
- Jan 2006
- Posts
- 6
Originally Posted by bow-viper1
-
07-13-2009, 04:19 PM #5Newbie
- Join Date
- Jul 2009
- Location
- Montreal
- Posts
- 7
Very good tutorial, I learnt it of this website...w3schools.com/JS
-
07-14-2009, 08:16 AM #6Newbie
- Join Date
- Jul 2009
- Posts
- 10
Thanks for share this information. Keep it up!
-
07-22-2009, 05:55 PM #7Newbie
- Join Date
- Jul 2005
- Posts
- 11
Thanks! Good article.
-
09-28-2009, 03:28 PM #8Newbie
- Join Date
- Jul 2009
- Posts
- 22
Thanks for this, I'm trying to learn javascript and php right now, since I know how to code in html/css. Javascript is pretty difficult to learn.
-
10-01-2009, 11:27 AM #9Junior Guru Wannabe
- Join Date
- Mar 2009
- Posts
- 99
This tutorial is very nice. Thanks for this.
-
10-12-2009, 06:19 AM #10New Member
- Join Date
- Oct 2009
- Posts
- 2
Thank for script javascript.
-
10-23-2009, 11:10 PM #11Junior Guru Wannabe
- Join Date
- Oct 2009
- Location
- San Diego, CA
- Posts
- 66
Not necessarily... CSS defines how to display HTML elements and CSS and later version have minimal effects... Sure you can make an image opaque and when someone rolls over it becomes 100% opacity but for great looking sliding menus most people use javascript or flash. But I guess it depends what you mean by visual effects
By the way.. Great tutorial█AtomicPages Hosting
█Real, Honest, Non-Oversold Shared Hosting
█Full Website Setup and Management Available
█Web Hosting, Design, and Development Tutorials/Articles
-
06-28-2010, 07:20 AM #12Web Hosting Master
- Join Date
- Aug 2005
- Posts
- 3,587
Too bad it's heavily outdated and incorrect code.
Today you'd write JS like this:
Code:<script type="text/javascript"> <!-- document.write("Binary Invisions is excellent.."); //--> </script>
-
11-24-2010, 07:22 AM #13Newbie
- Join Date
- Nov 2010
- Posts
- 5
Thanks
Thanks for the tutorial. I look forward to more nuggets.