GreyBox and videos

Discussion in 'JavaScript' started by sowers, Jan 28, 2009.

  1. #1
    hello,

    i am currently using greybox script to display portfolio images, but ive been asked by a friends to create a website for him to display his videos, he wouldlike it to display the same as my images.

    http://orangoo.com/labs/GreyBox/
    PHP:
    there is the link to the script,

    I cant find any documentation on the website to say how to add videos but it says you can add videos and flash, the video files will be hosted on my server and will be in either of these formats, .avi, .mp4 , .wmv

    any ideass on how to get it to work will be great, i will be storing the urls of the video in a database and pulling them out like this

    $result = @mysql_query($sql);
            if ($result) {
    while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
    echo "<li><a href=".$row['url']."  rel=gb_imageset[portfolio] title=".$row['caption']."><img src=".$row['thumbnail']." border=0 alt=Thumbnail /></a></li>";
    }
    } else {
    echo "There are no Portfolio Items to display";
    }
    PHP:
     
    sowers, Jan 28, 2009 IP