View Full Version : DOM changing images

02-17-2009, 06:27 PM
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

02-18-2009, 01:27 AM
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.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum