一直想找一个能控制视频播放或控制视频停止的网页代码,终于让我找到了,经过测试管用,特放在下面以作记录:
<table width="160" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="4" height="20" align="right" valign="middle" background="img/main/main_tit_01.gif"><a href="/jp/ad_story_tv.asp"><img src="img/main/icon_more.gif" width="40" height="16" align="absbottom" border="0"></a></td>
</tr>
<tr>
<td colspan="4" height="6"></td>
</tr>
<tr>
<td rowspan="3" width="120" height="90" style="border:1px solid #C9C9C9">
<OBJECT classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 id=Player name=Player width="120" height="90"
type=application/x-oleobject standby="Loading Windows Media Player components..." VIEWASTEXT>
<PARAM NAME="URL" VALUE="http://www.eduhansol.co.kr/data/pr/sim1_300K.wmv">
<PARAM NAME="captioningID" value="captions">
<PARAM NAME="SAMIFileName" value="0">
<PARAM NAME="autoStart" value="True">
<PARAM NAME="PlayCount" VALUE=1>
<param NAME="stretchToFit" VALUE="true">
<param name="AutoSize" value="1">
<param NAME="AutoRewind" VALUE="1">
<param name="AutoResize" value="1">
<PARAM NAME="Volume" value=100>
<PARAM NAME="uimode" VALUE=none>
<PARAM name='autoStart' value='true'>
<param NAME="TransparentAtStart" VALUE="1">
</object>
<!--<img src="img/main/ad_img_041203.gif" width="116" height="90">-->
</td>
<td rowspan="3" width="5"></td>
<td bgcolor="#EBEBEB" height="27" align="center" valign="bottom" width="29"><img src="img/main/ad_bt01.gif" width="20" height="20" border="0" onclick="javascript:Player.controls.Play();" style="cursor:hand"></td>
<td height="90" align="center" valign="bottom" rowspan="3"> </td>
</tr>
<tr>
<td bgcolor="#EBEBEB" height="34" align="center" valign="middle"><img src="img/main/ad_bt02.gif" width="20" height="20" border="0" onclick="javascript:Player.controls.pause();" style="cursor:hand"></td>
</tr>
<tr>
<td bgcolor="#EBEBEB" align="center" valign="top" height="29"><img src="img/main/ad_bt03.gif" width="20" height="20" border="0" onclick="javascript:Player.controls.stop();" style="cursor:hand"></td>
</tr>
</table>
-----------------------------------------------
管用的代码就是好代码