|
Post by Chantry on Nov 4, 2007 17:20:47 GMT -5
Here ... now you have no excuse. To indent: Use notepad and hit tab When to indent: Inside if-statements, and loops Example: for(; { var a; //code if(statement){ //code } if(statement){ for(; { if(statement){ //code } } } } Real code example: <script type="text/javascript"> <!-- for(var c = document.getElementsByTagName("td"),d = c.length,e = 0,f = []; e < d;e++){ if(c[e].vAlign=="top" && c[e].width=="80%" && c[e].innerHTML.match(/vote/i)){ f.push(c[e].parentNode.cloneNode(true)); } else if(c[e].innerHTML.match(/(total|submit) vote/i) && (c[e].width=="20%" && !c[e+1].innerHTML.match(/\d+ vo/i) || c[e].firstChild.type == "submit")){ f.sort(function(a,b){return a.innerHTML.split("(")[1].split(" ")[0]-b.innerHTML.split("(")[1].split(" ")[0];}); e--; for(var g = f.length-1; g > -1; g--,e-=2){ c[e].innerHTML = f[g].lastChild.innerHTML; c[e].previousSibling.innerHTML = f[g].firstChild.innerHTML; } break; } } //--> </script>[/size]
|
|
Wrighty
Senior Member
Member #1
Posts: 362
|
Post by Wrighty on Nov 4, 2007 17:33:51 GMT -5
hmmm I'll try from now on! P
|
|
|
Post by Alca-diddly-doo on Nov 4, 2007 19:14:58 GMT -5
lol editting it is how everyone gets started! Ya, but I doubt I'll do any further coding til I get to a college/uni/tech in another 1.5 years. I plan on taking a college course for VB and CSS maybe only cuz those are 2 out of the 3 they offer. (the other is C++) It's called ITT Technical Institute in Ma, USA. (But that's if I get accepted there)
|
|
|
Post by Reverse Blade on Nov 5, 2007 23:32:58 GMT -5
Html, Css, Javascript(Ajax), Actionscript, some Java.
|
|
|
Post by Vertigo on Nov 9, 2007 11:33:59 GMT -5
I know
XHTML XML (Haha Toby, it's kinda implied when you know XHTML >_<) CSS JS (Just enough for standard web design) PHP (A little) BASIC (and most BASIC variants including VB) C++ C (A little) Assembly (Very basic understanding) Most scripting languages ______________ @toby: Can you explain what XSL and XPATH entail?
Why would you want to learn SVG when you can just export files in popular vector graphics applications to SVG? Is it because of yucky code? I don't really think that would be as much of a problem compared to WUSIWYG HTML/CSS editors. ______________
|
|
|
Post by Schubaltz on Nov 9, 2007 13:38:20 GMT -5
XML (Haha Toby, it's kinda implied when you know XHTML >_<) Not necessarily. What they entail?
|
|
|
Post by Tobias on Nov 10, 2007 14:08:49 GMT -5
@toby: Can you explain what XSL and XPATH entail? XSL stands for eXtensible Stylesheet Language, and is basically a stylesheet for XML documents, only more advanced, because you can specify how nodes turn into displayed output. As for XPATH, I thought I had taught myself, but I went to look at it again, and it looks all new. So I don't know it, I just thought I did. ;D
|
|
|
Post by Vertigo on Nov 12, 2007 18:22:40 GMT -5
Hey, thanks. Yeah, I'm trying to expand my knowledge when it comes to coding. I'm still a noob when it comes to coding (Well not XHTML, CSS, and a few others). It's something I'll have to work at.
|
|
|
Post by Schubaltz on Mar 5, 2008 19:25:24 GMT -5
I never answered this. Excuse to post! w00t (X)HTML, XML, XSLT, XPath, CSS, JavaScript, PHP, C++
|
|
|
Post by Alca-diddly-doo on Mar 5, 2008 20:01:25 GMT -5
How the hell do you live? (How do you memorize each one and what they do/what they are for?)
|
|
|
Post by Schubaltz on Mar 5, 2008 20:12:48 GMT -5
A lot of it ties in together so as you expand it's more like you're just getting a bigger picture of a single concept. Plus I hardly know as many languages as i've had the capacity for in 3 1/4 years. It's just i'm only interested in a select few (and I keep having 6-month-no-internet disruptions in my life )
|
|
|
Post by Elite Prodigy on Mar 22, 2008 12:05:14 GMT -5
Heres the list, its long:
HTML CSS C++ Java C# Some JavaScript VB PHP Learning DarkBasic for kicks A healthy smathering of Assembly And a smackeral of Machine Code
Plus I wrote I language for testing security levels on other servers. It's incomplete though as I only created what I needed. I have no name for it.
|
|