0
嗨我有一個問題,我的jQuery和燈箱試圖修補。jQuery的iframe變量和字符串
isVideo : function (src){
if(src){
if(
src.match(/smartzer\.com\/([a-zA-Z0-9\-_]+)/)
){
return true;
}
}
},
getVideo : function(url){
var iframe = '';
var output = '';
var SmartUrl = url.match(/([a-zA-Z0-9\-_]+)/);
iframe = '<iframe width="560" height="315" src="video.smartzer.com/'+SmartUrl[1]+'" scrolling="no" width="850" height="500"></iframe>';
return '<div class="swipebox-video-container" style="max-width:'+plugin.settings.videomaxWidth+'px"><div class="swipebox-video">'+iframe+'</div></div>';
},
<a class="swipebox-video" rel="youtube" href="http://video.smartzer.com/ih/">Video Is Here</a>
我試圖讓這個輸出
<iframe width="850" height="500" src="http://video.smartzer.com/ih/" scrolling="no"></iframe>
但我得到這個輸出
<iframe width="850" height="500" src="http://video.smartzer.com/http" scrolling="no"></iframe>
它需要你在html看是動態的URL是 Video Is Here – mariovass