Forum Moderators: open

Message Too Old, No Replies

swap multi images

swap multi images

         

doniking

7:49 pm on Oct 2, 2009 (gmt 0)

10+ Year Member



Hi,

please help how can I swap multiple images.
my page generates multi imagew and unique IDs, something like this:

[codes]
<img id="37-temperature" src="/graph_image.php?device_id=37&graph_type=temperature" border="0" />
<img id="38-temperature" src="/graph_image.php?device_id=37&graph_type=temperature" border="0" />
<img id="39-temperature" src="/graph_image.php?device_id=37&graph_type=temperature" border="0" />
<img id="37-output_flow" src="/graph_image.php?device_id=37&graph_type=output_flow" border="0" />
<img id="38-output_flow" src="/graph_image.php?device_id=37&graph_type=output_flow" border="0" />
<img id="39-output_flow" src="/graph_image.php?device_id=37&graph_type=output_flow" border="0" />
[/codes]

i want to swap them to this:
[codes]
<img id="37-temperature" src="/graph_image.php?device_id=37&graph_type=temperature&start=432423423&end=34234234234" border="0" />
<img id="38-temperature" src="/graph_image.php?device_id=37&graph_type=temperature&start=432423423&end=34234234234" border="0" />
<img id="39-temperature" src="/graph_image.php?device_id=37&graph_type=temperature&start=432423423&end=34234234234" border="0" />
<img id="37-output_flow" src="/graph_image.php?device_id=37&graph_type=output_flow&start=432423423&end=34234234234" border="0" />
<img id="38-output_flow" src="/graph_image.php?device_id=37&graph_type=output_flow&start=432423423&end=34234234234" border="0" />
<img id="39-output_flow" src="/graph_image.php?device_id=37&graph_type=output_flow&start=432423423&end=34234234234" border="0" />
[/codes]

with a single call and using loading images while waiting the replacement images downloaded.

could somebody please help me?
or at least give me direction.
Thanks so much

Donie

doniking

9:48 pm on Oct 2, 2009 (gmt 0)

10+ Year Member



sorry, the IDs look like this


<img id="graphimg-67-temperature"

whoisgregg

2:00 pm on Oct 5, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, doniking!

What have you tried so far? If you could, please post a short code snippet of your initial attempt. :)