[jQuery] Re: random images

2007-05-12 Thread Rodrigo Castilho Galvão Ferreira
Initiating in 1 at "totalNum" for example: var rndNum = (Math.floor(Math.random() * totalNum)+1); -- Rodrigo Castilho Galvão Ferreira www.rodrigocastilho.com On 5/12/07, Glen Lipka <[EMAIL PROTECTED]> wrote: I have pick random images for a background like this: var totalNum = 4; //the

[jQuery] Re: random images

2007-05-12 Thread Ⓙⓐⓚⓔ
I just got set up on SVN to do that!!! I've got several cool utilitarian plugins and a ajax patch for partial status reporting, I would be cooler than a whirling gif! On 5/12/07, Glen Lipka <[EMAIL PROTECTED]> wrote: I have pick random images for a background like this: var totalNum = 4; //t

[jQuery] Re: random images

2007-05-12 Thread Glen Lipka
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 nami

[jQuery] Re: random images

2007-05-12 Thread Ⓙⓐⓚⓔ
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 -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪ