标签 embed 下的文章

今天在工作中遇到需要js动态的改变embed的src值进行切换的效果;

<div class="m-video">
    <div class="v-play">
        <embed allowfullscreen="true" allowscriptaccess="always" height="450" name="cc_4B7838C6838BB3B99C33DC5901307461" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://p.bokecc.com/flash/player.swf?vid=4B7838C6838BB3B99C33DC5901307461&amp;siteid=4F21A251DAE61656&amp;autoStart=false&amp;playerid=08C25F053497D927&amp;playertype=2" type="application/x-shockwave-flash" width="660" wmode="transparent"></embed>
    </div>
    <ul class="v-tit">
        <li data-src="http://p.bokecc.com/flash/player.swf?vid=4B7838C6838BB3B99C33DC5901307461&amp;siteid=4F21A251DAE61656&amp;autoStart=true&amp;playerid=08C25F053497D927&amp;playertype=2"><img src="http://u1.huatu.com/image/2014image/201510/zgzx/ztfx1.jpg" alt=""></li>
        <li data-src="http://p.bokecc.com/flash/player.swf?vid=1A42E7BBB7A33C6A9C33DC5901307461&amp;siteid=4F21A251DAE61656&amp;autoStart=true&amp;playerid=08C25F053497D927&amp;playertype=2"><img src="http://u1.huatu.com/image/2014image/201510/zgzx/haiguan1.jpg" alt=""></li>
        <li data-src="http://p.bokecc.com/flash/player.swf?vid=7A911A9BDBD30B2D9C33DC5901307461&amp;siteid=4F21A251DAE61656&amp;autoStart=true&amp;playerid=08C25F053497D927&amp;playertype=2"><img src="http://u1.huatu.com/image/2014image/201510/zgzx/haishiju1.jpg" alt=""></li>
    </ul>
</div>
••••••