问题是使用嵌入使它显示了很多控件,在我看来它看起来像Windows视频播放器。但我该如何隐藏呢?
是的,我尝试过阅读其他论坛和链接。尝试控制=“假”,但仍然会“禁用”或隐藏视频周围的控件。
这是一个.hta运行。
这是我的代码:
<SCRIPT Language="VBScript" Type="text/vbscript">
....
Sub showPic 'Very crude function to set the image when a triggerfile has been found.
d1=0
For Each i in arrTFile
If objFSO.FileExists(pathCheck & i) Then
document.getElementById("videoHere").innerHTML="<embed src="& arrFolder(d1) & rndVideo(arrFolder(d1)) &" controls="false">"
delFile pathCheck & i
Exit For
End If
d1=d1+1
Next
End Sub
</SCRIPT>
body {
background-color:#00FF2F
}
.right {
position:absolute;
right:6px;
bottom:6px
}
.videos, .videos embed {
width: 75%;
height: 75%;
frameborder: 0;
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<TITLE>din fars diller</TITLE>
<hta:application
id="showVideo"
applicationName="showVideo"
border="thin"
maximizeButton="no"
minimizeButton="no"
caption="yes"
showInTaskBar="yes"
singleInstance="yes"
sysMenu="yes"
scroll="no"
innerBorder="no"
contextmenu="no"
>
</HEAD>
<BODY>
<div class="videos" id="videoHere" class="right"></div>
</BODY>
</HTML>
我把它看成是vb的这一部分,我做错了:
document.getElementById("videoHere").innerHTML="<embed src="& arrFolder(d1) & rndVideo(arrFolder(d1)) &" controls="false">"
提前致谢:)&lt; 3
答案 0 :(得分:0)
<OBJECT CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" WIDTH="652"
HEIGHT="382" ID="MediaPlayer1">
<PARAM NAME="AutoStart" VALUE="1">
<PARAM NAME="Filename" VALUE="C:\Users\User\Music\Self Esteem - The offspring.mp4">
<PARAM NAME="ShowControls" VALUE="0">
</OBJECT>
我是怎么做的。