Q695 Posted May 7, 2014 Share Posted May 7, 2014 (edited) 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; } Edited May 7, 2014 by Q695 Quote 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. Quote 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 Quote 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); Quote Link to comment https://forums.phpfreaks.com/topic/288302-javascript-flipper-function-bug/#findComment-1478524 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.