[问题]怎樣看這個網站的在線電影?

Totem,mplayer,sopcast,realplayer,bmp
回复
头像
92wc
帖子: 17
注册时间: 2008-04-22 16:15
联系:

[问题]怎樣看這個網站的在線電影?

#1

帖子 92wc » 2008-05-28 4:12

<HTML>
<HEAD>
<TITLE>新疆免费电影网|喀什免费电影网|最新电影|免费观看|喀什影院|新疆网站|</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css"> <!-- .b12 { font-size: 12px; color: #9d9d9d; text-decoration: none; font-weight: bold; }
.w12 { font-size: 12px; line-height: 18px; color: #FFFFFF; text-decoration: none; }
--></style>
</HEAD>
<body bgColor="#000000" leftMargin="0" topMargin="0" marginheight="0" marginwidth="0">
<div id="Panel1">


<DIV id="timewillgo" style="Z-INDEX: 2; LEFT: 532px; WIDTH: 103px; POSITION: absolute; TOP: 575px; HEIGHT: 22px"></DIV>
<TABLE id="Table_01" height="503" cellSpacing="0" cellPadding="0" width="725" border="0">
<TR>
<TD><IMG height="51" alt="" src="images/viplay_01.gif" width="20"></TD>
<TD colSpan="8"><IMG height="51" alt="" src="images/viplay_02.gif" width="914"></TD>
<TD><IMG height="51" alt="" src="images/viplay_03.gif" width="19"></TD>
</TR>
<TR>
<TD vAlign="top" background="images/bg_01.gif"><IMG height="384" alt="" src="images/viplay_04.gif" width="20"></TD>


<TD align="center" colSpan="6"> <span id="disp128" style="DISPLAY"><IMG alt="欢迎光临我们电影站" src="images/tt.gif"></span>
<OBJECT id="MediaPlayer" height="0" width="0" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
viewastext>
<PARAM NAME="URL" VALUE="">
<PARAM NAME="rate" VALUE="1">
<PARAM NAME="balance" VALUE="0">
<PARAM NAME="currentPosition" VALUE="-1">
<PARAM NAME="defaultFrame" VALUE="">
<PARAM NAME="playCount" VALUE="1">
<PARAM NAME="autoStart" VALUE="-1">

<PARAM NAME="currentMarker" VALUE="0">
<PARAM NAME="invokeURLs" VALUE="-1">
<PARAM NAME="baseURL" VALUE="">
<PARAM NAME="volume" VALUE="0">
<PARAM NAME="mute" VALUE="0">
<PARAM NAME="uiMode" VALUE="none">
<PARAM NAME="stretchToFit" VALUE="0">
<PARAM NAME="windowlessVideo" VALUE="0">
<PARAM NAME="enabled" VALUE="-1">

<PARAM NAME="enableContextMenu" VALUE="0">
<PARAM NAME="fullScreen" VALUE="0">
<PARAM NAME="SAMIStyle" VALUE="">
<PARAM NAME="SAMILang" VALUE="">
<PARAM NAME="SAMIFilename" VALUE="">
<PARAM NAME="captioningID" VALUE="">
<PARAM NAME="enableErrorDialogs" VALUE="0">
<PARAM NAME="_cx" VALUE="13520">
<PARAM NAME="_cy" VALUE="10134">

</OBJECT>
<TABLE class="b12" cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR>
<TD align="center" width="35%"><IMG height="15" src="images/zi2.gif" width="186"></TD>
<TD align="center" width="65%"> <FONT style="FONT-SIZE: 8pt" face="MS Sans Serif" color="#9d9d9d">
<SPAN id="statefield"></SPAN></FONT> <FONT style="FONT-SIZE: 8pt" face="MS Sans Serif" color="#9d9d9d">
<SPAN id="bufferfield"></SPAN></FONT> <FONT style="FONT-SIZE: 8pt" face="MS Sans Serif" color="#9d9d9d">

<SPAN id="timefield"></SPAN></FONT></TD>
</TR>
</TABLE>
</TD>
<TD bgColor="#575783"><IMG height="384" alt="" src="images/viplay_06.gif" width="2"></TD>
<TD vAlign="top" width="172"><IFRAME marginWidth=0 hspace=0 vspace=0 Border=0
marginHeight=0
src="images/ad.htm" frameBorder=0 scrolling="no"
width=172 height=495 BORDERCOLOR="#000000"></IFRAME></TD>
<TD vAlign="top" background="images/bg_02.gif"><IMG height="384" alt="" src="images/viplay_08.gif" width="19"></TD>
</TR>

<TR>
<TD><IMG height="68" alt="" src="images/viplay_09.gif" width="20"></TD>
<TD><IMG height="68" alt="" src="images/viplay_10.gif" width="30"></TD>
<TD><IMG id="Image1" height="68" alt="暂停" src="images/viplay_11.gif" width="54" useMap="#Map4"
border="0" name="Image1"></TD>
<TD><IMG height="68" alt="" src="images/viplay_12.gif" width="83" useMap="#MapMap" border="0"></TD>
<TD><IMG id="mute" height="68" alt="关闭声音" src="images/sound.gif" width="28" useMap="#Map2Map"
border="0" name="mute"></TD>
<TD width="519" background="images/viplay_14.gif">
<DIV id="Layer1" style="Z-INDEX: 1; LEFT: 221px; WIDTH: 273px; POSITION: absolute; TOP: 571px; HEIGHT: 20px"><IMG onMouseMove="setpopup(document.seek)" id="thebar" style="CURSOR: hand" onClick="setaaa(document.seek)"
onmouseout="closepopup()" height="15" src="images/spacer.gif" width="506" name="thebar"><IMG onMouseUp="enddragseek()" onMouseDown="beginseek(document.seek)" id="seek" style="Z-INDEX: 10; LEFT: 2px; VISIBILITY: visible; WIDTH: 8px; CURSOR: hand; POSITION: absolute; TOP: -3px; HEIGHT: 12px"
height="12" alt="时间调节(Time)" src="images/time.gif" width="29" name="seek"></DIV>
<SCRIPT language="JavaScript">
<!--
var vOK=false;
function setad()
{
document.getElementById("disp128").style.display="none";
MediaPlayer.height=480;
MediaPlayer.width=720;
MediaPlayer.settings.volume=100;
MediaPlayer.settings.mute=false;
vOK=true;
}
var myTimeout = window.setTimeout('setad()',5000);
var crtPosition=0;
var Start, End;
var seeking;
var x,theImg,temp1;
var mouseIsDown;
seeking=false;
mouseIsDown = false;
var aa = 237;
Start=0;
End=486;
//var sta="1";
function btnplay(){
if(MediaPlayer.playState==3)
{
MediaPlayer.controls.pause();
document.Image1.src="images/play.gif";
document.Image1.alt="播放";
}
else {
MediaPlayer.controls.play();
document.Image1.src="images/viplay_11.gif";
document.Image1.alt="暂停";
}
/* if (MediaPlayer.playState==2) {
//MediaPlayer.controls.play();
MediaPlayer.pause();
document.Image1.src="images/play.gif";
document.Image1.alt="播放";
}
else {
//MediaPlayer.controls.pause();
MediaPlayer.play();
document.Image1.src="images/viplay_11.gif";
document.Image1.alt="暂停";
}
*/
}

function btngotop_onclick() {
// MediaPlayer.controls.currentPosition=0;
MediaPlayer.currentPosition=0;
}

function btngobottom_onclick() {
// MediaPlayer.controls.currentPosition=MediaPlayer.currentMedia.duration;
MediaPlayer.currentPosition=MediaPlayer.Duration
;
}

function btnplaypause_onclick(sta) {
if (MediaPlayer.playState!=2) {
// MediaPlayer.controls.play();
MediaPlayer.play();
}
else {
// MediaPlayer.controls.pause();
MediaPlayer.pause();
}
}

function btnfullscr_onclick() {
MediaPlayer.fullScreen=true;
//alert('sdfsadf');
//MediaPlayer.DisplaySize = 3;
}

function btnmute_onclick(t) {
//if (MediaPlayer.settings.mute) {
if(!MediaPlayer.settings.mute){
MediaPlayer.settings.mute=true;
document.mute.src="images/viplay_13.gif";
document.mute.alt="打开声音";
}
else{
MediaPlayer.settings.mute=false;
document.mute.src="images/sound.gif";
document.mute.alt="关闭声音";
}
}

function btnstop_onclick() {
MediaPlayer.controls.currentPosition=0;
MediaPlayer.controls.stop();
document.Image1.src="images/play.gif";
document.Image1.alt="播放";
// alert(MediaPlayer.playState);
// MediaPlayer.currentPosition=0;
// MediaPlayer.stop();
initseek();
}


function SetPosition(Pos)
{
if (MediaPlayer.playState!=3&&MediaPlayer.playState!=2) return;
MediaPlayer.controls.currentPosition=+Pos;
// MediaPlayer.currentPosition=+Pos;
}
function btnreturn_onclick() {
if (confirm("您确定要退出吗?")==true) {
window.close();
}
}
//////////////////////////////////////////////////////
function beginseek(Elm){
if (!document.all)
return
if (MediaPlayer.playState!=3&&MediaPlayer.playState!=2)
return
temp1=Elm.style.pixelLeft
theImg=Elm
x=event.clientX;
seeking=true;
document.onmousemove=moveseek;
}

function closepopup(Elm)
{
timewillgo.style.visibility="hidden";
}

function setpopup(Elm)
{
if (!document.all)
return
temp1=Elm.style.pixelLeft;
//theImg=Elm
x=event.clientX-aa;
//var cur;
var movelen;
var content;
if (MediaPlayer.playState==3||MediaPlayer.playState==2){
movelen=GetLength()
//cur=x;//theImg.style.pixelLeft;
if (x>=End)
{
content="<TABLE BORDER=0 BGCOLOR='#000000' class='b12'><TD>"+getTimeStr(movelen)+"</TD></TABLE>";
//btnstop_onclick();
}
else{
var cur=Math.floor((x-Start)*movelen/(End-Start));
content="<TABLE BORDER=0 BGCOLOR='#000000' class='b12'><TD>"+getTimeStr(cur)+"</TD></TABLE>";
}
document.all.timewillgo.innerHTML=content;timewillgo.style.visibility="visible";
document.all.timewillgo.style.pixelLeft =Math.round(document.body.scrollLeft + event.x+30);
document.all.timewillgo.style.pixeltop = 100;//Math.round(document.body.scrolltop + event.y-100);
}
}
function setaaa(Elm){
if (!document.all)
return
if (MediaPlayer.playState!=3&&MediaPlayer.playState!=2)
return
temp1=Elm.style.pixelLeft
//alert(bb.style.pixelLeft) ;
theImg=Elm
x=event.clientX-aa;
if (MediaPlayer.playState==3||MediaPlayer.playState==2){
movelen=GetLength()
cur=x//theImg.style.pixelLeft;
if (cur==End)
btnstop_onclick();
else{
cur=Math.floor((cur-Start)*movelen/(End-Start));
SetPosition(cur);
seeking=false;
document.onmousemove=null;
}
}
}


function initseek(){
document.seek.style.pixelLeft=Start
}

function setseek(){
document.seek.style.pixelLeft=Math.round((MediaPlayer.controls.currentPosition/MediaPlayer.currentMedia.duration)*(End-Start))+Start;
//document.seek.style.pixelLeft=Math.round((MediaPlayer.currentPosition/MediaPlayer.Duration)*(End-Start))+Start;
}


function moveseek(){
if (event.button==1&&(MediaPlayer.playState==3||MediaPlayer.playState==2)){
left=temp1+event.clientX-x

if ((left<=End)&&(left>=Start))
theImg.style.pixelLeft=left
else
if(left>End)
theImg.style.pixelLeft=Start
else
theImg.style.pixelLeft=Start
// document.form1.pos.value=theImg.style.pixelLeft
return false
}
}

function enddragseek(){

//这里设置时间搜索
if (MediaPlayer.playState==3||MediaPlayer.playState==2){
movelen=GetLength()
cur=theImg.style.pixelLeft;
if (cur==End)
btnstop_onclick();
else{
cur=Math.floor((cur-Start)*movelen/(End-Start));
SetPosition(cur);
seeking=false;
document.onmousemove=null;
}
}
}

function changeseek(){
if (MediaPlayer.PlayState!=3&&MediaPlayer.playState!=2) return;
// if (!history) return;
if (!seeking){
if (movelen==0)
movelen=GetLength();
cur=GetPosition();
cur=Math.floor((End-Start)*cur/movelen);
document.seek.style.pixelLeft=Start+cur;
}
setTimeout("changeseek()",1000);
}
function GetLength()
{
return MediaPlayer.currentMedia.Duration;
//return MediaPlayer.Duration;
}
function GetPosition()
{
// tt=MediaPlayer.controls.CurrentPosition
tt=MediaPlayer.controls.currentPosition;
return tt;
}

//-->
</SCRIPT>

<SCRIPT language="javascript">
<!--
function MediaPlayer_NewStream() {
MediaPlayer_timer();
}

function MediaPlayer_timer() {
/* var hoursplayed;
var minsplayed;
var secsplayed;
var timenow;
var hours;
var mins;
var secs;
*/
var time;
var bfprogress;
time = getTimeStr(MediaPlayer.controls.currentPosition) + "/" + getTimeStr(MediaPlayer.currentMedia.duration);
timefield.innerHTML=time;
bfprogress = "缓冲:" + MediaPlayer.network.bufferingProgress +"%";
bufferfield.innerHTML=bfprogress;
window.setTimeout('MediaPlayer_timer()',1000);
if(!seeking)
setseek();
}

function getTimeStr(curtime)
{
// timenow = Math.round(MediaPlayer.controls.currentPosition);
var hoursplayed;
var minsplayed;
var secsplayed;
var timenow;
var hours;
var mins;
var secs;
var time;
timenow = Math.round(curtime);
hoursplayed = (timenow - timenow%3600)/3600;
minsplayed = (timenow - timenow%60)/60 - hoursplayed * 60;
secsplayed = timenow%60;
if (hoursplayed<10)
{
hours='0'+hoursplayed;
}
else
{
hours=hoursplayed;
}
if (minsplayed<10)
{
mins='0'+minsplayed;
}
else
{
mins=minsplayed;
}
if (secsplayed<10)
{
secs='0'+secsplayed;
}
else
{
secs=secsplayed;
}
time = hours + ":" + mins + ":" + secs;
return time;
}
//-->
</SCRIPT>

</TD>
<TD><IMG height="68" alt="" src="images/viplay_15.gif" width="26"></TD>
<TD colSpan="3"><IMG height="68" alt="" src="images/viplay_16.gif" width="193" useMap="#Map3Map" border="0"></TD>
</TR>
</TABLE>
<MAP name="MapMap">
<AREA shape="CIRCLE" coords="70,37,11" href="#">

<AREA shape="CIRCLE" coords="45,36,11" href="#">
<AREA onClick="Javascript:btnstop_onclick()" shape="CIRCLE" coords="14,36,11" href="#">
</MAP><MAP name="Map2Map">
<AREA onClick="Javascript:btnmute_onclick(0)" shape="CIRCLE" coords="14,37,11" href="#">
</MAP><MAP name="Map3Map">
<AREA shape="RECT" coords="3,21,44,42" href="#">
<AREA onClick="Javascript:btnfullscr_onclick()" shape="RECT" coords="74,22,114,41" href="#">
</MAP><MAP name="Map4">
<AREA onClick="javascript:btnplay()" shape="CIRCLE" coords="29,31,18" href="#">

</MAP><MAP name="Map">
<AREA shape="CIRCLE" coords="70,37,11" href="#">
<AREA shape="CIRCLE" coords="45,36,11" href="#">
<AREA onClick="Javascript:btnstop_onclick()" shape="CIRCLE" coords="14,36,11" href="javascript:;">
</MAP><MAP name="Map2">
<AREA shape="CIRCLE" coords="14,37,11" href="#">
</MAP><MAP name="Map3">
<AREA shape="RECT" coords="3,21,44,42" href="#">
<AREA onClick="Javascript:btnfullscr_onclick()" shape="RECT" coords="74,22,114,41" href="#">

</MAP>
</div>

</body>
</HTML>
<br>
<script src="../tj.js"></script>
<sCRIPT src="014.js"></script>
人生最大幸福莫過于助人為樂!
http://arts.luntanlong.org
头像
lhw828
帖子: 2797
注册时间: 2007-03-15 16:58
来自: 湖北武汉
联系:

Re: [问题]怎樣看這個網站的在線電影?

#2

帖子 lhw828 » 2008-05-29 1:20

92wc 写了:<HTML>
<HEAD>
<TITLE>新疆免费电影网|喀什免费电影网|最新电影|免费观看|喀什影院|新疆网站|</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css"> <!-- .b12 { font-size: 12px; color: #9d9d9d; text-decoration: none; font-weight: bold; }
.w12 { font-size: 12px; line-height: 18px; color: #FFFFFF; text-decoration: none; }
--></style>
</HEAD>
<body bgColor="#000000" leftMargin="0" topMargin="0" marginheight="0" marginwidth="0">
<div id="Panel1">


<DIV id="timewillgo" style="Z-INDEX: 2; LEFT: 532px; WIDTH: 103px; POSITION: absolute; TOP: 575px; HEIGHT: 22px"></DIV>
<TABLE id="Table_01" height="503" cellSpacing="0" cellPadding="0" width="725" border="0">
<TR>
<TD><IMG height="51" alt="" src="images/viplay_01.gif" width="20"></TD>
<TD colSpan="8"><IMG height="51" alt="" src="images/viplay_02.gif" width="914"></TD>
<TD><IMG height="51" alt="" src="images/viplay_03.gif" width="19"></TD>
</TR>
<TR>
<TD vAlign="top" background="images/bg_01.gif"><IMG height="384" alt="" src="images/viplay_04.gif" width="20"></TD>


<TD align="center" colSpan="6"> <span id="disp128" style="DISPLAY"><IMG alt="欢迎光临我们电影站" src="images/tt.gif"></span>
<OBJECT id="MediaPlayer" height="0" width="0" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
viewastext>
<PARAM NAME="URL" VALUE="">
<PARAM NAME="rate" VALUE="1">
<PARAM NAME="balance" VALUE="0">
<PARAM NAME="currentPosition" VALUE="-1">
<PARAM NAME="defaultFrame" VALUE="">
<PARAM NAME="playCount" VALUE="1">
<PARAM NAME="autoStart" VALUE="-1">

<PARAM NAME="currentMarker" VALUE="0">
<PARAM NAME="invokeURLs" VALUE="-1">
<PARAM NAME="baseURL" VALUE="">
<PARAM NAME="volume" VALUE="0">
<PARAM NAME="mute" VALUE="0">
<PARAM NAME="uiMode" VALUE="none">
<PARAM NAME="stretchToFit" VALUE="0">
<PARAM NAME="windowlessVideo" VALUE="0">
<PARAM NAME="enabled" VALUE="-1">

<PARAM NAME="enableContextMenu" VALUE="0">
<PARAM NAME="fullScreen" VALUE="0">
<PARAM NAME="SAMIStyle" VALUE="">
<PARAM NAME="SAMILang" VALUE="">
<PARAM NAME="SAMIFilename" VALUE="">
<PARAM NAME="captioningID" VALUE="">
<PARAM NAME="enableErrorDialogs" VALUE="0">
<PARAM NAME="_cx" VALUE="13520">
<PARAM NAME="_cy" VALUE="10134">

</OBJECT>
<TABLE class="b12" cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR>
<TD align="center" width="35%"><IMG height="15" src="images/zi2.gif" width="186"></TD>
<TD align="center" width="65%"> <FONT style="FONT-SIZE: 8pt" face="MS Sans Serif" color="#9d9d9d">
<SPAN id="statefield"></SPAN></FONT> <FONT style="FONT-SIZE: 8pt" face="MS Sans Serif" color="#9d9d9d">
<SPAN id="bufferfield"></SPAN></FONT> <FONT style="FONT-SIZE: 8pt" face="MS Sans Serif" color="#9d9d9d">

<SPAN id="timefield"></SPAN></FONT></TD>
</TR>
</TABLE>
</TD>
<TD bgColor="#575783"><IMG height="384" alt="" src="images/viplay_06.gif" width="2"></TD>
<TD vAlign="top" width="172"><IFRAME marginWidth=0 hspace=0 vspace=0 Border=0
marginHeight=0
src="images/ad.htm" frameBorder=0 scrolling="no"
width=172 height=495 BORDERCOLOR="#000000"></IFRAME></TD>
<TD vAlign="top" background="images/bg_02.gif"><IMG height="384" alt="" src="images/viplay_08.gif" width="19"></TD>
</TR>

<TR>
<TD><IMG height="68" alt="" src="images/viplay_09.gif" width="20"></TD>
<TD><IMG height="68" alt="" src="images/viplay_10.gif" width="30"></TD>
<TD><IMG id="Image1" height="68" alt="暂停" src="images/viplay_11.gif" width="54" useMap="#Map4"
border="0" name="Image1"></TD>
<TD><IMG height="68" alt="" src="images/viplay_12.gif" width="83" useMap="#MapMap" border="0"></TD>
<TD><IMG id="mute" height="68" alt="关闭声音" src="images/sound.gif" width="28" useMap="#Map2Map"
border="0" name="mute"></TD>
<TD width="519" background="images/viplay_14.gif">
<DIV id="Layer1" style="Z-INDEX: 1; LEFT: 221px; WIDTH: 273px; POSITION: absolute; TOP: 571px; HEIGHT: 20px"><IMG onMouseMove="setpopup(document.seek)" id="thebar" style="CURSOR: hand" onClick="setaaa(document.seek)"
onmouseout="closepopup()" height="15" src="images/spacer.gif" width="506" name="thebar"><IMG onMouseUp="enddragseek()" onMouseDown="beginseek(document.seek)" id="seek" style="Z-INDEX: 10; LEFT: 2px; VISIBILITY: visible; WIDTH: 8px; CURSOR: hand; POSITION: absolute; TOP: -3px; HEIGHT: 12px"
height="12" alt="时间调节(Time)" src="images/time.gif" width="29" name="seek"></DIV>
<SCRIPT language="JavaScript">
<!--
var vOK=false;
function setad()
{
document.getElementById("disp128").style.display="none";
MediaPlayer.height=480;
MediaPlayer.width=720;
MediaPlayer.settings.volume=100;
MediaPlayer.settings.mute=false;
vOK=true;
}
var myTimeout = window.setTimeout('setad()',5000);
var crtPosition=0;
var Start, End;
var seeking;
var x,theImg,temp1;
var mouseIsDown;
seeking=false;
mouseIsDown = false;
var aa = 237;
Start=0;
End=486;
//var sta="1";
function btnplay(){
if(MediaPlayer.playState==3)
{
MediaPlayer.controls.pause();
document.Image1.src="images/play.gif";
document.Image1.alt="播放";
}
else {
MediaPlayer.controls.play();
document.Image1.src="images/viplay_11.gif";
document.Image1.alt="暂停";
}
/* if (MediaPlayer.playState==2) {
//MediaPlayer.controls.play();
MediaPlayer.pause();
document.Image1.src="images/play.gif";
document.Image1.alt="播放";
}
else {
//MediaPlayer.controls.pause();
MediaPlayer.play();
document.Image1.src="images/viplay_11.gif";
document.Image1.alt="暂停";
}
*/
}

function btngotop_onclick() {
// MediaPlayer.controls.currentPosition=0;
MediaPlayer.currentPosition=0;
}

function btngobottom_onclick() {
// MediaPlayer.controls.currentPosition=MediaPlayer.currentMedia.duration;
MediaPlayer.currentPosition=MediaPlayer.Duration
;
}

function btnplaypause_onclick(sta) {
if (MediaPlayer.playState!=2) {
// MediaPlayer.controls.play();
MediaPlayer.play();
}
else {
// MediaPlayer.controls.pause();
MediaPlayer.pause();
}
}

function btnfullscr_onclick() {
MediaPlayer.fullScreen=true;
//alert('sdfsadf');
//MediaPlayer.DisplaySize = 3;
}

function btnmute_onclick(t) {
//if (MediaPlayer.settings.mute) {
if(!MediaPlayer.settings.mute){
MediaPlayer.settings.mute=true;
document.mute.src="images/viplay_13.gif";
document.mute.alt="打开声音";
}
else{
MediaPlayer.settings.mute=false;
document.mute.src="images/sound.gif";
document.mute.alt="关闭声音";
}
}

function btnstop_onclick() {
MediaPlayer.controls.currentPosition=0;
MediaPlayer.controls.stop();
document.Image1.src="images/play.gif";
document.Image1.alt="播放";
// alert(MediaPlayer.playState);
// MediaPlayer.currentPosition=0;
// MediaPlayer.stop();
initseek();
}


function SetPosition(Pos)
{
if (MediaPlayer.playState!=3&&MediaPlayer.playState!=2) return;
MediaPlayer.controls.currentPosition=+Pos;
// MediaPlayer.currentPosition=+Pos;
}
function btnreturn_onclick() {
if (confirm("您确定要退出吗?")==true) {
window.close();
}
}
//////////////////////////////////////////////////////
function beginseek(Elm){
if (!document.all)
return
if (MediaPlayer.playState!=3&&MediaPlayer.playState!=2)
return
temp1=Elm.style.pixelLeft
theImg=Elm
x=event.clientX;
seeking=true;
document.onmousemove=moveseek;
}

function closepopup(Elm)
{
timewillgo.style.visibility="hidden";
}

function setpopup(Elm)
{
if (!document.all)
return
temp1=Elm.style.pixelLeft;
//theImg=Elm
x=event.clientX-aa;
//var cur;
var movelen;
var content;
if (MediaPlayer.playState==3||MediaPlayer.playState==2){
movelen=GetLength()
//cur=x;//theImg.style.pixelLeft;
if (x>=End)
{
content="<TABLE BORDER=0 BGCOLOR='#000000' class='b12'><TD>"+getTimeStr(movelen)+"</TD></TABLE>";
//btnstop_onclick();
}
else{
var cur=Math.floor((x-Start)*movelen/(End-Start));
content="<TABLE BORDER=0 BGCOLOR='#000000' class='b12'><TD>"+getTimeStr(cur)+"</TD></TABLE>";
}
document.all.timewillgo.innerHTML=content;timewillgo.style.visibility="visible";
document.all.timewillgo.style.pixelLeft =Math.round(document.body.scrollLeft + event.x+30);
document.all.timewillgo.style.pixeltop = 100;//Math.round(document.body.scrolltop + event.y-100);
}
}
function setaaa(Elm){
if (!document.all)
return
if (MediaPlayer.playState!=3&&MediaPlayer.playState!=2)
return
temp1=Elm.style.pixelLeft
//alert(bb.style.pixelLeft) ;
theImg=Elm
x=event.clientX-aa;
if (MediaPlayer.playState==3||MediaPlayer.playState==2){
movelen=GetLength()
cur=x//theImg.style.pixelLeft;
if (cur==End)
btnstop_onclick();
else{
cur=Math.floor((cur-Start)*movelen/(End-Start));
SetPosition(cur);
seeking=false;
document.onmousemove=null;
}
}
}


function initseek(){
document.seek.style.pixelLeft=Start
}

function setseek(){
document.seek.style.pixelLeft=Math.round((MediaPlayer.controls.currentPosition/MediaPlayer.currentMedia.duration)*(End-Start))+Start;
//document.seek.style.pixelLeft=Math.round((MediaPlayer.currentPosition/MediaPlayer.Duration)*(End-Start))+Start;
}


function moveseek(){
if (event.button==1&&(MediaPlayer.playState==3||MediaPlayer.playState==2)){
left=temp1+event.clientX-x

if ((left<=End)&&(left>=Start))
theImg.style.pixelLeft=left
else
if(left>End)
theImg.style.pixelLeft=Start
else
theImg.style.pixelLeft=Start
// document.form1.pos.value=theImg.style.pixelLeft
return false
}
}

function enddragseek(){

//这里设置时间搜索
if (MediaPlayer.playState==3||MediaPlayer.playState==2){
movelen=GetLength()
cur=theImg.style.pixelLeft;
if (cur==End)
btnstop_onclick();
else{
cur=Math.floor((cur-Start)*movelen/(End-Start));
SetPosition(cur);
seeking=false;
document.onmousemove=null;
}
}
}

function changeseek(){
if (MediaPlayer.PlayState!=3&&MediaPlayer.playState!=2) return;
// if (!history) return;
if (!seeking){
if (movelen==0)
movelen=GetLength();
cur=GetPosition();
cur=Math.floor((End-Start)*cur/movelen);
document.seek.style.pixelLeft=Start+cur;
}
setTimeout("changeseek()",1000);
}
function GetLength()
{
return MediaPlayer.currentMedia.Duration;
//return MediaPlayer.Duration;
}
function GetPosition()
{
// tt=MediaPlayer.controls.CurrentPosition
tt=MediaPlayer.controls.currentPosition;
return tt;
}

//-->
</SCRIPT>

<SCRIPT language="javascript">
<!--
function MediaPlayer_NewStream() {
MediaPlayer_timer();
}

function MediaPlayer_timer() {
/* var hoursplayed;
var minsplayed;
var secsplayed;
var timenow;
var hours;
var mins;
var secs;
*/
var time;
var bfprogress;
time = getTimeStr(MediaPlayer.controls.currentPosition) + "/" + getTimeStr(MediaPlayer.currentMedia.duration);
timefield.innerHTML=time;
bfprogress = "缓冲:" + MediaPlayer.network.bufferingProgress +"%";
bufferfield.innerHTML=bfprogress;
window.setTimeout('MediaPlayer_timer()',1000);
if(!seeking)
setseek();
}

function getTimeStr(curtime)
{
// timenow = Math.round(MediaPlayer.controls.currentPosition);
var hoursplayed;
var minsplayed;
var secsplayed;
var timenow;
var hours;
var mins;
var secs;
var time;
timenow = Math.round(curtime);
hoursplayed = (timenow - timenow%3600)/3600;
minsplayed = (timenow - timenow%60)/60 - hoursplayed * 60;
secsplayed = timenow%60;
if (hoursplayed<10)
{
hours='0'+hoursplayed;
}
else
{
hours=hoursplayed;
}
if (minsplayed<10)
{
mins='0'+minsplayed;
}
else
{
mins=minsplayed;
}
if (secsplayed<10)
{
secs='0'+secsplayed;
}
else
{
secs=secsplayed;
}
time = hours + ":" + mins + ":" + secs;
return time;
}
//-->
</SCRIPT>

</TD>
<TD><IMG height="68" alt="" src="images/viplay_15.gif" width="26"></TD>
<TD colSpan="3"><IMG height="68" alt="" src="images/viplay_16.gif" width="193" useMap="#Map3Map" border="0"></TD>
</TR>
</TABLE>
<MAP name="MapMap">
<AREA shape="CIRCLE" coords="70,37,11" href="#">

<AREA shape="CIRCLE" coords="45,36,11" href="#">
<AREA onClick="Javascript:btnstop_onclick()" shape="CIRCLE" coords="14,36,11" href="#">
</MAP><MAP name="Map2Map">
<AREA onClick="Javascript:btnmute_onclick(0)" shape="CIRCLE" coords="14,37,11" href="#">
</MAP><MAP name="Map3Map">
<AREA shape="RECT" coords="3,21,44,42" href="#">
<AREA onClick="Javascript:btnfullscr_onclick()" shape="RECT" coords="74,22,114,41" href="#">
</MAP><MAP name="Map4">
<AREA onClick="javascript:btnplay()" shape="CIRCLE" coords="29,31,18" href="#">

</MAP><MAP name="Map">
<AREA shape="CIRCLE" coords="70,37,11" href="#">
<AREA shape="CIRCLE" coords="45,36,11" href="#">
<AREA onClick="Javascript:btnstop_onclick()" shape="CIRCLE" coords="14,36,11" href="javascript:;">
</MAP><MAP name="Map2">
<AREA shape="CIRCLE" coords="14,37,11" href="#">
</MAP><MAP name="Map3">
<AREA shape="RECT" coords="3,21,44,42" href="#">
<AREA onClick="Javascript:btnfullscr_onclick()" shape="RECT" coords="74,22,114,41" href="#">

</MAP>
</div>

</body>
</HTML>
<br>
<script src="../tj.js"></script>
<sCRIPT src="014.js"></script>

换一个网站,www.ku6.com www.xiaxt.cn
回复