A Simple hide and show javascript code

function show(menuName) {
var myVar= document.getElementById(menuName);
myVar.style.display = ‘block’;
}

function hide(menuName) {
var myVar = document.getElementById(menuName);
myVar.style.display = ‘none’;
}

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit
  • Webnews
  • YahooMyWeb
  • Ask
  • blinkbits
  • Technorati