chriskq
05-14-2008, 11:51 PM
Hi, its been a while since i've attempted to do some js, and i am rusty.
heres the beginning of my loop:
for (var i=0; i<=100; i==) {
}
the output i want:
var my_staff_1 = new Tooltip ('trigger_1', 'staff_1')
incrementing each number in the above until 100
i don't want to document.write this anywhere so that people can see the output (the function is sitting just before the closing </body> tag), but i dont want to copy and paste that line of javascript and increment each number 100 times....
any help appreciated.
what book does someone recommend to someone who is struggling with javascript
heres the beginning of my loop:
for (var i=0; i<=100; i==) {
}
the output i want:
var my_staff_1 = new Tooltip ('trigger_1', 'staff_1')
incrementing each number in the above until 100
i don't want to document.write this anywhere so that people can see the output (the function is sitting just before the closing </body> tag), but i dont want to copy and paste that line of javascript and increment each number 100 times....
any help appreciated.
what book does someone recommend to someone who is struggling with javascript