I have set up a PHP video browser on a website (check video pod) when a video thumbnail is clicked So there should be a video popup and play with the FancyBox script, but why does the video just do not load it?
You are using fancybox v2.x with the option of fancybox v1.3.x ( They are not compatible with each other.)
Your best bet is to get rid of this script:
& lt; Script type = "text / javascript" & gt; $ (".videobox") (function () {$ .fancybox ({'padding': 0, 'autoScale': false, 'transitionIn': 'none', 'transitionOut': 'none', 'title' : This.title, 'width': 680, 'height': 495, 'href': this.href.replace (New Rex ("clock \\" V = "," I "), 'V /') 'Type': 'SWF', 'SWF': {'Walm': 'Transparent', 'AcceptableSluscreen': 'True'}}); Return Back;}); & Lt; / Script & gt; And try this instead:
& lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ (". Videobox"). Fancybox ({width: 680, height: 495, type: "iframe"}); // fancybox};); // Ready & lt; / Script & gt; Note that we are using type: "iframe" because you are using YouTube embed mode < / P> side note : When you are loading two versions of jQuery (1.7.1 and 1.7.2), you actually have an example (ideal form to avoid unexpected errors) Requires the latest version).
Comments
Post a Comment