hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting Talk Tutorials : Web Design and Content Tutorials : Javascript - The Basics
Reply

Forum Jump

Javascript - The Basics

Reply Post New Thread In Web Design and Content Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-15-2005, 09:19 PM
bow-viper1 bow-viper1 is offline
Web Hosting Master
 
Join Date: Feb 2004
Posts: 557

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.

__________________
Dallas Web Hosting



Sponsored Links
  #2  
Old 01-29-2005, 10:48 PM
V Shades V Shades is offline
Newbie
 
Join Date: Jan 2005
Posts: 21
nice lil tut there , will come in handy for ppl like me starting out with that stuff, thank you.

  #3  
Old 03-17-2005, 11:02 PM
AfroThuG AfroThuG is offline
Disabled
 
Join Date: Mar 2005
Posts: 6
a+ thank you.

Sponsored Links
  #4  
Old 01-24-2006, 09:08 AM
xanthous xanthous is offline
Newbie
 
Join Date: Jan 2006
Posts: 5
Quote:
Originally Posted by bow-viper1
you usually see it used in the visual sense .. image fading, count-downs, etc.
Isn't CSS more powerful for visual effects? A lot of folks use JS blockers with the yahoo/google/whateverelse toolbars....

  #5  
Old 07-13-2009, 04:19 PM
kapies kapies is offline
Newbie
 
Join Date: Jul 2009
Location: Montreal
Posts: 6
Very good tutorial, I learnt it of this website...w3schools.com/JS

  #6  
Old 07-14-2009, 08:16 AM
Veerhost Veerhost is offline
Newbie
 
Join Date: Jul 2009
Posts: 8
Thanks for share this information. Keep it up!

  #7  
Old 07-22-2009, 05:55 PM
AdeelR AdeelR is offline
Newbie
 
Join Date: Jul 2005
Posts: 10
Thanks! Good article.

  #8  
Old 09-28-2009, 03:28 PM
Vertex-Matt Vertex-Matt is offline
Newbie
 
Join Date: Jul 2009
Posts: 19
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.

  #9  
Old 10-01-2009, 11:27 AM
s2mu3123 s2mu3123 is offline
Junior Guru Wannabe
 
Join Date: Mar 2009
Posts: 95
This tutorial is very nice. Thanks for this.

  #10  
Old 10-12-2009, 06:19 AM
wbhotk wbhotk is offline
New Member
 
Join Date: Oct 2009
Posts: 1
Thank for script javascript.

  #11  
Old 10-23-2009, 11:10 PM
dennisthompson dennisthompson is offline
Junior Guru Wannabe
 
Join Date: Oct 2009
Location: San Diego, CA
Posts: 65
Quote:
Originally Posted by xanthous View Post
Isn't CSS more powerful for visual effects? A lot of folks use JS blockers with the yahoo/google/whateverelse toolbars....
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

  #12  
Old 06-28-2010, 07:20 AM
JayNL JayNL is offline
#ibuildwebsitesandstuff
 
Join Date: Aug 2005
Location: The Netherlands
Posts: 3,318
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>

  #13  
Old 11-24-2010, 07:22 AM
nuvuscripts nuvuscripts is offline
New Member
 
Join Date: Nov 2010
Posts: 2
Thanks

Thanks for the tutorial. I look forward to more nuggets.

Reply

Related posts from TheWhir.com
Title Type Date Posted
Swarmify's New Approach to Content Delivery Uses Site Visitors to Accelerate Content Web Hosting News 2014-05-01 08:34:03
Web Hosting Sales and Promos Roundup - December 6, 2013 Web Hosting News 2014-05-23 15:42:37
Nasuni Launches Cloud Mirroring Feature to Storage Solution Web Hosting News 2013-08-08 14:15:27
OpenStack and the AWS API Debate Web Hosting News 2014-05-09 12:40:29
Facebook's Recently Acquired Mobile App Platform Parse Launches Web Hosting for Developers Web Hosting News 2013-05-08 10:49:17


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?