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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    1
    Thanks
    0
    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
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    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
    Ray.ph


  •  

    Posting Permissions

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