直接打开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>
主要代码就是这样的,应该怎么改呢??