Hey,
How can I embed prepared HTML code with WYMeditor like the code for including a YouTube video or any other flash application?
Thanks
Steven
Forum closed. New forum available at http://community.wymeditor.org/
//REPLACE IMAGES BY VIDEOS
$(document).ready(function(){
$('img[@src*="/files/videos/"]')
.each(
function(){
videoWidth = $(this).attr("width");
videoHeight = parseInt($(this).attr("height"))+20;
videoSrc = $(this).attr("src").replace(".png",".flv").replace(".jpg",".flv").replace(".gif",".flv");
imagePreviewSrc = $(this).attr("src");
$(this).flash(
{ src: '/shared/flvplayer/flvplayer.swf', height: videoHeight, width: videoWidth},
{ version: 7 },
function(htmlOptions) {
htmlOptions.flashvars.file = videoSrc;
htmlOptions.flashvars.image = imagePreviewSrc;
htmlOptions.flashvars.autostart = true;
htmlOptions.flashvars.showfsbutton = false;
$(this).before($.fn.flash.transform(htmlOptions));
}
);
}
)
.remove();
});
Users browsing this forum: No registered users and 1 guest