首页 \ 问答 \ 通过嵌入式YouTube / Flash视频避免滚轮劫持(Avoid scroll-wheel hijack by embedded youtube / flash video)

通过嵌入式YouTube / Flash视频避免滚轮劫持(Avoid scroll-wheel hijack by embedded youtube / flash video)

我正在对其主页中嵌入了YouTube视频的网站进行一些改进。 我自己没有添加此代码,但它看起来像:

      <object width="380" height="307">
        <param name="movie" value="http://www.youtube.com/v/DooLJvsH_BY&amp;hl=en_US&amp;fs=1&amp;" />
        </param>
        <param name="allowFullScreen" value="true" />
        </param>
        <param name="allowscriptaccess" value="always" />

        </param>
        <embed src="http://www.youtube.com/v/DooLJvsH_BY&amp;hl=en_US&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="380" height="307"></embed>
      </object>

这个嵌入式对象有一个小的ux问题:当使用鼠标的滚轮向上或向下滚动页面时,当鼠标光标悬停在视频上时它会停止工作。

是否有任何html / css / param设置我可以修改以避免这种情况?

有关工作示例, 请参阅网站本身

编辑:到目前为止,我在Windows 7 64位和Ubuntu 11.10 64bit中遇到了问题。


I am making some improvements on a web-site that has a youtube video embedded in its home-page. I have not added this code myself, but it looks like:

      <object width="380" height="307">
        <param name="movie" value="http://www.youtube.com/v/DooLJvsH_BY&amp;hl=en_US&amp;fs=1&amp;" />
        </param>
        <param name="allowFullScreen" value="true" />
        </param>
        <param name="allowscriptaccess" value="always" />

        </param>
        <embed src="http://www.youtube.com/v/DooLJvsH_BY&amp;hl=en_US&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="380" height="307"></embed>
      </object>

I have a small ux problem with this embedded object: When scrolling the page up or down using the scroll-wheel of the mouse, it stops working when the mouse cursor is hovering over the video.

Are there any html / css / param settings that I can modify to avoid this?

See the site itself for a working example.

Edit: I experience the problem both in Windows 7 64bit and Ubuntu 11.10 64bit so far.


原文:https://stackoverflow.com/questions/7917498
更新时间:2021-08-02 18:08

最满意答案

<param name="wmode" value="transparent" />

(和embed的等价物)

这是猜测。 我有个人经验,但如果你在IE中设置它,它将阻止Flash捕获滚动的箭头按钮,这似乎相关。


<param name="wmode" value="transparent" />

(and the equivalent in embed)

This is a guess. I have personal experience though that if you set this in IE, it will prevent Flash from capturing the arrow buttons for scrolling, which seems related.

相关问答

更多

相关文章

更多

最新问答

更多
  • 在可观察字段Knocout中显示$符号(Display $ sign in observable fields Knocout)
  • 全局和设备功能之间的差异(Difference between global and device functions)
  • ARM,MCU,DSP,FPGA,SOC各是什么?区别是什么
  • Facebook JavaScript SDK登录(Facebook JavaScript SDK Login)
  • 会计实操有没有用,北京哪家会计培训最好?
  • 字段列表错误中的MySQL未知列(MySQL Unknown column in fieldlist error)
  • 在DOM深层获取评论节点(Get comment nodes in DOM deep level)
  • 2015年的会计上岗证培训那里好,在西安
  • 将long lat转换为google maps long lat(converting long lat to google maps long lat)
  • XSD xs:列表混乱(XSD xs:list confusion)
  • 在Wordpress中,有没有办法让导航下拉菜单显示一个类别中的帖子?(In Wordpress, is there a way to make the navigation drop down menu show posts in a category?)
  • 当我想清空名为python的列表时,del a [:]和a = []之间有什么区别?(what is the difference between del a[:] and a = [] when I want to empty a list called a in python? [duplicate])
  • 我的第一个项目入门与设备之间的连接(Getting started with my first project with connectivity between devices)
  • azure site-to-site-vpn不允许流量通过(azure site-to-site-vpn does not let traffic through)
  • GoogleMaps - 调用onPause()(GoogleMaps - calling onPause())
  • 教师爱岗敬业演讲稿
  • 我正在编写c#代码,其中我想从Active Directory中搜索特定用户的详细信息(I am writing c# code wherein I want search for the details of a specific user from Active Directory)
  • sonar lint插件无法读取lint-results.xml(sonar lint plugin fails reading lint-results.xml)
  • Swift UITableView - 如何将新项目置于列表底部而不是列表的底部?(Swift UITableView - How to put new items on top not on the bottom of the list?)
  • 无法将“System.DBNull”类型的对象强制转换为MySQL Image的“System.Byte []”类型[复制](Unable to cast object of type 'System.DBNull' to type 'System.Byte[]' for MySQL Image [duplicate])
  • 在这种情况下我为Android登录RESTful api调整了什么?(What i adjust for android login into RESTful api in this conditions?)
  • 使用DBMS的C#VSTO(C# VSTO with DBMS)
  • 在NSTableView中更改自定义按钮单元格的图像(Change image of custom button cell inside NSTableView)
  • 从数据库中选择数据,选择任何行(select data from database with where selected any rows)
  • 与Grails持续集成(Continuous Integration with Grails [closed])
  • Laravel 4中的嵌套控制器(Nested Controllers in Laravel 4)
  • Qt - 插槽完成后不要销毁线程(Qt - don't destroy thread after slot is finished)
  • mysql 主从配置 需要什么网络环境
  • Spring 4可选> @RequestParam(Spring 4 Optional> @RequestParam)
  • 移动类型char,类似的赋值行为不同(Shifting a type char, similar assignments behave differently)