We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
JavaScript Resource Sites
Topic Started: Jun 22 2005, 11:33 PM (405 Views)
Yata Tyranno
Back in Action
[ *  *  *  *  * ]
Well, I'm trying to learn JavaScript :ph34r:, and I have mastered/learned almost all of the basics. I'm wondering what you guys use to help you out with it, some advanced variables, operators, etc. I doubt we're aloud to post links here, so just PM me if you have a link for me.

Thanks! ^_^
Offline Profile Quote Post Goto Top
 
Das
Member Avatar
Smells of rich mahogany
[ *  *  *  *  *  *  * ]
Links are allowed, well atleast they have been provided before in multipul topics such as this ...

http://w3schools.com
http://htmldog.com <-- Not sure, but I think that is one.
Offline Profile Quote Post Goto Top
 
Yata Tyranno
Back in Action
[ *  *  *  *  * ]
I've learned everything w3schools has to offer, but I'll try that other site.

EDIT: That other site is for CSS and HTML.
Offline Profile Quote Post Goto Top
 
pingu2k4
Member
[ *  * ]
www.gatescript.com <==thats an awesome site for scripts, but the one problem, is they might have 100 different scripts in one category, they display 4 per oage, and they are in a random order. If you need a code for a form, theres loads to look through ETC
Offline Profile Quote Post Goto Top
 
Luke6006
Member
[ *  *  *  *  *  *  * ]
Link 1

Link 2
Offline Profile Quote Post Goto Top
 
Yata Tyranno
Back in Action
[ *  *  *  *  * ]
I've pretty much got down a site to use, but I have one more question:

Could anyone explain to me this part of a code to add some text on the PM page?:

Quote:
 
if (location.href.match(/act=Msg/)) {
e = document.getElementsByTagName('TD')
for (n = 0; n < e.length; n++) {
if (e[n].className == 'pformstrip' && e[n].innerHTML == 'Enter your Post') {


Thanks! ^_^
Offline Profile Quote Post Goto Top
 
gamefreak11
Member Avatar
Arcade Coder
[ *  *  *  *  *  * ]
Yata Tyranno
June 23, 2005 06:52 PM
I've pretty much got down a site to use, but I have one more question:

Could anyone explain to me this part of a code to add some text on the PM page?:

Quote:
 
if (location.href.match(/act=Msg/)) {
e = document.getElementsByTagName('TD')
for (n = 0; n < e.length; n++) {
if (e[n].className == 'pformstrip' && e[n].innerHTML == 'Enter your Post') {


Thanks! ^_^

The first line checks if you are at the inbox page.
The secound line declares the variable E to the the property of TD. So it sorta finds a <td> in your page.

The third line declares n to 0, and while n is less then the number of e's (td's), it adds 1 to n. So if you had 5 tds on a page, n would be worth 5.

The next line finds a td that's class name is pformstrip, and with innerHTML checks if "Enter your post" is inside the <td>. So it should look like this:
<td class="pformstrip">Enter your Post</td>

All the other <td>'s that do not have this are excluded from the script.

All the td's who follow that, the code gets executed to them.
So the rest is:
{
the rest of the code.
}

Some of my thinking may be wrong, but I tried to explain it.
Offline Profile Quote Post Goto Top
 
Yata Tyranno
Back in Action
[ *  *  *  *  * ]
Thanks, that explains a lot. :)
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply