I have a jquery div returning simple text and I want to display a different image without the user noticing a flash every few seconds.
<script>
function status(){
$('#status').empty();
$('#status').load('status/<?php echo $call->sid;?>');
setTimeout(status, 5000);}
status();
</script>
So this refreshes every 5 seconds to get the status. How can I assign various images depending on the returned results? Ex (calling, in-progress, completed).