Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/400.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
Javascript SWFObject-如何将SWF嵌入到html的不同文件夹中? html文件在根目录中。 它正在尝试在“/iTag\u FLASH\u new/”中加载“iTag.swf” 我尝试在swfURL参数embedSWF/iTag\u FLASH\u new/iTag.swf中输入路径,但没有成功,文件无法加载 一些谷歌用户告诉我这是因为我必须通过更改基来指定路径 路径如上-这也不起作用,文件仍然没有加载。_Javascript_Html_Flash_Swfobject - Fatal编程技术网

Javascript SWFObject-如何将SWF嵌入到html的不同文件夹中? html文件在根目录中。 它正在尝试在“/iTag\u FLASH\u new/”中加载“iTag.swf” 我尝试在swfURL参数embedSWF/iTag\u FLASH\u new/iTag.swf中输入路径,但没有成功,文件无法加载 一些谷歌用户告诉我这是因为我必须通过更改基来指定路径 路径如上-这也不起作用,文件仍然没有加载。

Javascript SWFObject-如何将SWF嵌入到html的不同文件夹中? html文件在根目录中。 它正在尝试在“/iTag\u FLASH\u new/”中加载“iTag.swf” 我尝试在swfURL参数embedSWF/iTag\u FLASH\u new/iTag.swf中输入路径,但没有成功,文件无法加载 一些谷歌用户告诉我这是因为我必须通过更改基来指定路径 路径如上-这也不起作用,文件仍然没有加载。,javascript,html,flash,swfobject,Javascript,Html,Flash,Swfobject,我可能只是犯了一个愚蠢的错误,因为我累了,但有人有什么建议吗?干杯。试着在你的基本路线上放下“..”并引导“/” <div id="flashContent"> <h1>You need at least Flash Player 9.0 to view this page.</h1> <p><a href="http://www.adobe.com/go/getflashplayer"><

我可能只是犯了一个愚蠢的错误,因为我累了,但有人有什么建议吗?干杯。

试着在你的基本路线上放下“..”并引导“/”

    <div id="flashContent">
        <h1>You need at least Flash Player 9.0 to view this page.</h1>
        <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
    </div>

    <script type="text/javascript">
        //Dynamic publishing with swfObject 

        //A 'name' attribute with the same value as the 'id' is REQUIRED for Chrome/Mozilla browsers
        var flashvars = {};
        var params = {"base": "../flashgame_new/"};
        var attributes = {id: "iTag", name: "iTag"};
        swfobject.embedSWF("flashgame.swf", "flashgame", "720", "610", "9.0", null, flashvars, params, attributes);
    </script>

尝试在基本路径中删除“..”和前导“/”

    <div id="flashContent">
        <h1>You need at least Flash Player 9.0 to view this page.</h1>
        <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
    </div>

    <script type="text/javascript">
        //Dynamic publishing with swfObject 

        //A 'name' attribute with the same value as the 'id' is REQUIRED for Chrome/Mozilla browsers
        var flashvars = {};
        var params = {"base": "../flashgame_new/"};
        var attributes = {id: "iTag", name: "iTag"};
        swfobject.embedSWF("flashgame.swf", "flashgame", "720", "610", "9.0", null, flashvars, params, attributes);
    </script>

您不需要指定base标记,可以将其指定为embedSWF的一部分

根据您的信息: 网页载于: http://blah/whatever.html 闪光灯位于: http://blah/iTag_FLASH_new/iTag.swf

我会确保路径的swf加载正确的直接进入浏览器

如果您的页面位于: http://blah/somedirectory/whatever.html 闪光灯在 http://blah/somedirectory/iTag_FLASH_new/iTag.swf


您需要将路径指定为iTag\u FLASH\u new/iTag.swf,注意缺少斜杠。

您不需要指定基本标记,可以将其指定为嵌入swf的一部分

根据您的信息: 网页载于: http://blah/whatever.html 闪光灯位于: http://blah/iTag_FLASH_new/iTag.swf

我会确保路径的swf加载正确的直接进入浏览器

如果您的页面位于: http://blah/somedirectory/whatever.html 闪光灯在 http://blah/somedirectory/iTag_FLASH_new/iTag.swf


您需要将路径指定为iTag\u FLASH\u new/iTag.swf,注意缺少斜杠。

是的,这就解决了它。我检查这一点的网站似乎刚刚搞错了。干杯。是的,这就解决了。我检查这一点的网站似乎刚刚搞错了。干杯