For a portfolio I am trying to make, I would like to be able to have a couple thumbnails on the page, that, when clicked, cause a box to horizontally slide in above the thumbnails. I am looking to achieve an effect similar to the one found here: Programming Articles - PHP Scripts, Articles, Tutorials - roScripts, with some minor changes.
Each box will essentially just be a div with content inside of it.
I am relatively new to Javascript, DHTML, and AJAX, so any help would be greatly appreciated. If someone could point me in the right direction, and maybe answer a few questions once I get some direction, I would really appreciate it.
- Instead of arrows to scroll to the next content, I would like thumbnails to trigger the change in content. Essentially, I need clickable thumbnails (linked thumbnails) with ids that can trigger a box with specific content to slide in.
- I'm expecting the thumbnails to be clicked out of order, so I want the effect to be:
- if no boxes on the page, box slides in horizontally from right.
- if boxes are on the page, box on page slides out to left, new box slides in from right.
- if possible, a "close" button to be on each box, which will send the box on the page off to the left, making it so no boxes are on the page.
Each box will essentially just be a div with content inside of it.
I am relatively new to Javascript, DHTML, and AJAX, so any help would be greatly appreciated. If someone could point me in the right direction, and maybe answer a few questions once I get some direction, I would really appreciate it.
Comment