iframe.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title></title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta http-equiv="Pragma" content="no-cache" />
  7. <meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
  8. <meta http-equiv="Expires" content="0" />
  9. </head>
  10. <style type="text/css">
  11. html, body {
  12. margin: 0;
  13. padding: 0;
  14. border: 0;
  15. }
  16. .plugin {
  17. width: 300px;
  18. height: 200px;
  19. }
  20. </style>
  21. <body>
  22. <div id="divPlugin" class="plugin"></div>
  23. </body>
  24. <script src="../jquery-1.7.1.min.js"></script>
  25. <script src="../codebase/webVideoCtrl.js"></script>
  26. <script>
  27. $(function () {
  28. var oPlugin = {
  29. iWidth: 300, // plugin width
  30. iHeight: 200 // plugin height
  31. };
  32. // 初始化插件参数及插入插件
  33. WebVideoCtrl.I_InitPlugin(oPlugin.iWidth, oPlugin.iHeight, {
  34. bWndFull: true,//是否支持单窗口双击全屏,默认支持 true:支持 false:不支持
  35. iWndowType: 1,
  36. cbInitPluginComplete: function () {
  37. WebVideoCtrl.I_InsertOBJECTPlugin("divPlugin");
  38. }
  39. });
  40. });
  41. </script>
  42. </html>