Go Back   CodingForums.com > :: Server side development > PHP

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 11-17-2012, 07:10 PM   PM User | #1
spudmonkee
New Coder

 
Join Date: Sep 2012
Posts: 16
Thanks: 4
Thanked 0 Times in 0 Posts
spudmonkee is an unknown quantity at this point
Question Image change on the click of a button?

Hello everyone,

I'm currently creating a page to advertise different bundles for a product and I was wondering if it'd be possible to have three buttons which all display a different image.

For example, in the middle of the page would be a banner, on the click of button 2 this would then change to a different header. I'm not too sure if this is possible through PHP but any help would be fantastic !

Last edited by spudmonkee; 11-17-2012 at 07:46 PM..
spudmonkee is offline   Reply With Quote
Old 11-17-2012, 07:13 PM   PM User | #2
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,307
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
not really specific enough and you haven't shown any examples, but you will most likely want to do this client side with JavaScript as if you did it with just PHP you'd have to refresh the page on every click.
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users
DanInMa is offline   Reply With Quote
Old 11-17-2012, 07:45 PM   PM User | #3
spudmonkee
New Coder

 
Join Date: Sep 2012
Posts: 16
Thanks: 4
Thanked 0 Times in 0 Posts
spudmonkee is an unknown quantity at this point
I managed to find a suitable method via JQuery, would've seemed more appropriate to use JavaScript/JQuery. Thanks!
spudmonkee is offline   Reply With Quote
Reply

Bookmarks

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 10:25 AM.


Advertisement
Log in to turn off these ads.