I have pick random images for a background like this:
var totalNum = 4; //the total number of images in a folder.
var rndNum = Math.floor(Math.random() * totalNum);
$("div#header").css("background-image","url(myimage" + rndNum + ".gif)");
But this assumes you have a set of images with a naming scheme.
Jakes plugin looks alot more robust. But this is the first I have seen it.
Jake, you might want to package this on a sample page and submit it to the
plugins page. Looks good.
Glen
On 5/12/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
you can see some random images, and reading them from a folder, on my dog
Junior's site!
http://jpassoc.com/junior
All plug-in quality.
On 5/12/07, Sharique <[EMAIL PROTECTED]> wrote:
>
>
> I want to show random images from a folder.
> How I can do this?
> ----
> Sharique
>
>
--
Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ