Top

My first javascript


Javascript Code
+ 0 likes
Please Register to submit score.
Average Score  1.0
Scores Submitted  3
Date Added  Jun 08, 2008
Last Updated  Jun 08, 2008
Tags  first  javascript  my 
  Bookmark and Share

Introduction

Umm...I'm a bit new to Javascript, this is my first script in it o.0

Grab the Code

Comments

  (22)  RSS
Noutrious
Comments: 355
 
Javascript Snippet:  My first javascript
Posted on Jun 9, 2008 1:15 am
That's not your javascript, you copied it from tutorial sites @ internet, have seen this before.
Why are you sucha lamer?
F*U*R*B*Y*
Comments: 586
 
Javascript Snippet:  My first javascript
Posted on Jun 9, 2008 2:40 am
Noutrious half these scripts are either buggy or ripped ;)
jonesy44
Comments: 1,086
 
Javascript Snippet:  My first javascript
Posted on Jun 9, 2008 1:08 pm
From his other scripts.. Uhh, i think this guy is a bit of a joke :/
EL
Comments: 1,400
 
Javascript Snippet:  My first javascript
Posted on Jun 9, 2008 1:16 pm
Lol@this yeah from wat i see of yur mIRC snippets you should prolly READ and TRY the tuts and try not to mimic whats there.`-.-´
Eugenio
Comments: 1,103
 
Javascript Snippet:  My first javascript
Posted on Jun 9, 2008 2:34 pm
Well tbh he rips and he doesnt even try to hide it he knows and we all know, so if he must do it cant he atleast try to disguise it ffs or why is he here ?!?
Im not that bad.....I tend to butcher codes :p and edit them alot but I dont do this.
mountaindew
Comments: 1,645
 
Javascript Snippet:  My first javascript
Posted on Jun 9, 2008 2:38 pm
Code:

<!--
function changeLabel(){
  if (document.buttonDemo.HelloWorldButton.value==" Hello "){
    document.buttonDemo.HelloWorldButton.value=" World"
    }
  else{
    document.buttonDemo.HelloWorldButton.value=" Hello "
    }
  }
//-->

Isn't that treated as a comment?
EL
Comments: 1,400
 
Javascript Snippet:  My first javascript
Posted on Jun 9, 2008 3:08 pm
@Eugene,wtf i wouldnt be proud of that ya putz.`-.-´
jonesy44
Comments: 1,086
 
Javascript Snippet:  My first javascript
Posted on Jun 9, 2008 3:23 pm
Yes, MD lol
pokemaster23
Comments: 55
 
Javascript Snippet:  My first javascript
Posted on Jun 9, 2008 6:44 pm
First, I didn't copy a damn thing for JS. Yea, I admit I have ripped once before, but this script is a bit like the one from Javascriptmall. I use that site to help me, I saw this on the assignments page for lesson 7 so I decided to try to write it, or something similar.
EL
Comments: 1,400
 
Javascript Snippet:  My first javascript
Posted on Jun 9, 2008 7:17 pm
Link?
pokemaster23
Comments: 55
 
Javascript Snippet:  My first javascript
Posted on Jun 9, 2008 11:20 pm
Ummm....I dun feel like searching. google javascriptmall lesson 7
jonesy44
Comments: 1,086
 
Javascript Snippet:  My first javascript
Posted on Jun 11, 2008 12:58 pm
L.A.M.E LoL

Why post something un-original to a bunch of people who have read the whole www .. twice..
ChunkieMonkey
Comments: 138
 
Javascript Snippet:  My first javascript
Posted on Jun 11, 2008 9:59 pm
Quote:
Why post something un-original to a bunch of people who have read the whole www .. twice..


ROFL
markusPHP
Comments: 10
 
Javascript Snippet:  My first javascript
Posted on Jun 16, 2008 11:54 am
Whoa, guys, calm down.

type attribute missing - error 1.
semi-colons missing - not an error, but good fashion.
Elements in uppercase - Won't validate.
onClick There is no such attribute; it's onclick

What I don't understand is, how can post such a pointless code in the snippets section? There's no use to it.
jonesy44
Comments: 1,086
 
Javascript Snippet:  My first javascript
Posted on Jun 16, 2008 12:19 pm
It's useless.
But i must argue; onClick does work .. the capitalizing each word is just a habit. JS does not actually change, or not work with or without it.
vaseline28
Comments: 154
 
Javascript Snippet:  My first javascript
Posted on Jun 30, 2008 2:35 pm
@MountainDew:

The Javascript comment looks different (/*) to an HTML one (<!--)
They use this so that a browserwhich does not support Javascript will not display the Javascript as plain text. A browser which does support Javascript will see the <script type="text/javascript"> and ignore the HTML comment.
mountaindew
Comments: 1,645
 
Javascript Snippet:  My first javascript
Posted on Jun 30, 2008 2:42 pm
Ah, I get it now :)
vaseline28
Comments: 154
 
Javascript Snippet:  My first javascript
Posted on Jul 1, 2008 1:38 pm
Excellent MountainDew!

pokemaster23:
You could write this much more simply through use of DHTML:
Quote:
<INPUT type="Button" value="Hello" onclick="this.value='World'" >

When clicked, it changes to 'World'. You can also specify it to when it is hovered over, hovered out etc. For example:
Quote:
<INPUT type="Button" value="Hello" onclick="this.value='World'" onmouseover="this.value='mouse'" >

When the mouse hovers over, it returns 'mouse'
ChunkieMonkey
Comments: 138
 
Javascript Snippet:  My first javascript
Posted on Jul 1, 2008 3:49 pm
vaseline28, Do you know any sites that can help me learn a bit on DHTML?
vaseline28
Comments: 154
 
Javascript Snippet:  My first javascript
Posted on Jul 2, 2008 10:33 am
All that I know is by trying to write scripts, but beforehand, I picked up the basics from these two links:

http://www.w3schools.com/dhtml/default.asp
http://www.w3schools.com/htmldom/default.asp

Work through those and you'll be an expert!
jonesy44
Comments: 1,086
 
Javascript Snippet:  My first javascript
Posted on Jul 2, 2008 11:38 am
w3schools <3 God's website :D
vaseline28
Comments: 154
 
Javascript Snippet:  My first javascript
Posted on Jul 6, 2008 2:19 am
Definitely is jonesy44!
Although I found other websites more useful for AJAX.

Just noticed in the HTML, there is a
<P>
I'm pretty sure that according to webstandards, all tags must be closed:
<p></p>
and lowecase, all of yours are uppercase.

Please Register or Login to start posting comments.
Bottom