I am making a simple website that has a main text window with just text on it. I would like to have buttons like Home, About, Contact etc. Now, I don’t want to make about.html, contact.html etc but I would rather just change the text without loading a new page? (so it feels more smooth).
So I made couple of paragraphs with text suited for each page (home, about etc.), now is there a way for what I’m asking you? To just change the paragraph on click of a button? Or is there any simple way of doing this without making the .html files for each page?
Thanks in advance.
I would agree with tvanfosson and recommend something like UI tabs or AJAX loading, but if you want to see a very rudimentary way you can do it with jQuery hide/show:
http://jsfiddle.net/ADDPH/7/
HTML
jQuery