ONCLICK/ONMOUSEOVER CHANGE FUNCTION FOR MY AVATAR

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
adsegzy
Forum Contributor
Posts: 184
Joined: Tue Jul 28, 2009 9:26 am

ONCLICK/ONMOUSEOVER CHANGE FUNCTION FOR MY AVATAR

Post by adsegzy »

Hello Firends,

I am developing a fashion website where visitors can come and select branded T-Shirts. Visitors will have to choose Man, Woman or Kid Avatar in order to check out the display of the Clothes.

What I need is that, on the COLOUR CATEGORY, if the visitor click on RED, the cloth on the Avatar should change to RED (immediately without refreshing the page). If the visitor select a pattern under DESIGN CATEGORY, the design on the Avatar should change to the selected design.
Other categories are Size, Quotes on Shirt, U/V Neck Category etc.

Everything selected should show on the Avatar. Then the visitor can click on SUBMIT TO CART, and all the visitor have selected will be submitted to the cart.

Please which script or software can do this or how do I go about it?

Thanks a lot.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: ONCLICK/ONMOUSEOVER CHANGE FUNCTION FOR MY AVATAR

Post by requinix »

First off, are you looking to write the code for this, or to try to buy software somewhere? We're really just here for the former; for the latter you should shop around to see what's available and what suits your needs.
adsegzy wrote:What I need is that, on the COLOUR CATEGORY, if the visitor click on RED, the cloth on the Avatar should change to RED (immediately without refreshing the page). If the visitor select a pattern under DESIGN CATEGORY, the design on the Avatar should change to the selected design.
Other categories are Size, Quotes on Shirt, U/V Neck Category etc.
Depends how your images are constructed. I assume you have different images for each color of shirt? You'd probably use Javascript to change the <img> to point to the URL of the appropriately-colored shirt.

Post some code, if you have something already (even incomplete).
adsegzy wrote:Everything selected should show on the Avatar. Then the visitor can click on SUBMIT TO CART, and all the visitor have selected will be submitted to the cart.
Sounds like just a normal form submission.
Post Reply