Banner image change after refresh the page | Community
Skip to main content
varuns46785756
Level 5
February 22, 2017
Solved

Banner image change after refresh the page

  • February 22, 2017
  • 11 replies
  • 9230 views

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.
Best answer by edubey

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
April 4, 2017

kautuksahni wrote...

Yes you can try ${properties.my_property}

~kautuk

 

Hi Kautuk,

thanks , its working now.