原型和原型的区别:在线电影播放被阻止..问题.

来源:百度文库 编辑:神马品牌网 时间:2024/04/29 05:20:59
电影网程序..在本机测试时..点播放就会弹出播放窗口.
(好象经过三个窗口.. video_pass.asp 然后是一个方窗口 最后跳转到..video_play.asp 播放窗口.这个动作很快的..忽一下子就过去了..)
但可以正常播放.
但上传空间后..发现..如果电脑ie设了阻止弹出窗口的话..当点播放时...会打开一个窗口.;.然后当跳转第二个时就被ie..窗口被阻挡了...自然电影无法播放.

我想把它改成..不能被ie阻挡的..(不要告诉我去把ie设置一下)
希望哪位高手可以帮帮忙....看看有什么方法..去改..

在网上找了半天..有的说什么可以改成自身窗口的..不要弹出的..

研究了一下.程序..好象是当点播放时..
先打开的.是.video_pass.asp ..应该是用户验证.什么的.然后自动跳转到..播放窗口
我把video_pass.asp 文件..中的代码复制出来:

<!-- #include file="include/config.asp" -->
<!-- #include file="include/no_cache.asp" -->
<%
dim id,fid,session_view,passurl,wstyle
id=trim(request.querystring("id"))
fid=trim(request.querystring("fid"))
if not(isnumeric(id)) or not(isnumeric(fid)) then
response.write joekoe_cms.js_put("alert(""错误的ID参数:\n\n您勿向本站提交非法信息!"");window.close();",1)
call web_clear(1)
end if

session_view="vs"&joekoe_cms.rand_num(8)
session(joekoe_cms.web_cookies&"_video")=session_view
passurl="video_play.asp?action=play&id="&id&"&fid="&fid&"&session_view="&session_view
wstyle=int(mid(web_dim(39),4,1))
%>
</head>
<body topmargin=0 leftmargin=0>
<INPUT type=hidden id=session_view value='<%response.write session_view%>'>
<script language=javascript>
<!--
self.resizeTo(1,1);
self.moveTo(screen.width-10,screen.height-10);
blur();
video_openwin('<%response.write passurl%>',<%response.write wstyle%>)
window.close();

function video_openwin(url,ws)
{
var width=694;
var height=530;
var Left_size = (screen.width) ? (screen.width-width)/2 : 0;
var Top_size = (screen.height) ? (screen.height-height)/2 : 0;
if (ws==0)
{ window.showModalDialog(url,session_view.value,'dialogWidth:'+width+'px;dialogHeight:'+height+'px;resizable:no;help:no;status:no;'); }
if (ws==1)
{ window.showModelessDialog(url,session_view.value,'dialogWidth:'+width+'px;dialogHeight:'+height+'px;resizable:yes;help:no;status:no;'); }
if (ws==2)
{ window.open(url,session_view.value,'width=' + width + ',height=480,left=' + Left_size + ',top=' + Top_size + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'); }
}
-->
</script>
</body>
</html>
<%call web_clear(1)%>
希望哪位高人能帮忙....感激不尽..

关闭防火墙.