Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Sep 2012
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    CSS one button multiple actions

    I am working on a project, and i need the new phone image to show up after the bus slides in...

    http://webapps.easy2.com/ce/ext1104/..._messages.html

  2. #2
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    Location
    Washington
    Posts
    6,285
    Thanks
    30
    Thanked 863 Times in 861 Posts
    Easily found with the top search function

    onclick="Function1();Function2();"

  3. #3
    New to the CF scene
    Join Date
    Sep 2012
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by sunfighter View Post
    Easily found with the top search function

    onclick="Function1();Function2();"
    Hi! I am not really that well at this, do you think you could show me an example using that code?

  4. #4
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    Location
    Washington
    Posts
    6,285
    Thanks
    30
    Thanked 863 Times in 861 Posts
    Code:
    <!DOCTYPE html>
    <html>
    <head>
    <title>Example</title>
    </head>
    <body>
    <button onclick="SlideBusIn();NewImage();">Push This Button</button>
    
    <script type="text/javascript">
    function SlideBusIn()
    {
    	// do your thing here
    	alert('Bus has been slid.')
    }
    
    function NewImage()
    {
    	// grab and change old image for new image
    	alert('Images changed.')
    }
    </script>
    </body>
    </html>

  5. Users who have thanked sunfighter for this post:

    kpiatak (09-17-2012)


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •