I'm trying to make this script - http://www.w3schools.com/php/php_ajax_database.asp
roll it's fields from the first to the last automatically
the code i have at the moment
Expand|Select|Wrap|Line Numbers
- function roller() {
- var total=3;//number of options
- for (var i=0;i<total;i++) {
- setTimeout("roll("+i+")", (3000*(i+1)));
- }
- setTimeout("roller()", (3000*total));
- }
- function roll(i) {
- document.usersform.users[i].fireEvent("onchange")
- }
please, how make this work?