2011-11-10 22 views
0

我有一个fancybox模式的流水游戏。适用于IE7/8 FF和Chrome/Safari。流水游戏不能在IE9中工作

有问题,它不在IE9中玩。

这里是我的生产代码:

<div class="video"> 
        <a class="video-popout" href="#video-player1342"><img id="ContentPlaceHolderDefault_CLMasterContentPlaceHolder_Multimedia_6_videoListView_videoThumbnail_1" src="/media/12112/diner_1011_thumb.jpg" alt="Click me!" style="height:164px;width:291px;" /></a> 
        <p class="title">Dinner Commercial</p> 
        <p class="posted-on">date added: <span><span id="ContentPlaceHolderDefault_CLMasterContentPlaceHolder_Multimedia_6_videoListView_dateAddedLabel_1">10/05/2011</span></span></p> 
        <p><span id="ContentPlaceHolderDefault_CLMasterContentPlaceHolder_Multimedia_6_videoListView_descriptionLabel_1"></span></p> 
        <div class="video-share"> 
         <div class="addthis_toolbox addthis_default_style"> 
          <a class="share-link" href="#">Share</a><span class="share-divider">|</span> 

         </div> 
        </div> 

        <div style="display:none"> 
         <div id="video-player1342" style="width:542px;height:304px;border:1px solid #cb1000;padding:8px;"> 
          <div class="player"> 
           <object width="540" height="304" id="_player1" name="_player1" data="http://builds.flowplayer.netdna-cdn.com/79849/45776/flowplayer-3.2.7-0.swf" type="application/x-shockwave-flash"><param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="flashvars" value='config={"clip":{"url":"../media/12112/diner_1011.flv"}}' /></object> 

          </div> 
         </div> 

        </div> 
      </div><!-- end video--> 

我在IE9兼容模式注意到,selectivzr抛出当您点击我的缩略图预览启动模式的错误。

Unable to get value of the property 'charAt': object is null or undefined selectivizr-1.0.1.min.js, line 5 character 2280

可能是不相关的,

任何人都可以看看,看看什么回事?

您也可以测试http://thecl.com/multimedia-gallery/videos.aspx

谢谢!

回答

0

我曾与一个非常不同的方法达到同样的效果,基本上让玩家流脚本做上下起伏的负载,而不是直接嵌入视频的页面:

<script type="text/javascript" src="/scripts/flowplayer/flowplayer-3.2.6.min.js"></script> 
<script> 
    $(document).ready(function() { 

     var vid; 
     var player; 
     $("#video_list a.click_button").click(function() { vid = $(this).attr("href"); }).fancybox({ 
      'href': '#video_content', 
      'onStart': function() { 
       player = flowplayer("video_content", "/scripts/flowplayer/flowplayer-3.2.7.swf", vid); 
      }, 
      'onCleanup': function() { 
       $('#video_content').html(""); 
      } 
     }); 

    }); 


</script> 

而现在为标记

<div id="video_list"> 
    <div> 
     <img src="/images/tws_land/2011/ico_AndrewBlue.png" alt=""> 
     <p>"..There is real value in what Safety in the Market offer" - Andrew<br /> 
      <a href="/video/tws_AndrewB.flv" id="playflv" class="click_button">Play video</a> 
     </p>       
    </div> 
    <div> 
     <img src="/images/tws_land/2011/ico_MichaelBlue.png" alt=""> 
     <p>"..I&rsquo;ve learnt how to trade the stock market and the commodities market successfully, with a great deal of confidence" - Michael<br /> 
      <a class="click_button" href="/video/tws_MichaelC.flv">Play video</a> 
     </p> 
    </div> 
    <div> 
     <img src="/images/tws_land/2011/ico_BradBlue.png" alt=""> 
     <p>"..For the outlay, the rewards far outway the investment" - Brad<br /> 
      <a class="click_button" href="/video/tws_BradJ.flv">Play video</a> 
     </p> 
    </div> 
    <div> 
     <img src="/images/tws_land/2011/ico_YvonneBlue.png" alt=""> 
     <p>"..It&rsquo;s been a blessing to us, we&rsquo;re enjoying the new life we have as traders.. 
      and the freedom it brings" - Yvonne<br /> 
      <a class="click_button" href="/video/tws_YvonneP.flv">Play video</a> 
     </p> 
    </div> 
</div> <!-- END VIDEO LIST --> 
<div style="display:none;"> 
    <div id="video_content" style="width:800px;height:600px;"> 
</div> 

我曾以此为live demo,我可以确认作品与IE9

+0

我会看看我们是否能落实到我们目前的一把umbraco设置此一它似乎与你的榜样完美地工作。 我真的很感谢你的帮助!快乐的编码! –

+0

链接演示引发异常! – DevDave

+0

@Tyler它看起来像是由我用来触发视频按钮的脚本在点击包含div'$(“#video_list> div”)时引起的异常点击(function(){\t $(this).find (“a.click_button”)。click(); });'这个片段不是原始问题的一部分,所以我发布的解决方案仍然很好。 –