This is something like my 12th BTW day and I love seeing the masses of bicyclists out on the road especially on this day.
Now on to the subject of this post...
This had me a bit flummoxed, until I nailed down the magic way to set this up. Basically what I wanted to be able to was insert a stock image in place of a slower loading image. This slower loading (well, technically stream) ends up taking seconds to bring up after the page has finished rendering.
What was happening without this was I was staring a big empty rectangle after loading of the page, and thought it would be much much nicer to put in a pretty, albeit temporary, image in place.
The solution involves setting two image tags in the same div section. One visible and one hidden. Something like this:
<div id='stream_temp' style='visibility:visible;'>
<img height=450 width=600 src='img/camera.jpg' alt='videoFull' border='4' >
</img>
</div>
<div id='stream' style='visibility:hidden;display:none;'>
<img onload='displayStream()' height=450 width=600
src='my_stream&scrH=450&scrW=600'
alt='videoFull' border='4' ></img>
</div>
