Results 1 to 2 of 2
Jun 5, 2012, 13:27 #1
- Join Date
- Jun 2012
- 0 Post(s)
- 0 Thread(s)
Hover Menu, Show/Hide Div, Bootstrap Tab
Im trying to create a Flyout Menu where the 2nd level is a big div where the user can do stuff. Think of it as a product page. You have 3 products and the flyout presents features and info on the product. At the bottom there could be a DownloadNow-Button or something.
So the flyout has to be visible when either hovering over the corresponding tab button or the flyout itself. It should be automatically invisible at any other time.
It has to be done with the Bootstrap-Tab plugin.
Rough jsFiddle: http://jsfiddle.net/QPfWb/2/
Aaand now im stuck. The flyout should disappear when not hovering over button or flyout itself. I tried some mouseLeave functions but with no success.
Jun 5, 2012, 14:37 #2
- Join Date
- Mar 2009
- Melbourne, AU
- 396 Post(s)
- 6 Thread(s)
Hi chronixx. Welcome to the forums.
This can be done with CSS alone, but it looks like you are wanting to do it the jQuery instead. If so, we can move this to the JS forum. At the moment, the JS tells the browser to "show" the box, but doesn't tell it to hide it again afterwards.
The problem with using JS for this is that people without JS won't have access to the menu. You also have to consider people on mobiles, who can't hover.