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.

[RESOLVED] Show one div while hiding itself

hi everyone. right now i'm working on my personal portfolio website and am trying to set it up so that i can click on one image, a div shows, and the div that the image clicked was in is hidden. that way, only one div will be up at all times. the new div will then in turn be able to show the original div.

my javascript isnt the best it could be, but what i want it to do is that when a category from div#home is clicked, div#home is hidden, while the clicked category is shown. then there will be an option to show div#home again while hiding the category again.

Major change to your code to at least make it work.
It may not be what you are looking for, but it will at least give you a start from a working display.
Substitute your own baseURL and image lists as you did not provide anything to look at.
The links are mostly for testing purposes. Change as necessary for your needs.

i can give some more information. i have a total of 6 divs, each with a table of 3 rows and 2 columns, and each cell has its own rollover image. #home (which will be the first div shown), and 5 hidden subcategories. in #home, there are 5 rollover images, which link to all 5 of the hidden categories. when the image linked to #category1 is clicked, #category1 should appear, and #home should disappear. in #category1, there is also an image that links to #home. when #home is clicked inside of #category1, #category1 should disappear, and #home should reappear. all 5 subcategories should be able to do this.

well, after completely reorganizing, i have the 6 divs, #home, #icons, #rain, #school, #walls, and #misc. #home, obviously, will be visible when the page is loaded. inside each of the six divs, there are 6 MORE divs. here's my new code.

So, does it work to your satisfaction? I don't see any JS involved in your code.

I am unable to see any images since they don't seem to be available except on your local computer or your ISP.
In fact, I don't even see the HTML display. Do you have a working copy at some link location?