kpiatak Posted September 17, 2012 Share Posted September 17, 2012 I have one button, and I need it to perform 2 actions, how would I go about doing this?http://webapps.easy2.com/ce/ext1104/messages/iris_messages.htmlI need to have the bus slide in, then have the phone message appear.I am more of a visual learner, so to have an example would most definitely help. Link to comment Share on other sites More sharing options...
Ingolme Posted September 17, 2012 Share Posted September 17, 2012 In the function that makes the bus slide in, when it's finished, call another function. Normally, animating methods should have a callback parameter which calls the function as soon as the animation is finished. I can't give an example since I'm not sure what you used to animate the bus. Link to comment Share on other sites More sharing options...
WebFerret Posted September 17, 2012 Share Posted September 17, 2012 (edited) Try this code. You will need to declare functionOne and functionTwo in the head section of your HTML document. <input value="My Button" onclick="functionOne(); functionTwo();" type="button"> Edited September 17, 2012 by WebFerret Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now