I'm working on a plain old .shtml website, with the "fanciest" element being that it uses server-side includes.
Each subpage has a sidebar with an area for a blurb of text with a "Tell me more!"-esque button that links to another page in the site. I'd like to set up a handful of SSIs that each page could then randomly pull from to display in that sidebar. So in the end I'd have the blurbs and button sections saved as sidebar1.htm, sidebar2.htm, and sidebar3.htm, then with some sort of code that tells any given page to randomly pull one of those includes and display it in the sidebar every time a user visits the page or refreshes.
I've done that sort of thing with javascript to randomly display images before, but never with includes. Is there any easy, "normal" HTML way to do that without any crazy coding?
Thanks a bunch,
m19
Each subpage has a sidebar with an area for a blurb of text with a "Tell me more!"-esque button that links to another page in the site. I'd like to set up a handful of SSIs that each page could then randomly pull from to display in that sidebar. So in the end I'd have the blurbs and button sections saved as sidebar1.htm, sidebar2.htm, and sidebar3.htm, then with some sort of code that tells any given page to randomly pull one of those includes and display it in the sidebar every time a user visits the page or refreshes.
I've done that sort of thing with javascript to randomly display images before, but never with includes. Is there any easy, "normal" HTML way to do that without any crazy coding?
Thanks a bunch,
m19