Re: Source video ?

Posted by Will on 1271284736
http://api.jquery.com/load/

This will require you to edit the template a little bit for singlevideo and add an id to the container div.

For example. http://www.impresscms.tv/modules/mytube/singlevideo.php?cid=4&lid=1

if the container div had an id of let's say "video" then you would be able to use load to pull it anywhere else you may want it.

All you need to do is add a new empty container for the video on the page you want to pull it to - let pretened you did so and labeled it "videowrap"

<script type="text/javascript"> <!--//--><![CDATA[//><!-- jQuery('#videowrap').load("http://www.impresscms.tv/modules/mytube/singlevideo.php?cid=4&lid=1 #video"); //--><!]]> </script>


Boom - instant video.

Alternatively - you can use the colorbox library to load video as well - and its actually a really nice outcome.

<a id="vid_window" href="path/to/video#videocontainer">Link</a>


jQuery("#vid_window").colorbox({width:"650px", height:"450px", iframe:true, scrolling:false});


Example: Click "View The Video"
http://mrtheme.com/test/index.php

This Post was from: https://www.impresscms.org/iforum/viewtopic.php?topic_id=4237&post_id=38048