Skip to main content
varuns46785756
Level 5
Feb 22, 2017 10:39 PM UTC
Solved

Banner image change after refresh the page

Hi,

I need to create a banner component, I need to display one image at a time on banner , when user refresh the page then next image will display, if we have five images for this banner then all the five images will be display one by one on page refresh.All the images coming from dam.Please suggest

 

 

Regards,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
edubey
edubeyAccepted solution
Level 10
Feb 27, 2017 12:12 PM UTC

Hi Varun,

I see two scenarios :- 

1. Load a image: If you want to load a image when user refresh browser, you can simply call random() method and load the respective image which I believe @kautuksahni has explained very well.

2. Load different image everytime: If you want to load a image and also make sure its different from the previous one then you have to keep track of current image name/id in browser session so that when next time page loads you can verify.

Thanks

11 replies

varuns46785756
Level 5
Apr 4, 2017 8:45 PM UTC

kautuksahni wrote...

Yes you can try ${properties.my_property}

~kautuk

 

Hi Kautuk,

thanks , its working now.

Translate