Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript OnClick-show image + link??

    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?
    Last edited by JGStudio; 11-15-2010 at 03:02 AM.

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,302
    Thanks
    203
    Thanked 2,562 Times in 2,540 Posts
    Quote Originally Posted by JGStudio View Post
    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

  • #3
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •