This tutorial will cover the really basic things about JavaScript, mainly proper syntax of strings, method of script inclusion, and the commonly used alert() and document.write().
To those of a keen eye, you’ll get a glimpse of my recent history at 1:33, and for that I apologize.
“absolutely necessity”: that should be “absolute.”
The error message display comes courtesy of Firebug, an incredibly useful Firefox add-on.
The song is Beethoven’s Ninth Symphony.
(Those with epilepsy should stop watching this tutorial about ten seconds before its end to be safe…)
Original source
34 responses to “JavaScript Tutorial 1.1: The Very Basics”
thank you for the disclaimer in the beginning, will go do that now
My code not working
<script type-'text/javascript'>
window.onload – BG_change;
function BG_change()
{
document.body.style.backgroundColor – 'rgb(' +
Math.floor(Math.random() * 256) + ',' +
Math.floor(Math.random() * 256) + ',' +
Math.floor(Math.random() * 256) + ')';
setTimeout('BG_change()', 50);
}
</script>
Beethoven's 9th is one of my all-time favorite pieces of music written ever.
Lol the flashing lights at the end was great
Trying to make a flashy background too… Not working though. What am I doing wrong?
<script type='text/javascript'>
window.onload – BG_change;
function BG_change()
{
document.body.style.backgroundColor – 'rgb(' +
Math.floor(Math.random() * 256) + ',' +
Math.floor(Math.random() * 256) + ',' +
Math.floor(Math.random() * 256) + ')';
setTimeout('BG_change()', 50);
}
</script>
enjoy your popcorn
one day im gona make a game called "village-creed 1"
its going to be a rpg game like a. creed or 2 worlds somthing like that 😀
What developing environment are you using
Such an insanely good tutorial maker, should make a lot more.
Neeet song…
240p… We meet again!
thanks alot very good tutorial
How did you make the Alert pop up
lol
thnx dude
Thanks you so much for uploading this Java Script Video
All I heard was music and not my favorite kind either. Where is the tutorial?
job-base.classifieds1000
What program are you using here?
no
They call them Functions? Not methods?
JobCanada
LMFAO that is some insane attention to detail
Nice
@DinoNom test
test
@rustytoe178 omg
what program???
@lag6ones try saving it as a .html file
Lol, referring JS to ponies.
Wicked major AWESOME. Thanks
Killer music BTW.
When the turkey is done.
|
V
I get an error when I open the .js file am I saving as the right file type?