JavaScript - New Programmer, Need Tutorials!
Hey I'm new to programming (actually news not even the word for it) and I need some help. I plan on going to college to study game development and programming but I have no idea how to program. If you could post some links to beginner tutorials or even type one up for me, it would be greatly appreciated. Oh, and I'm planning on trying Java first, but if you have another suggestion, it would help.
Also, I have blender and have made simple games on it, but I don't really like the 3D modelling concept. I wanted to try coding now so, thanks in advance! P.S. I don't even know how to oped up Java... I downloaded Java SE DK 6u15 (I do know what it stands for though!) but I'm not sure if I did it right or not. So basically a 100% complete tutorial from downloading to... whatever the last step is. Thanks! Similar TutorialsHey, I am self-learning Javascript. I am going through an online course right now and I am roadblocked. I wish I had a teacher by my side at times. Despite viewing and reviewing the material, I just cannot get a good enough grasp to keep going with the course. The code below is aimed at forcing the user to enter valid valid information in input fields. Here are my questions in orange: Code: window.onload = initForms; function initForms() { for (var i=0; i< document.forms.length; i++) { document.forms[i].onsubmit = function() {return validForm();} // I don't understant the syntax on the right side the the '='... Why do we need 'function ()'... why not '= validForm() instead? } } function validForm() { var allGood = true; var allTags = document.getElementsByTagName("*"); for (var i=0; i<allTags.length; i++) { if (!validTag(allTags[i])) { allGood = false; } } return allGood; // from that point on, I am having a difficult time understanding the relations between the 2 functions function validTag(thisTag) { var outClass = ""; var allClasses = thisTag.className.split(" "); for (var j=0; j<allClasses.length; j++) { outClass += validBasedOnClass(allClasses[j]) + " "; } thisTag.className = outClass; if (outClass.indexOf("invalid") > -1) { thisTag.focus(); if (thisTag.nodeName == "INPUT") { thisTag.select(); } return false; } return true; function validBasedOnClass(thisClass) { var classBack = ""; switch(thisClass) { case "": case "invalid": break; case "reqd": if (allGood && thisTag.value == "") { classBack = "invalid "; } classBack += thisClass; break; case "radio": case "email": classBack += thisClass; break; default: if (allGood && !crossCheck(thisTag,thisClass)) { classBack = "invalid "; } classBack += thisClass; } return classBack; } function crossCheck(inTag,otherFieldID) { if (!document.getElementById(otherFieldID)) { return false; } return (inTag.value == document.getElementById(otherFieldID).value); } } } Can someone out there put a smile on my face? Hi Guys & Girls, I am looking for help with a technical issue, which my programmer can't find the answer to. My website has a demonstration facility which allows a client to enter their website which then in turn creates a video transparency overlaying their own website. The problem is some sites with Flash, overlay my transparency video so that you cant see my demo video. Any ideas please. Thanks Maximillion Hello all... I've been trying to learn to write javascript for awhile now. I've been getting better, but I'd still consider myself a novice. I've tried several things. 1. The W3schools tutorials 2. Lynda.com which has some good examples, but the instructor really didn't explain why to do certain things, which really prevented me from understanding it....or maybe I'm just dumb 3. I actually took a college class. On day one, the professor mentioned that we probably wouldn't need to be able to write javascript from scratch, instead we should just be able to update scripts we find online.....which, I guess could be true, but I'd really want to be able write my own. Is the professor right? I'm looking for a couple of things. First, I was wondering if there's a better tutorial than W3schools or even something like lynda.com? Secondly, I was curious if there's a site that might have javascript practices. By that I mean, something that tells you what type of script you need to write, but doesn't give you step by step instructions on how to do so. Like I said, I don't have to write very many scripts at work, so if there's something I can do to get better, I would love to do it. Thanks. Sorry for the long post. My biggest problem is I at Hey guys, i'm trying to incorporate cookies with the website i'm working on. I've looked at tutorials where they just hand you the code and say "get on with it", this leaves me in the lurch while trying to debug it... so the question is are there any good javascript cookie tutorials that will "explain what the heck this does?" Thanks Al. I am looking for tutorials on creating a slideshow with thumbnails, but i need one where i can put the mouse over the thumbnail depending on the direction i am the mouse the thumbnail will move left or right thanks I've done LOTS of Googling on this subject. I can write cookies beautifully to '[other data]; path=/Stats' but I can't figure out how on EARTH to read from it. How do I access the data there? If I just say path=/ then it will read beautifully, but I need to be able to have different paths for what I want this to ultimately do.
|