Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 在文档上显示Videobox.ready_Jquery_Video_Mootools - Fatal编程技术网

Jquery 在文档上显示Videobox.ready

Jquery 在文档上显示Videobox.ready,jquery,video,mootools,Jquery,Video,Mootools,现在,根据作者的建议,我应该能够通过如下调用将videobox加载到document ready上: Videobox.open("your video page url","your caption","vidbox width height"); 但我一直在犯这样的错误: Uncaught TypeError: Cannot call method 'setStyles' of undefined Videobox.positionvideobox.js:75 Videobox

现在,根据作者的建议,我应该能够通过如下调用将videobox加载到document ready上:

Videobox.open("your video page url","your caption","vidbox width height");
但我一直在犯这样的错误:

Uncaught TypeError: Cannot call method 'setStyles' of undefined
   Videobox.positionvideobox.js:75
   Videobox.openvideobox.js:55
   (anonymous function)opcion2.html:13
这是正在测试的铬

这是我的代码,很简单,因为我正在测试此功能:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <title></title>
     <link rel="stylesheet" href="css/videobox.css" type="text/css" media="screen" />   

     <script type="text/javascript" src="js/mootools.js"></script>
     <script type="text/javascript" src="js/swfobject.js"></script>
     <script type="text/javascript" src="js/videobox.js"></script>
     <script language="javascript">
          Videobox.open('http://www.youtube.com/watch?v=VhtIydTmOVU', 'Test', 'vidbox 979 416');

     </script>

   </head>

   <body>

   </body>
 </html>

视频盒,打开http://www.youtube.com/watch?v=VhtIydTmOVU","测试","视像框979 416",;

您需要将其放入文档中。就绪处理程序:

$(function() {
    Videobox.open("your video page url","your caption","vidbox width height");
});
或者只需将进行此调用的原始脚本部分移动到
正文的末尾


作者的网站只是说:

您还可以使用javascript启动视频

Videobox.open("your video page url","your caption","vidbox widht height");

他从未说过在dom准备好之前可以调用它。

您需要将其放入文档中。就绪处理程序:

$(function() {
    Videobox.open("your video page url","your caption","vidbox width height");
});
或者只需将进行此调用的原始脚本部分移动到
正文的末尾


作者的网站只是说:

您还可以使用javascript启动视频

Videobox.open("your video page url","your caption","vidbox widht height");

他从来没有说过在你的dom准备好之前你可以调用它。

@Andres-没问题。最好的luck@Andres-没问题。祝你好运