DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> WEB網站前端 >> 關於網頁技巧 >> 網頁播放技術的實戰解析(二)
網頁播放技術的實戰解析(二)
編輯:關於網頁技巧     
   前面講了點播文字鏈接彈出新窗口。本講主題是:文字鏈接與播放器窗口處於同一頁面。請點下面的文字鏈接觀看效果。

    代碼如下:

<table height="310" cellSpacing="0" cellPadding="0" width="375" border="0">
<tbody>
<tr>
<td width="375" bgcolor="#cccccc" height="310">
<center><span id="trymedia">
<object align=middle classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,5
2,701 width=375 height=300 id=nstv type=application/x-oleobject standby='Loading Microsoft Windows Media Player components...'><param name='AudioStream' value='-1'><param
name='AutoSize' value='0'><param name='AutoStart' value='-1'><param name='AnimationAtStart'
value='-1'><param name='AllowScan' value='-1'><param name='AllowChangeDisplaySize' value='-
1'><param name='AutoRewind' value='0'><param name='Balance' value='10'><param name='BaseURL'
value><param name='BufferingTime' value='5'><param name='CaptioningID' value><param
name='ClickToPlay' value='-1'><param name='CursorType' value='0'><param
name='CurrentPosition' value='-1'><param name='CurrentMarker' value='0'><param
name='DefaultFrame' value><param name='DisplayBackColor' value='0'><param
name='DisplayForeColor' value='16777215'><param name='DisplayMode' value='0'><param
name='DisplaySize' value='4'>
<param name='Mute' value='0'>
<param name='PlayCount' value='1'>
<param name='PreviewMode' value='0'>
<param name='Rate' value='1'>
<param name='SelectionStart' value='0'>
<param name='SelectionEnd' value='0'>
<param name='TransparentAtStart' value='0'>
<param name='Volume' value='0'>
<param name='WindowlessVideo' value='0'>
<param name=Filename value=>
</object>
<script language="JavaScript">
function show_media(){
var media_url=window.event.srcElement.href;    //*media_url=用戶所點鏈接值
trymedia.innerHTML="<object id=mediaplayer align=middle classid='CLSID:22d6f312-b0f6-11d0-
94ab-0080c74c7e95' codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,5
2,701  width=375 height=300  type=application/x-oleobject standby='Loading Microsoft Windows Media Player components...'><param name='AudioStream' value='-1'><param name='AutoSize'
value='0'><param name='AutoStart' value='-1'><param name='AnimationAtStart' value='-
1'><param name='AllowScan' value='-1'><param name='AllowChangeDisplaySize' value='-1'><param
name='AutoRewind' value='0'><param name='Balance' value='10'><param name='BaseURL'
value><param name='BufferingTime' value='5'><param name='CaptioningID' value><param
name='ClickToPlay' value='-1'><param name='CursorType' value='0'><param
name='CurrentPo

12下一頁
XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved