首页 新闻 会员 周边

vrpie 通过asp.net打开htm页面就会报错,直接打开htm就正常,怎么破?

0
悬赏园豆:100 [已关闭问题] 关闭于 2014-05-08 15:38

直接打开htm文件是可以可以运行的,但是吧这个htm文件加入到asp.net项目里面就会出错

<html>
<head>
    <meta http-equiv="Content-Language" content="zh-cn" charset="gb2312">
    <title>VRPIE 三维网络平台</title>
    <script src="../../Scripts/jquery-1.8.1.min.js"></script>
    <script for="Vrpie1" event="OnVrpEvent(msg,p1,p2,p3,p4)" language="Jscript">
        {
            var str = window.Vrpie1.GetVrpMsgDesc(msg, p1, p2, p3, p4);
            if (msg == '601') {
                GetData();
                //setInterval(GetData, 10000);
            }
        }
    </script>
    <script type="text/javascript">
        var url = 'http://localhost:14872';

        $(function () {
            $("#HistoricalData").attr("src", url + "/HistoricalData/Prompt.html");
            $(window).resize(Resize);
            Resize();
        });

        function GetData() {
            $.ajax({
                url: url + '/Handler/Tower_03Handler.ashx',
                type: 'post',
                dataType: 'jsonp',
                jsonp: "callback",
                data: { '_o': 'GetData' },
                success: function (data) {
                    $.each(data, function (k, v) {
                        eval(v);
                    });
                }
            });
        }

        function Resize() {
            var width = $(document.body).width() - 425;
            var height = $(document.body).height() - 5;
            $("#Vrpie1").attr("width", width);
            $("#Vrpie1").attr("height", height);
        }
    </script>
</head>
<body>
    <div class="left">
        <object classid='clsid:A8130242-384D-489C-81ED-F14E5477DC95' id='Vrpie1'
            codebase='http://www.vrpie.com/vrpie/player/Vrpie2d.CAB#version=9,11,1,1'>
            <embed type="application/vrpie" width="100%" height="100%" id="vrpie" file="Desktop.vrpie.zip" />
            <param name='VrpieFile' value='Desktop.vrpie.zip' />
        </object>
    </div>
    <div class="right">
        <div class="rightup">
        </div>
        <div class="rightdown">
            <iframe id="HistoricalData"></iframe>
        </div>
    </div>
</body>
</html>

主要代码就是这样的,应该怎么改呢??

刘宏玺的主页 刘宏玺 | 专家六级 | 园豆:14020
提问于:2014-05-08 14:20
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册