On two pages of my site, I don’t have scrolling available. On these pages I want to show/hide the header when the mousein or mouseout events happen for the header section. I wrote simple code to do this… mousein-> .show(), mouseout-> .hide(). However once I called .hide() upon mouseout, I stopped receiving mouse in events for the element.
Should I be changing “display” or something else, instead of using .hide() perhaps ?
But if you want to use Velo or you need to use. First of all no .hide() function doesn’t move elements positions. It’s only hiding the element think like opacity 0.
What you can do is. Inside your header add a Strip and change your header background opacity to 0. With this when mouse in header show strip and when mouse out hide strip. With this your header will be there but it will not be visible but your strip will be hidden when mouse goes out.
Thank you Velo Ninja. If we put the “strips” into the header, they have the same problem as any other part of the header. Once the header is hidden or collapsed, it doesn’t receive mousein events.
The code you sent works to hide or show, but we still have the problem that we cannot get a mousein event to trigger the expand function.
Thank you Velo Ninja. If we put the “strips” into the header, they have the same problem as any other part of the header. Once the header is hidden or collapsed, it doesn’t receive mousein events.
The code you sent works to hide or show, but we still have the problem that we cannot get a mousein event to trigger the expand function.
Here is working code, placed only on the two pages that need it, not in masterpage.js:
var ctrls = 1 ; var animation = ‘zoom’ ; var showHdr = 1 ; var hdrFxOptions =
{ “duration” : 500 ,
“delay” : 0
}; var hdrLogs = 1 ;