开发者

How do you overlay text on images/videos?

开发者 https://www.devze.com 2022-12-27 10:46 出处:网络
We need to place text over objects in a web page, similar to this: http://www.queness.com/resources/html/slideshow/jquery-slideshow.html

We need to place text over objects in a web page, similar to this: http://www.queness.com/resources/html/slideshow/jquery-slideshow.html

The text "bar" needs to appear on top of images and videos. For the videos, we're using the html5media library (http://code.google.com/p/html5media/), which renders a <video> tag for those bro开发者_开发问答wsers that support it, or a Flowplayer for others.

How do you do this with jQuery? Is it even possible for videos? There are examples but none that allow for text to be on top of <video> or Flowplayer objects. Thanks.


you need to have your flash object in wmode=opaque in order to be able to place html on top of it


Have you tried absolute positioning for text, with a transparent background?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号