包含vimeo播放器的jquery代码位于
之下$("modal-nofooter").addEvent("click", function(e){
e.stop();
var SM = new SimpleModal({"hideFooter":true, "width":710});
SM.show({
"title":"Vimeo video",
"model":"modal",
"contents":'<iframe src="http://player.vimeo.com/video/26198635?title=0&byline=0&portrait=0&color=824571" width="680" height="382" frameborder="0" webkitAllowFullScreen allowFullScreen></iframe>'
});
})
答案 0 :(得分:0)
也许将iframe的'src'属性更改为您想要的youtube视频?我对simplemodal插件并不熟悉,但就在我的脑海中,听起来不错。
$("modal-nofooter").addEvent("click", function(e){
e.stop();
var SM = new SimpleModal({"hideFooter":true, "width":710});
SM.show({
//You could also probably change the "title" property as well to, say, "Youtube video"
"title":"Vimeo video",
"model":"modal",
/***** THIS PART HERE, WHERE IS SAYS src *********/
"contents":'http://www.youtube.com/embed/abcxyz?title=0&byline=0&portrait=0&color=824571" width="680" height="382" frameborder="0" webkitAllowFullScreen allowFullScreen></iframe>'
});
})