My idea is such: On my about page I would like to have a container whose content (a couple of paragraphs) can change based on a selected link, but I don't want the whole page to reload, or the container to resize. Just the text change. Does this make sense and is there an easy way to do this using CSS or a jQuery plugin? I saw two examples on this site, but they weren't precisely the same...
Actually the "obviously" part is where I'm stuck....Also, I don't want to load new HTML, just replacement text. As in About Us is General info, then they can click "people" to read about management, if that makes any sense.
Probably don't need all of that if this is the only thing you will be using, but theres some other stuff in there that could be helpful if you are a jquery beginner and are looking to add some interesting ui elements to sites.
obviously you will need to set it up to work when you click the given links...but you get the jest.
http://jsfiddle.net/2FNv6/
if you do not want the container to change height, simply set a fixed height for the container.
This works great, but how can you make it so if you click another link it goes back to the old content? Sort of like tabs..
Thanks a bunch.
Tabs are actually built into the jquery ui library: http://jqueryui.com/tabs/
Probably don't need all of that if this is the only thing you will be using, but theres some other stuff in there that could be helpful if you are a jquery beginner and are looking to add some interesting ui elements to sites.
Conveniently this is a bit of JavaScript i know that allows you to replace content with onclick. I created this pen for you.PEN