| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2298 人关注过本帖
标题:问一下SESSION
只看楼主 加入收藏
ymhy12345
Rank: 2
等 级:论坛游民
帖 子:83
专家分:36
注 册:2011-8-27
结帖率:72.73%
收藏
 问题点数:0 回复次数:0 
问一下SESSION
网页源码
程序代码:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0140)http://stb.1&air_sno=1323&type_id=en&tempid=0&tempimg=pindao1 -->
<HTML><HEAD><TITLE>B1050-PlayP2P</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2900.5880" name=GENERATOR>
<META content=C# name=CODE_LANGUAGE>
<META content=JavaScript name=vs_defaultClientScript>
<META content=http://schemas. language=javascript src="B1050-PlayP2P.files/jquery-1.4.js"></SCRIPT>

<SCRIPT language=JavaScript type=Text/JavaScript>
<!--
    function getSession()
    {
        $.ajax({     type: "POST",          
                            url: "test.aspx",  
                            data: "air_sno=0",         
                            success: function(msg){   
                               }
                              });     
    }
    //刷新SESSION
    window.setInterval("getSession()",1100000);
   //document.onkeydown = keyDown;
    var mystop;   
    function keyDown(myevent)
    {    
      var keycode = myevent.keyCode;
      try{   
        if ( keycode == 37 ||  keycode == 39  )
        { 
        }     
        else if ( keycode == 8 || keycode==9)
        { 
          return false;
        }  
       else if ( keycode == 97 || keycode==17)
        {    
            var liveStr=document.Live.StateString;
          // alert(liveStr);
           if(liveStr.indexOf("正在播放")!=-1||liveStr.indexOf("获取节点失败")!=-1||liveStr.indexOf("缓冲0%")!=-1)
            {
                document.Live.Stop();
                document.all["imgbtn_return"].focus();
                __doPostBack('imgbtn_return','')
             }
        }
        else if ( keycode ==98||keycode==40)
        {
                var mid= parseInt("1");
                if(mid>0)
                {
                    var liveStr=document.Live.StateString;
                   if(liveStr.indexOf("正在播放")!=-1||liveStr.indexOf("获取节点失败")!=-1||liveStr.indexOf("缓冲0%")!=-1)
                     {
                        document.Live.Stop(); 
                        clearInterval(mystop);
                        document.all["ImgUp"].focus();
                        __doPostBack('ImgUp','')
                    }
                }
        }
        else if ( keycode ==99||keycode==38)
        {
            var mid= parseInt("1");
            var maxid= parseInt("11");
            if(mid<(maxid-1))
            {
                var liveStr=document.Live.StateString;
                  var infoStr=document.Live.InfoString;
                   if(liveStr.indexOf("正在播放")!=-1||liveStr.indexOf("获取节点失败")!=-1||liveStr.indexOf("缓冲0%")!=-1)
                     {
                        document.Live.Stop(); 
                        clearInterval(mystop);
                        document.all["ImgDown"].focus();
                        __doPostBack('ImgDown','')
                    }
            }
        }
        else if(keycode==100)
        {
             butfull_onclick();
        }
        else
        return
       }
        catch(e)
        {
          tbl1.rows[0].cells[0].all[0].focus();
        }
     }
  
  
    function updateimg(img1)
    { 
      img1.style.borderColor='#ff0000';
      
    }
    function backup(img1)
    {
      img1.style.borderColor='Transparent';
    }
   
    function butfull_onclick()
    {
        try
        {
        document.Live.fullScreen=1;
            throw (e);
        }
        catch (e)
        { 
        }
       
    }


 function playtype()
        {
         try
            {
                window.focus();
                if(document.Live.PlayState==1&&document.Live.fullScreen!=1)
                {
                   
                    document.Live.fullScreen=1; 
                }  
                if(document.Live.PlayState!=1&&document.Live.fullScreen!=1)
                { 
                    tabjd.rows[1].cells[0].innerHTML="<B><font color=#ffff00 >"+document.Live.StateString+"&nbsp;&nbsp;&nbsp; </font></B>";
                    
                }
                if(document.Live.StateString.indexOf("停止")!=-1)
                {
                    __doPostBack('imgbtn_return','')
                }
            }
            catch (e)
            { 
            }
        }

 mystop=setInterval("playtype()",1000);
//-->
        </SCRIPT>
</HEAD>
<BODY onkeydown=keyDown(event); bottomMargin=0 bgColor=#000000 leftMargin=0
topMargin=0 scroll=no rightMargin=0>
<FORM id=Form1 name=Form1
action=B1050-PlayP2P.aspx?key=DFSRsr9895wwZMfxJ9WT&amp;moveid=1&amp;air_sno=1323&amp;type_id=en&amp;tempid=0&amp;tempimg=pindao1
method=post>
<DIV><INPUT id=__EVENTTARGET type=hidden name=__EVENTTARGET> <INPUT
id=__EVENTARGUMENT type=hidden name=__EVENTARGUMENT> <INPUT id=__VIEWSTATE
type=hidden
value=/wEPDwUKMTcyNjM4ODYyOQ8WDh4HdHlwZV9pZAUCZW4eB3VzZXJfbm8FBjIwMDA1MR4NdXNlcmdyb3VwX251bQUNQjEwNTAtMTEtSjAwNh4IbGFuZ3VhZ2UFATQeB0NnaV9mbHYFKXZqbXM6Ly9wMnAzY25jLnNpbm9kaWcuY29tOjg1MDA6MzUwMi9saXZlHgVtYXhpZAILHgNtaWQCARYCZg9kFgZmDxYCHgRUZXh0BTF2am1zOi8vcDJwM2NuYy5zaW5vZGlnLmNvbTo4NTAwOjM1MDIvbGl2ZS9jaWQ9MjYxZAICDw8WAh8HBQdIQk8oSEQpZGQCBg8PZBYCHgdvbmNsaWNrBSBidXRmdWxsX29uY2xpY2soKTsgcmV0dXJuIGZhbHNlO2QYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgQFDWltZ2J0bl9yZXR1cm4FBUltZ1VwBQdJbWdEb3duBQdJbWdmdWxsVEbOjatb0La0pdWfHBdC1WOLqs0=
name=__VIEWSTATE> </DIV>
<SCRIPT type=text/javascript>
<!--
var theForm = document.forms['Form1'];
if (!theForm) {
    theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
</SCRIPT>

<TABLE height=370 cellSpacing=0 cellPadding=0 width=630 align=center
background="" border=0>
  <TBODY>
  <TR>
    <TD height=25></TD></TR>
  <TR>
    <TD align=middle>
      <TABLE height=340 width=500>
        <TBODY>
        <TR>
          <TD height=20>
            <OBJECT id=Live
            codeBase=http://stb.3,0,1164,0
            classid=CLSID:174012D5-4141-44D6-8F44-729BB97C56EB VIEWASTEXT><PARAM NAME="Src" VALUE="vjms://p2p3cnc."><PARAM NAME="StartDelay" VALUE="100"><PARAM NAME="VideoAspect" VALUE="full"><PARAM NAME="Volume" VALUE="100"><PARAM NAME="updateurl" VALUE="http://"><PARAM NAME="PlayMode" VALUE="mini"><PARAM NAME="BufferTime" VALUE="5"><PARAM NAME="autoplay" VALUE="true"></OBJECT></TD></TR>
        <TR>
          <TD vAlign=bottom align=middle><SPAN id=Label2
            style="FONT-WEIGHT: bold; FONT-SIZE: 20pt; COLOR: yellow">HBO(HD)</SPAN>
          </TD></TR>
        <TR>
          <TD align=middle height=40>
            <TABLE id=tabjd>
              <TBODY>
              <TR>
                <TD><IMG src="B1050-PlayP2P.files/jindu.gif"> </TD></TR>
              <TR>
                <TD
align=middle></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD align=middle height=50>
      <TABLE id=tbl1 cellSpacing=0 cellPadding=0 width=400 border=0>
        <TBODY>
        <TR>
          <TD align=middle width="100%" height=48><INPUT id=imgbtn_return
            onblur=backup(this)
            style="BORDER-RIGHT: transparent 4px solid; BORDER-TOP: transparent 4px solid; BORDER-LEFT: transparent 4px solid; BORDER-BOTTOM: transparent 4px solid"
            onfocus=updateimg(this) type=image
            src="B1050-PlayP2P.files/anniu.gif" name=imgbtn_return>&nbsp; <INPUT
            id=ImgUp onblur=backup(this)
            style="BORDER-RIGHT: transparent 4px solid; BORDER-TOP: transparent 4px solid; BORDER-LEFT: transparent 4px solid; BORDER-BOTTOM: transparent 4px solid"
            onfocus=updateimg(this) type=image
            src="B1050-PlayP2P.files/anniu.gif" name=ImgUp>&nbsp;<FONT
            face=宋体></FONT> <INPUT id=ImgDown onblur=backup(this)
            style="BORDER-RIGHT: transparent 4px solid; BORDER-TOP: transparent 4px solid; BORDER-LEFT: transparent 4px solid; BORDER-BOTTOM: transparent 4px solid"
            onfocus=updateimg(this) type=image
            src="B1050-PlayP2P.files/anniu.gif" name=ImgDown>&nbsp; <INPUT
            id=Imgfull onblur=backup(this)
            style="BORDER-RIGHT: transparent 4px solid; BORDER-TOP: transparent 4px solid; BORDER-LEFT: transparent 4px solid; BORDER-BOTTOM: transparent 4px solid"
            onfocus=updateimg(this) onclick="butfull_onclick(); return false;"
            type=image src="B1050-PlayP2P.files/anniu.gif" name=Imgfull>
        </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<DIV><INPUT id=__EVENTVALIDATION type=hidden
value=/wEWBQLXq+mnAwLc/5OmDAKU0cnUAwKDpKCHDgLT0ZjXClcm8yPmRMtyocdaJaXk8VvU4XGD
name=__EVENTVALIDATION> </DIV></FORM></BODY></HTML>
以上网页要用账号登陆上去,里面的地址vjms://p2p3cnc.才能播放,没有账号进去的话不能播放,获取节点失败,哪个大神解释一下原理,还有怎么样去掉SESSION,没有账号也能播放
搜索更多相关主题的帖子: 网页 
2014-02-19 13:31
快速回复:问一下SESSION
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.027112 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved