View Full Version : Resolved Javascript OnClick-show image + link??

11-14-2010, 04:15 PM
So I opted to use JavaScript & PHP (instead of Flash) to create a sort-of "t-shirt designer" -- basically, it's a gallery-type script that allows users to scroll through t-shirt styles, swap colors, and so on, prior to reaching the actual design tool. And I'm starting to regret.

It's actually working very well so far, except for one thing: I want the t-shirt option that the user selects to link the user to the design tool. The "gallery" already has an image for each possible option that displays whenever the user selects a combination, but I want to make that image is a clickable link.

I have no idea where to start -- I know next to nothing about javascript -- and to accomplish this in Flasjh I'd have to start this stupid basic thing all over again from scratch, and it would defeat the point of not using Flash in the first place, so... any ideas or suggestions?

Philip M
11-14-2010, 06:08 PM
So I opted to use JavaScript & PHP (instead of Flash) ... -- I know next to nothing about javascript --

'Nuf said. Presumably you would not attempt to service or repair a machine or appliance without any experience or understanding of how it worked.

This forum is not a free coding service, especially for commercial applications. We will be glad to help with specific Javascript problems, but unless you post your relevant code it is not possible to offer any useful suggestions.

It is your responsibility to die() if necessary….. - PHP Manual

11-15-2010, 02:49 AM
I was merely asking for a tutorial or some insight into how to add a simple function to the script I've already written. And you're right, I should have opted for Flash in the first place, but I was considering the usability aspect.

For what it's worth, this is a charitable organization, not a commercial one.