Skip to content

Instantly share code, notes, and snippets.

@cxytomo
Created October 14, 2012 08:46
Show Gist options
  • Save cxytomo/3888047 to your computer and use it in GitHub Desktop.
Save cxytomo/3888047 to your computer and use it in GitHub Desktop.
dropdown js (only mouseover)
document.getElementsByClassName('open')[0].addEventListener('mouseover',function(){
var el,show;
el = document.getElementsByClassName('open')[0];
show = el.getElementsByClassName('dropdown-menu')[0];
show.style.display = "block";
},false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment