Change the color of t-shirt by drap n drop

http://www.julytang.com/T-shirt.htm

Page 1 of 1

3 Replies - 3068 Views - Last Post: 11 October 2008 - 08:54 AM

#1 w5121t  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 11-October 08

Change the color of t-shirt by drap n drop

Posted 11 October 2008 - 02:19 AM

This is the webpage:
http://www.julytang.com/T-shirt.htm

How do I change the color of the t-shirt by dragging colors and then dropping to the t-shirt instead of clicking the colors to change?

Can someone pls provide the code so that I can add the image of the t-shirt myself?

Thanks in advance
Is This A Good Question/Topic? 0
  • +

Replies To: Change the color of t-shirt by drap n drop

#2 gabehabe  Icon User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1430
  • View blog
  • Posts: 11,006
  • Joined: 06-February 08

Re: Change the color of t-shirt by drap n drop

Posted 11 October 2008 - 05:00 AM

Moved to Javascript.

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

#3 w5121t  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 11-October 08

Re: Change the color of t-shirt by drap n drop

Posted 11 October 2008 - 07:44 AM

View Postgabehabe, on 11 Oct, 2008 - 05:00 AM, said:

Moved to Javascript.

[rules][/rules]


Seriously I have no idea! I need someone to post the code so that I can cut and paste.
Was This Post Helpful? 0
  • +
  • -

#4 BetaWar  Icon User is offline

  • #include "soul.h"
  • member icon

Reputation: 1469
  • View blog
  • Posts: 8,176
  • Joined: 07-September 06

Re: Change the color of t-shirt by drap n drop

Posted 11 October 2008 - 08:54 AM

DIC has policies, we won't do things for you, here is the basics behind it though:

You have an image for each of the colored T-shirts you want to allow the user to see (in their case it was Yellow, Red, Green and Blue). Then, when the user clicks on one of the buttons the page loads the respective image according to the color that was clicked.

It is fairly simple, I would suggest you goto w3schools.com and start learning some Javascript, once you have some code, and have actually put some effort into this people will be much more willing to help you out.
Was This Post Helpful? 1

Page 1 of 1