简体   繁体   中英

adding a swf in html5

I am trying to add a xml flash image banner to an html document. Here is a link - http://harden6615.com/project2/site/index.html - It works fine if I add the .swf and other element to the file with index.html but when I nest the banner files inside a folder and use the path, I get no banner. Can anyone tell me what I did wrong?

屏幕截图

<section>
       <div id="slideshow">
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="312" id="slideshow" align="middle">
    <param name="movie" value="banner/slideshow.swf" />
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="banner/slideshow.swf" width="500" height="312">
            <param name="movie" value="banner/slideshow.swf" />
        <!--<![endif]-->
            <a href="http://www.adobe.com/go/getflash">
     <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
            </a>
        <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
        </object>
        </div>
</section>

what is your folder structure? i suppose the index.html and the folder are siblings and the folder contains the files (the way i understood your question). then your path should not be ../slideshow.swf but foldername/slideshow.swf

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM