If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Should not be used unless you also include a JQuery library reference.

Also, the code is not needed unless the user wants to display the first <div> tag after the main <div> content when the page is called the 1st time.
There are other ways to accomplish this without the library [onload() comes to mind].
And the description of the OP in the first post did not want that, if I understood his request.

Hi JMRKER!
Would it be possible for you to show me code where I can have div "container1" to show up at first load and there would be no div "container"?
I want to be able to navigate between different "pages" (divs) like in a single page web app and I don't want to use jQuery - no content should be present on more than one "page".

Hi JMRKER!
Would it be possible for you to show me code where I can have div "container1" to show up at first load and there would be no div "container"?
I want to be able to navigate between different "pages" (divs) like in a single page web app and I don't want to use jQuery - no content should be present on more than one "page".

Many many thanks to you JMRKER!
I've spent many hours searching for a simple way to swap and go between pages like this and this seems to be the most effective way to do it - would you agree that this is somewhat the best way to go between pages in a single page web app?
What I have left is to do the CSS (or do I have to use JavaScript AND CSS for that?) for the page/div transitions.
I would like to have a transition going from container1 to container2 or 3 or 4 where container 1 should slide out to the left and container 2/3/4 should come in from the right, and every time I go back from either container 2 or 3 or 4 to 1 the slide transition should be the opposite.
I'd like to do it with CSS only, but this might not be possible?