Looking for a Javascript tutorial to point me in the right direction

Discussion in 'JavaScript' started by stabiilize, Sep 20, 2012.

  1. #1
    Hi everyone.
    I'm very new to this forum, so I'm sorry if this is in the wrong place.

    I'm in this subforum because I need help creating a (simple?) function on a webpage, and I think Javascript is the best language for it. I have very little experience with programming (took one compsci class in high school, and have been working on php for a few weeks).

    I would link a picture but they aren't available to me yet since I'm a new user (I had one drawn out and everything!).

    I would like for users to have the ability to choose between two objects, and when the user clicks one, it opens up a form according to the function they clicked, all on the same page (fading and other fancy things would be a plus). The CSS, HTML, and Graphics won't be a problem; all I need to know is how to make it work.

    Is there a Javascript tutorial that will help me to make this in a few days?
     
    stabiilize, Sep 20, 2012 IP
  2. sigmainfo

    sigmainfo Active Member

    Messages:
    495
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    55
    #2
    Go for Javascript online tutorial program.
     
    sigmainfo, Sep 20, 2012 IP
  3. YoEli

    YoEli Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I would suggest you look into jQuery, the onclick options as well as slide functions are exactly what you would want. (Google "jquery slidedown", and you will get a good idea of how to do it, put your forms -- one for each of the two items in their own div with an id that is unique for them say, form1 and form2, then you only have to make the buttons/images have an onclick function and call $('#form1').slideDown())

    Check this page for an exact example of the click for slide down options. (Scroll down the page and click the "Click me!" option to see it in action)
    http://api.jquery.com/slideDown/

    Hope this helps,

    Eli
     
    YoEli, Sep 24, 2012 IP