Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-14-2012, 07:58 PM   PM User | #1
kpiatak
New to the CF scene

 
Join Date: Sep 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
kpiatak is an unknown quantity at this point
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
kpiatak is offline   Reply With Quote
Old 09-14-2012, 09:57 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,383
Thanks: 18
Thanked 350 Times in 349 Posts
sunfighter is on a distinguished road
Easily found with the top search function

onclick="Function1();Function2();"
sunfighter is offline   Reply With Quote
Old 09-17-2012, 02:29 PM   PM User | #3
kpiatak
New to the CF scene

 
Join Date: Sep 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
kpiatak is an unknown quantity at this point
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?
kpiatak is offline   Reply With Quote
Old 09-17-2012, 03:37 PM   PM User | #4
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,383
Thanks: 18
Thanked 350 Times in 349 Posts
sunfighter is on a distinguished road
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>
sunfighter is offline   Reply With Quote
Users who have thanked sunfighter for this post:
kpiatak (09-17-2012)
Reply

Bookmarks

Tags
actions, button, css, onclick

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:09 AM.


Advertisement
Log in to turn off these ads.