点击 铵钮 实现播放全屏效果,并且进度不变

liuchanghu 2004-03-25 09:10:12
<OBJECT
codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701
type=application/x-oleobject height=288
standby="Loading Microsoft® Windows® Media Player components..."
width=352 classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95
name=MediaPlayer>
<PARAM NAME="ShowStatusBar" VALUE="false">
<PARAM NAME="ShowTracker" VALUE="false">
<PARAM NAME="FileName" VALUE="">
<PARAM NAME="playcount" VALUE="1">
<PARAM NAME="ClickToPlay" VALUE="false">
<PARAM NAME="EnableContextMenu" VALUE="false">
<PARAM NAME="ShowControls" VALUE="false">
<PARAM NAME="ShowAudioControls" VALUE="false">
<PARAM NAME="ShowPositionControls" VALUE="false">
<PARAM NAME="ShowDisplay=" VALUE="false">
<PARAM NAME="ShowGotoBar=" VALUE="false">
<PARAM NAME="AutoStart" VALUE="True">
<PARAM NAME="AnimationAtStart" VALUE="false">
<embed
type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
autostart=1 showcontrols=0 clicktoplay=0
enablecontextmenu=0 showaudiocontrols=0
showpositioncontrols=0 showtracker=0 showdisplay=0
showgotobar=0 showstatusbar=0 animationatstart=0 width=352
height=288 src="" vspace="0" hspace="0"
border="0"></embed></OBJECT>

如果我把 上面 object 放在 一个 iframe 中,
如何 点击一个 铵钮使 <IFRAME name=leftFrame src="message.htm" frameBorder=0 width="209" scrolling=no height="348"></IFRAME>
全屏?
...全文
39 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
braqi2 2004-03-26
  • 打赏
  • 举报
回复
<PARAM NAME="AnimationAtStart" VALUE="false">
size=3
liuchanghu 2004-03-25
  • 打赏
  • 举报
回复
不行呀
xzq686 2004-03-25
  • 打赏
  • 举报
回复
aassdd.asp:
<OBJECT
codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701
type=application/x-oleobject height=288
standby="Loading Microsoft® Windows® Media Player components..."
width=352 classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95
name=MediaPlayer>
<PARAM NAME="ShowStatusBar" VALUE="false">
<PARAM NAME="ShowTracker" VALUE="false">
<PARAM NAME="FileName" VALUE="">
<PARAM NAME="playcount" VALUE="1">
<PARAM NAME="ClickToPlay" VALUE="false">
<PARAM NAME="EnableContextMenu" VALUE="false">
<PARAM NAME="ShowControls" VALUE="false">
<PARAM NAME="ShowAudioControls" VALUE="false">
<PARAM NAME="ShowPositionControls" VALUE="false">
<PARAM NAME="ShowDisplay=" VALUE="false">
<PARAM NAME="ShowGotoBar=" VALUE="false">
<PARAM NAME="AutoStart" VALUE="True">
<PARAM NAME="AnimationAtStart" VALUE="false">
<embed
type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
autostart=1 showcontrols=0 clicktoplay=0
enablecontextmenu=0 showaudiocontrols=0
showpositioncontrols=0 showtracker=0 showdisplay=0
showgotobar=0 showstatusbar=0 animationatstart=0 width=352
height=288 src="" vspace="0" hspace="0"
border="0"></embed></OBJECT>

***********上面是你的代码。下面不知道是不是你想到的结果。
test.asp:
<script language="javascript">
function aa()
{
document.getElementById("leftFrame").style.width="100%";
document.getElementById("leftFrame").style.height="100%";
frames.leftFrame.document.MediaPlayer.style.width=document.getElementById("leftFrame").style.width
frames.leftFrame.document.MediaPlayer.style.height=document.getElementById("leftFrame").style.height
}
</script>
<IFRAME name=leftFrame src="aassdd.asp" frameBorder=0 width="209" scrolling=no height="348"></IFRAME>
<input type="button" name="b1" value="全屏"onclick="aa()">
msroom 2004-03-25
  • 打赏
  • 举报
回复
<script language=javascript>
<!--
function myopen(url)
{
var tmp=window.open(url,"","fullscreen=1")
tmp.moveTo(0,0)
tmp.resizeTo(screen.availWidth,screen.availHeight)
tmp.focus()
}
-->
</script>
<a href="javascript:myopen('xxx.asp?id=123')">click</a>
msroom 2004-03-25
  • 打赏
  • 举报
回复
去下面看看,可能有你需要的
http://www.51windows.net/
xzq686 2004-03-25
  • 打赏
  • 举报
回复
具体要实现什么样的效果?
是否和网上flash的全屏播放一样?

87,910

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧