CJ Image Video Previewer 1.1

A JQuery Plug-In to Display A Series of Image Frames, Like A Video Previewer

Project Description

CJ Image Video Previewer is meant to mimic the video preview boxes you see on many Video sites. It displays a block that contains an image thumbnail and when the user moves their cursor of the box, it dynamically loads and then displays a group of images in sequence. Kind of like a flip-book. This is an excellent way to provide an preview of the video, without the user actually downloading the video file.

Example Setup
$("#Videos #preview_02").cjImageVideoPreviewer({
 // provide an array of your thumbnail images
 "images": [
   'assets/images/superman_the_mechanical_monsters_000120.jpg',
   'assets/images/superman_the_mechanical_monsters_000150.jpg',
   'assets/images/superman_the_mechanical_monsters_000210.jpg',
   'assets/images/superman_the_mechanical_monsters_000240.jpg',
   'assets/images/superman_the_mechanical_monsters_000270.jpg',
   'assets/images/superman_the_mechanical_monsters_000300.jpg',
   'assets/images/superman_the_mechanical_monsters_000330.jpg'
 ],
 "delay": 100,           // obviously this is a crazy fast amount
 "showProgress": false   // turn off the progress bar
});

Arguments

The plugin has a few options you can pass to it. You can set the delay amount, determine if you want to show the "image loading" progress bar and set it to autoPlay.

Argument Description Type Default
images An array of the thumbnail images to use. Ideally these should all be the same size as the original image. (Required) array []
delay The speed in which to display your images. (This argument is optional) integer 450
autoPlay Determines if the image will cycle though the images via a mouseover or should play on load. (This argument is optional) boolean false
showProgress Determines if a progress bar is displayed on first load. (This argument is optional) boolean false

Release Notes

This version adds an autoPlay option and also fixes a simple bug that prevented playback in IE8. (I was using $(window).mousemove instead of $("document").mousemove to capture the mouse coordinates. Big thank to DrunkBowling for pointing this out.

2 responses to "CJ Image Video Previewer 1.1"

sathia
sathia says:
good! it's nice to see it working on IE8, thanks
sathia
sathia says:
it seems to me that on firefox when the images loaded from the array are a bit huge it cycles the images in a very fast mode until it has loaded all the images.

anyone experiencing the same?
Doug
Doug responds:
@sathia - Hmmm... I'm not sure if I'm doing the delay on image load. I thought I had the images hidden while they were loading, but maybe one of my updates somehow killed that. I'll take a look, it's not supposed to show the images until they have all loaded.
sathia
sathia responds:
@Doug -
have you checked it? any clue about it?
bye
Doug
Doug responds:
@sathia - Yeah, I see what it's doing. I'm going to try to get to it today.

Have something to say? Leave a comment!

You don't have to be registered to leave a comment. Unregistered user's comments will be approved before going live.




You are currently posting as an unregistered user.
This means that your comment will be reviewed prior to going live. If you are a registered user, please . New user? No problem, register for an account, it's FREE! Benefits include, posting instantly, screen name protection, collaboration recognition, subscribe to article updates, and so much more!