View Full Version : How can I replace an image with another image after someone has clicked on it?
fleetwoodmac
February 23rd, 2006, 03:18 PM
I purchased an auction script, and I absolutely hate the layout of the site. So I designed my own, and I am close to attempting to converting the current layout to my version.
Anyway, I have this image button that says "Login". Well, when people log in, how can program the button to switch images with the "Login" button to another img button?
As for which programing language I need, it would be in CGI/Perl.
30111987
February 23rd, 2006, 03:42 PM
I don't think you are wating just to switch image but to replace the link behind it as well...
CalmWaters
February 23rd, 2006, 05:52 PM
You might be able to resolve this with a bit of JavaScript. You could use the OnClick function contained in Javascript programming to change the image (and possibley the link if need be). You could try javascript.internet.com (http://javascript.internet.com) for this coding or find someone who may code this for you for free.
fleetwoodmac
February 24th, 2006, 01:23 AM
So there is no code in CGI/Perl, for replacing an image after a person logs in?
Thanks guys for the suggestions, I'll take a stab at the javascript, but if you have the code in CGI, that would be perfect! ;)
Thank you!
renegade600
February 24th, 2006, 01:51 AM
what auction script did you purchases? Are you able to use skins? One possible solution - Just replace the original graphic with yours.
fleetwoodmac
February 24th, 2006, 02:50 AM
That's what I'm doing... I'm just simply curious how I can replace an image with another image after someone else logged in.
renegade600
February 24th, 2006, 02:56 AM
That's what I'm doing... I'm just simply curious how I can replace an image with another image after someone else logged in.
without answers to my previous questions there is no real way to help besides just guessing. If the logging in is taking you to a different page, then change the image name to yours in that different page.