扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:维维编译 来源:天极开发 2007年11月21日
关键字:
<HTML> <HEAD> </HEAD> <BODY> <OBJECT ID=wmpocx WIDTH=200 HEIGHT=150 CLASSID="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" TYPE="application/x-oleobject" VIEWASTEXT> <PARAM name="uimode" value="none"> </OBJECT><BR> <script for="wmpocx" event="PlayStateChange(NewState)" language="JScript">ClipPlayState(NewState); </script> <script for="wmpocx" event="Error()" language="JScript">StopPlayer();</script> <p> <a href=# OnClick='PlayClip("\storage card\webapp\glass.wmv", ImgVideoPlay, true)'> <IMG id="ImgVideoPlay" src="bt_play.gif" border="0"> </a> Video<br> <a href=# OnClick='PlayClip("\storage card\webapp\jeanne.wma", ImgAudioPlay, false)'> <IMG id="ImgAudioPlay" src="bt_play.gif" border="0"> </a> Audio<br> Play state sequence<br> <input type="text" id="PlayStateSequence" width=30> <SCRIPT language="JScript"> <!--var CurrentPlayImage = null; var bVideo = null; var bWasBuffering = false; function StopPlayer() { wmpocx.controls.stop(); wmpocx.close(); if (CurrentPlayImage != null) { CurrentPlayImage.src = "bt_play.gif"; } bWasBufferring = false; } function ClipPlayState(NewState) { PlayStateSequence.value = PlayStateSequence.value + NewState + " "; switch(NewState) { case 1: // stopped if (bWasBuffering) { bWasBufferring = false; if (CurrentPlayImage != null) { CurrentPlayImage.src = "bt_play.gif"; } } break; case 6: // buffering bWasBufferring = true; if (CurrentPlayImage != null) { CurrentPlayImage.src = "bt_load.gif"; } break; case 9: // transitioning case 11: // reconnecting bWasBufferring = false; break; case 3: // playing if (bWasBufferring) { if (CurrentPlayImage != null) { CurrentPlayImage.src = "bt_stop.gif"; } if (bVideo) { wmpocx.fullScreen = true; } } break; default: } } function PlayClip(url, img, video) { if (wmpocx.playState == 3 && bVideo != null && bVideo != video) { return; } bVideo = video; CurrentPlayImage = img; if (wmpocx.playState == 3) { StopPlayer(); } else { PlayStateSequence.value = ""; if (CurrentPlayImage != null) { CurrentPlayImage.src = "bt_load.gif"; } wmpocx.URL = url; } } --> </SCRIPT> </BODY> </HTML> |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者