没有任何数据可供显示
| 开源项目社区 | 当前位置 : |
|
| www.trustie.net/open_source_projects | 主页 > 开源项目社区 > jquery-oembed |
|
jquery-oembed
|
| 1 | 0 | 18 |
| 贡献者 | 讨论 | 代码提交 |
AboutA simple jQuery plugin that uses OEmbed API to help displaying embedded content (such as photos or videos) in your website.
Quick explicit example<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
jquery-oembed explicit insert example
$(document).ready(function() {
$("#container").oembed("http://www.flickr.com/photos/14516334@N00/345009210/&quot;);
});
In this example the div#container will display the photo from flickr.
Quick implicit example<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
jquery-oembed link replace example
$(document).ready(function() {
$("a.oembed").oembed();
});
Flickr Image
Vimeo Video
In this example the jquery plugin will embed the flickr photo and the vimeo video inside the links.
Supported OEmbed providers5min Amazon Product Images Flickr Google Video Hulu Imdb Metacafe Qik Revision3 Slideshare Twitpic Viddler Vimeo Wikipedia WordPress YouTube This javascript plugin relays in 'jsonp', so only oEmbed providers that support callback methods are directly implemented.
Any other oEmbed provider uses oohembed.com service. Thank you oohembed.com!
This is my first public jQuery plugin. Any comments or improvements are really welcome.
Richard Chamorro
Avanzis
标签:
