Results 1 to 3 of 3

Thread: Possible???

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    343

    Question Possible???

    Hello,

    I want to change an image which I have on my page everytime a different
    select box is clicked!!

    IE. I have 2 select boxes. One called "Red" and the other "BLUE".
    When the user clicks on "RED" - red.gif is loaded and shown, when the
    user clicks on "BLUE" - blue.gif is loaded and shown.

    This is just an idea I have - can it be done?? Can it be done without
    having to RELOAD the page??

    Thanks,
    T

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    yes,

    <img src="whatever.gif" name="toBeChange">


    <input type="button" value="change" onClick="change('red');">


    function change(color){
    toBeChange.src=color + '.gif';
    }

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    343

    Talking HECK!!!!

    Heck, that was easy!!!!!!!! Thanks sebs.

    I REALY(!!!!) do not know what I would have done without YOU guys AND this forum.

    Thank you very much all.

    T

Posting Permissions

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



Click Here to Expand Forum to Full Width