?? mp2.htm
字號:
<html>
<head>
<title>MEDIA</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
td { font-size: 12px; color: #FFFFFF}
a { color: #CCCCCC; text-decoration: none}
-->
</style>
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide
function killErrors() {
return true;
}
window.onerror = killErrors;
//容錯
// -->
</SCRIPT>
<script src=js/clearevents.js></script>
<SCRIPT language=JavaScript>
<!--
var srcc = window.location;
srcc = srcc.toString()
start = srcc.indexOf("?");
end = srcc.length;
if (start==-1){
srcc = "logo.wmv"
}
if (start!=-1){
srcc = srcc.substring(start+1,end);
}
//alert(srcc)
day=17;
month=5;
year=2002;
hour=18;
if ( navigator.appName == "Netscape" )
{
navigator.plugins.refresh();
document.write("\x3C" + "applet MAYSCRIPT Code=NPDS.npDSEvtObsProxy.class")
document.writeln(" width=352 height=288 name=appObs\x3E \x3C/applet\x3E")
}
var Player;
var isplaying;
var movelen;
var history;
var ispause;
var isstop;
history=false;
movelen=0;
isstop=false;
isplaying=false;
ispause=false;
mute=false;
Player="document.NSPlay";
var playfile='';
function preload(imgname,imgsrc)
{
eval(imgname+'=new Image()')
eval(imgname+'.src="images\/'+imgsrc+'"')
}
preload("play1","play.gif")
preload("play2","play_b.gif")
preload("stop1","stop.gif");
preload("stop2","stop_b.gif");
preload("sound1","sound.gif");
preload("sound2","sound_b.gif");
preload("volume","volume.gif");
preload("pause1","pause.gif");
preload("pause2","pause_b.gif");
preload("full1","full.gif");
preload("full2","full_b.gif");
function playy(src){
var abc
abc = src + ""
playhistory(abc)
}
function doPlay(){
if(!isplaying){
if (eval(Player).FileName=='') return;
eval(Player).Play();
if (eval(Player).FileName!=filename)
if(!ispause){
movelen=0;
}
document.play.src=play2.src;
document.stop.src=stop1.src;
document.pause.src=pause1.src;
isplaying=true;
ispause = false;
isstop=false;
}
}
function DoStop()
{
if(isplaying){
eval(Player).CurrentPosition=0;
eval(Player).Stop();
document.play.src=play1.src;
document.stop.src=stop2.src;
document.pause.src=pause1.src;
if (document.seek.style.visibility=="visible")
document.seek.style.left=136;
isstop=true;
isplaying=false;
ispause=false;
}
}
function DoPause()
{
if(isplaying){
eval(Player).Pause();
isplaying = false
ispause = true
isstop=false;
document.play.src=play1.src;
document.pause.src=pause2.src;
document.stop.src=stop1.src;
}
}
function SetPosition(Pos)
{
if (!isplaying) return;
eval(Player).CurrentPosition=+Pos;
}
function SetVolume(Pos)
{
eval(Player).volume=Pos;
}
function SetMute()
{
if (!isplaying) return
if (mute){
eval(Player).Mute=false
document.sound.src=sound1.src;
document.vol.style.visibility="visible";
mute=false
}
else{
eval(Player).Mute=true;
document.sound.src=sound2.src;
document.vol.style.visibility="hidden";
mute=true
}
}
function GetPosition()
{
tt=eval(Player).CurrentPosition
return tt;
}
function SetSource(srcname)
{
if (srcname==filename){
history=false;
//eval(Player).AutoRewind=true;
document.seek.style.visibility="hidden";
}
else{
document.seek.style.visibility="visible";
//eval(Player).AutoRewind=false;
history=true
}
eval(Player).FileName=srcname;
document.play.src=play2.src;
document.stop.src=stop1.src;
isplaying=true;
}
function SetWH(widthpx,heightpx)
{
eval(Player).width=widthpx
eval(Player).height=heightpx
}
function SetDisplaySize(setting)
{
if (isplaying)
eval(Player).DisplaySize=setting
//全屏 setting=3
//100% setting=0
// 50% setting=1
//200% setting=2
}
var x,theImg;
var Maxvol, Minvol
Maxvol=300;
Minvol=250;
cur=280;
function move(){
if (event.button==1&&isplaying){
left=temp1+event.clientX-x
if ((left<=Maxvol)&&(left>=Minvol))
theImg.style.pixelLeft=left
else
if(left>Maxvol)
theImg.style.pixelLeft=Maxvol
else
theImg.style.pixelLeft=Minvol
// document.form1.pos.value=theImg.style.pixelLeft
return false
}
}
function enddrag(){
//這里設(shè)置音量
if (isplaying){
cur=theImg.style.pixelLeft;
cur=Math.floor((Maxvol-cur)/(Maxvol-Minvol)*(-2000));
SetVolume(cur);
document.onmousemove=null;
}
}
function begindrag(Elm){
if (!document.all)
return
if (!isplaying)
return
temp1=Elm.style.pixelLeft
theImg=Elm
x=event.clientX;
document.onmousemove=move
}
var Start, End;
var seeking;
seeking=false
Start=136;
End=214;
function playhistory(src){
SetSource(src);
}
function showchoose()
{
if (document.all.menu1.style.display=="none")
document.all.menu1.style.display="block";
else
{
playhistory(document.formdisco.getyy.value+document.formdisco.getmm.value+document.formdisco.getdd.value+".wmv")
document.all.menu1.style.display="none";
}
}
//-->
</SCRIPT>
<SCRIPT event=EndOfStream(lResult) for=NSPlay language=JScript>
DoStop()
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onLoad=playhistory(srcc)>
<IMG alt=音量調(diào)節(jié)(volume) height=11 id=vol name=vol onmousedown=begindrag(document.vol) onmouseup=enddrag() src="images/sound_button.gif" style="CURSOR: hand; LEFT: 280px; POSITION: absolute; TOP: 95px; visibility: visible" width=8>
<IMG
alt=時間調(diào)節(jié)(Time) height=11 id=seek name=seek src="images/course_button.gif" style="CURSOR: hand; LEFT: 136px; POSITION: absolute; TOP: 95px; VISIBILITY: visible" width=15>
<table width="432" border="0" height="87" cellpadding="0" cellspacing="0" bgcolor="#4E565C">
<tr>
<td align="center" height="1"><object classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95
codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701
height=80 id=NSPlay type=application/x-oleobject width=422
VIEWASTEXT standby="加載 Microsoft Windows Media Player 組件...">
<param name="FileName" value="">
<param name="AutoStart" value="true">
<param name="AutoRewind" value="-1">
<param name="AnimationAtStart" value="false">
<param name="ShowControls" value="false">
<param name="ClickToPlay" value="false">
<param name="EnableContextMenu" value="0">
<param name="EnablePositionControls" value="false">
<param name="Balance" value="0">
<param name="ShowStatusBar" value="1">
<param name="AutoSize" value="0">
<embed
type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
filename src autostart="false"
enablecontextmenu="false"
clicktoplay="false"
enablepositioncontrols="false"
showcontrols="0" showstatusbar="1"
showdisplay="0" width="422" height="80">
</embed></object></td>
</tr>
</table>
<table width="432" border="0" cellpadding="0" cellspacing="0" height="1" bgcolor="#142E44">
<tr>
<td></td>
</tr>
</table>
<table width="432" border="0" height="27" cellpadding="0" cellspacing="0" bgcolor="3A3A3A">
<tr>
<td>
<table width="432" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="7"> </td>
<td width="37"><img alt=開始播放(Play) onClick=Javascript:doPlay() border=0 height=11
name=play src="images/play.gif" width=37 style="cursor:hand"></td>
<td width="6"> </td>
<td width="37"><img alt=停止播放(Stop) onClick=Javascript:DoStop() border=0 height=11
name=stop src="images/stop_b.gif" width=37 style="cursor:hand"></td>
<td width="6"> </td>
<td width="37">
<img src="images/pause.gif" alt=暫停播放(Pause) onClick=DoPause() width="37" height="11" border="0" name=pause style="cursor:hand"></td>
<td width="6"> </td>
<td width="93"><img src="images/course.gif" width="93" height="11"></td>
<td width="6"> </td>
<td width="11">
<img src="images/sound.gif"alt=關(guān)閉/打開聲音 onClick=SetMute() width="11" height="11" border="0" name=sound style="cursor:hand"></td>
<td width="6"> </td>
<td> <img name=volume
src="images/volume.gif" width="52" height="11"></td>
<td width="86" align=center style="color:white" id="tvname">請選擇電視臺</td>
<td>
<img src="images/full.gif" alt=全屏播放 onClick=SetDisplaySize(3) width="11" height="11" border="0" style="cursor:hand" name=full></td>
<td width="7"> </td>
</tr>
</table>
</td>
</tr>
</table>
<table width="432" border="0" cellpadding="0" cellspacing="0" height="1" bgcolor="#666666">
<tr>
<td></td>
</tr>
</table>
<SCRIPT language=JavaScript>
cur=Math.floor((Maxvol-cur)/(Maxvol-Minvol)*(-2000));
SetVolume(cur);
playfile='';
var filename='mms://61.153.17.61/cnoolzjty'
if (playfile!=''){
SetSource(filename);
}
</SCRIPT>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -