function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Gm ChouhanGm Chouhan 

i want to shuffle image randomly

Hi....
i have upload same image in static resource and i want shuffle those images randomly after some time.
pls help....
srinu_SFDCsrinu_SFDC
Hi Gm,

    I would have improached in this way.
    
    Have image names have specific interger patter e.g(IMG-1.jpg,IMG-2.jpg,IMG-3.jpg....)
   
    Then use setInterval method in JS to Radomize the integer value and update the Image Url.
    setInterval(function () {
        //Use Math.Randomize to get interger in specific range and set the image href here.
    },30000);

Thanks,
Y.Srinivas