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

    DOM changing images

    Hi everyone could someone p[lease help me. I need to know how to display two different images depending on the result given in a text box for example if the result is <50 a cloud would be shown and if >50 a sun wouyld be shown.

    I think you have to use get.attribute etc but I really have no idea.

    Please please

    Thankyou all

  2. #2
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Cebu City, Philippines
    Thanked 372 Times in 365 Posts
    Could you please show us the code that you are using as to where you're currently stumped?

    I'm a bit confused on what you meant on "result" and "50".

    The former is a result of an equation? The later meant characters? or from the "result"?

    Anyway, showing to us the code will help us help you.
    Learn how to javascript at 02geek

    The more you learn, the more you'll realize there's much more to learn


Posting Permissions

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