![]() |
Javascript slide
Good day everyone
I've got a small javascript problem. if you have a look on my site, http://www.entersite.co.za, you'll see there are 2 links on the left. Gallery 1 and Gallery 2. When you click either one, the right side panel will expand. eg : Click Gallery 2, right side will expand with gallery 2 pictures. When I click gallery one, it will collapse, and then I have to click it again to expand the right side with pics from gallery 1. I want it, so that when I click gallery 1, that the panel will shrink, and then expand again to show pics from gallery 1. any help would be great. or an example of a script that does this will also help. I'm not using divs or layers. I'm just using a script that increases the <td> height. Code:
<script language="JavaScript" type="text/javascript"> |
Fixed it for you :)
It now differentiates between the galleries and displays different text depending upon which was clicked. It expands when you click a gallery and contracts if you click the same gallery again or if you clicked another gallery it contracts the old one then expands the new one. The contents for each gallery can be modified at the top of the script. Hope this is what you wanted. Robin :) Code:
<script language="JavaScript" type="text/javascript"> |
All times are GMT +1. The time now is 08:26 PM. |
Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.