How to make this layout work
-
I was thinking of some way to make a fairly unique, or at least homegrown, layout for my site, and my first idea hit a snag. Here is what I’m trying to get at.
My goal is to make it so that the content on the left bar is dynamic, changing whenever a user clicks on a link on the top row. For example, when the page loads it might contain a link list, a listing of categories, and some other general info or links. Once they click on the “archives” link, though, it would change into a list of all recent entries.
Now I don’t know much about any of the scripting languages, so I’m wondering how this could be done. I abhor frames and as far as I’ve seen they aren’t used any longer anyway. I was thinking that I could use php to pass an argument to the index, causing it to include a different file where the sidebar content is located, but would this cause the entire page to refresh whenever a user clicked on a link?
Also, if I had it my way, I’d include some sort of effect when the sidebar content changed, to draw attention to the action (such as fading or sliding) but I have absolutely no clue how it would be done.
Any and all help, links, and advice would be appreciated, and thanks in advance!
- The topic ‘How to make this layout work’ is closed to new replies.