Yes but none of them will be specifically for my problem. I wish to create a custom function if poss.
Main Topics
Browse All TopicsI have three columns/divs in this order.
1) Main content area set to 60% width [initially]
2) Show/hide tab
3) Sub menu
What I want to do is be able to show and hide the sub menu which will also make the content area expand at the same time.
So when some clicks the "Hide Menu" image in the tab div the sub menu hides and the image changes to "Show div" ALSO I want to change the id of Main content area.
So three things in one function:
1) Hide div 3
2) Change image in the tab div [div 2]
3) Change the id of div 1 so it is 90% width.
This also needs to work in reverse. So the image can be clicked to show the sub menu and set div 1 back gto 60% width.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Its ok I did it like this and it works:
function tabToggle(column, image, subMenu)
{
var contentArea = document.getElementById(co
var theImage = document.getElementById(im
var subMenuArea = document.getElementById(su
if(subMenuArea)
{
if(subMenuArea.style.displ
subMenuArea.style.display = "block";
if(contentArea)
contentArea.className = "column1";
theImage.setAttribute("src
}
else{
subMenuArea.style.display = "none";
if(contentArea)
contentArea.className = "columnfull";
theImage.setAttribute("src
}
}
}
Business Accounts
Answer for Membership
by: NushiPosted on 2007-02-28 at 07:21:01ID: 18625672
you can download few scripts from http://www.dhtmlcentral.co m
or from:
http://www.milonic.com/