Q695 Posted May 7, 2014 Share Posted May 7, 2014 What's wrong with this simple script to call 2 functions: if (up < max){ lower.onclick=min_function; } else if (up > min) { lower.onclick=max_function; } Link to comment https://forums.phpfreaks.com/topic/288302-javascript-flipper-function-bug/ Share on other sites More sharing options...
trq Posted May 7, 2014 Share Posted May 7, 2014 You tell us. Link to comment https://forums.phpfreaks.com/topic/288302-javascript-flipper-function-bug/#findComment-1478521 Share on other sites More sharing options...
Q695 Posted May 7, 2014 Author Share Posted May 7, 2014 Not sure the var checkers are: min_function: up < maxmax_function: up > min When I run the functions separately I get: min_function: maxmax_function: min Link to comment https://forums.phpfreaks.com/topic/288302-javascript-flipper-function-bug/#findComment-1478523 Share on other sites More sharing options...
Q695 Posted May 7, 2014 Author Share Posted May 7, 2014 could this be killing the super function: clearInterval(interval); Link to comment https://forums.phpfreaks.com/topic/288302-javascript-flipper-function-bug/#findComment-1478524 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.