Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-17-2009, 06:27 PM   PM User | #1
Kylio88
New to the CF scene

 
Join Date: Feb 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Kylio88 is an unknown quantity at this point
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
Kylio88 is offline   Reply With Quote
Old 02-18-2009, 01:27 AM   PM User | #2
rangana
Senior Coder

 
rangana's Avatar
 
Join Date: Feb 2008
Location: Cebu City, Philippines
Posts: 1,752
Thanks: 65
Thanked 372 Times in 365 Posts
rangana will become famous soon enoughrangana will become famous soon enough
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
rangana is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:57 PM.


Advertisement
Log in to turn off these ads.