|
Would any of you happen to have any tutorials on JavaScript labels? I know a little bit about them already, but I can't seem to find anything to teach me. >.< I'd appreciate it if someone could help me? Thanks in advance.
|
A forum for Web artists and chao breeders from around the world. Spriters, Animators, Coders, and general people. You can come to Chao Talk, and be part of something. Here, YOU can make a difference.
|
|
|
|
|
Well, thanks, but I already knew that part. >.< I mean, I go around looking at codes and I see people doing this: var someVar = {}
.. or something. I already know how to do this much: var somevar = { someaction:function(){ document.write("Test"); } } somevar.someaction();
.. but that's all I know. >.< Thank you for your help, though.
|
A forum for Web artists and chao breeders from around the world. Spriters, Animators, Coders, and general people. You can come to Chao Talk, and be part of something. Here, YOU can make a difference.
|
|
|
|
You can do that alot of ways: (function() { return { func2: function() { blah } }; })().func2(); ({ func1: function() { blah } }).func1(); etc..look up JSON
|
|
|
|
Alright, thanks.
|
A forum for Web artists and chao breeders from around the world. Spriters, Animators, Coders, and general people. You can come to Chao Talk, and be part of something. Here, YOU can make a difference.
|
|
|
|
JSON isn't what he needs. Code Dragon, technically you're looking for objects. And in that case, shorthand. JS is completely Object based, so finding a specified tutorial on it will be slightly difficult.
|
|
|
|
|
lol, those examples are pretty much the same, except they don't use variables to call the functions...xD
And sure, technically, he is looking for objects...x.x you might want to PM Aaron about tutorials. i'm sure he has loads...xD
|
|
|
|
I'll do that, then; thank you.
|
A forum for Web artists and chao breeders from around the world. Spriters, Animators, Coders, and general people. You can come to Chao Talk, and be part of something. Here, YOU can make a difference.
|
|
|