So I have a scripting question and need some help
I figured one of you guys might be able to help me out with this.
I want to build a simple concept site that I can expand later but for now here's what I would like to happen
I would like an index page with a single image on it. here's where it gets tricky.
I would like there to be several "hidden" sub-pages of the index that simply contain a script that will automatically run when that particular sub-page is visited that will change the image on the index page to a designated image until another sub-page is visited.
i.e....
www.thisparticularwebsite.com (index/home/landing page) has an image on it
www.thisparticularwebsite.com/sub-page-1 is visited
www.thisparticularwebsite.com now has the designated image assigned to sub-page-1 and remains that way if www.thisparticularwebsite.com is visited
www.thisparticularwebsite.com/sub-page-2 is visited
www.thisparticularwebsite.com (index/home/landing page) now has the new designated image assigned to sub-page-2 and remains that way until another sub page is visited
and so on and so-forth
I don't need...or want...it to be random images...
It makes sense in my head...I hope it came across as intended. How do I make this happen? I have an idea for a simple interactive project (it seems relatively simple to me at least) that I'd like to start if someone would be willing to spend a little time and help me get that part of it up and working. If any of you have an idea as to how to do this...that would be awesome!