OMpdx
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by OMpdx
-
-
I know nothing about code. I started with a web template and I want to simply make the banner image random between 5 images I have saved to my ftp. I don't need scrolling or fading or anything, I just want the image to be different every time someone hits or returns to the homepage.
I'm starting with the most basic HTML, and I renamed the images to be sequential:
<img src="v/vspfiles/assets/images/homepage/img_1.jpg" alt="garments for life"/>
<img src="v/vspfiles/assets/images/homepage/img_2.jpg" alt="garments for life"/>
<img src="v/vspfiles/assets/images/homepage/img_3.jpg" alt="garments for life"/>
<img src="v/vspfiles/assets/images/homepage/img_4.jpg" alt="garments for life"/>
<img src="v/vspfiles/assets/images/homepage/img_5.jpg" alt="garments for life"/>
I appreciate any help.
newbie - randomize images on refresh
in JavaScript
Posted
thanks! i think we're getting somewhere... this does randomize, but i'm still getting all images showing simultaneously. i'm hoping for one image in the banner at a time. then if the person goes to a different page and comes back to Home then they'll see a different image (from the 5).