I need this video to run automatically. It would be nice, this code could play videos from other sources like Yahoo! etc. Is it possible to use HTML5 instead of jquery?
The function or plugin used to display the popup window may be to display the video You will be different from what you are using. In this example, I used the model to be used to display the YouTube Flash Player. Alternatively, you can use someone to display videos, but you will need to pop up your model first.
& lt; A href = "http://www.youtube.com/v/2cxqZiWyW3g & HL = en_US and FS = 1 and autoplay = 1" class = "video-link" & gt; Video 1 & lt; / A & gt; & Lt; A href = "http://www.youtube.com/v/607RMNoJfl4&hl=en_US&fs=1&autoplay=1" class = "video-link" & gt; Video 2 & lt; / A & gt; & Lt; Div class = "modal" id = "video-model" & gt; & Lt; Div id = "video-container" style = "width: 425px; height: 344px;" & Gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Script language = "javascript" type = "text / javascript" & gt; $ (Function () {var videomodal = $ ('# video-modal'). Overlay ({highlight: {color: 'black', load speed: 200, opacity: 0.85}, click Close Click: True, API : True}); $ ('.video-link') (function () {videoModal.load ()} var video URL = $ (this) .attr ('href'); var flashvars = {}; var params = {AllowFullScreen: "true", allows "always"}; var properties = {}; swfobject.embedSWF (video URL, 'video-container', '425', '344', '9.0.0', '', Flashwars, parameters, attributes); details are false;});}); & Lt; / Script & gt;
Comments
Post a Comment