I'm wondering how can i resize the mediaplayer video size on the web browser as i shrink or enlarge the browser size.
using javascript i wrote:
But this code just works when i click refresh.
Refresh makes the video return to the beginning.
Can anyone tell me how to make the video size follow the browser size without disturbing the video playing?
thanks,
using javascript i wrote:
| Code: |
|
<script> document.write('<embed src="xxx.wmv" width="'+document.body.offsetWidth+'" height="'+document.body.offsetWidth*1.5+' >'); </script> |
But this code just works when i click refresh.
Refresh makes the video return to the beginning.
Can anyone tell me how to make the video size follow the browser size without disturbing the video playing?
thanks,
