163
rated 0 times
[
168]
[
5]
/ answers: 1 / hits: 94541
/ 13 Years ago, mon, march 12, 2012, 12:00:00
I was wondering if anyone can help me understand how exactly to create different Custom event listeners.
I don't have a specific case of an event but I want to learn just in general how it is done, so I can apply it where it is needed.
What I was looking to do, just incase some folks might need to know, was:
var position = 0;
for(var i = 0; i < 10; i++)
{
position++;
if((position + 1) % 4 == 0)
{
// do some functions
}
}
More From » event-listener