Hi,
I want to display menu when cursor is on 'Home' option in symfony. I have created submenu using json but i am not able to display that menu. Please help me on this. Thanks in advance.
Hi,
I want to display menu when cursor is on 'Home' option in symfony. I have created submenu using json but i am not able to display that menu. Please help me on this. Thanks in advance.
You will have to do this in Javascript, not in PHP, and how you're doing it depends on whether you're using a JS library and in that case, which.
In jQuery you can do something like this:
$('#idOfHomeButton').mouseover(function(evt) {
$('#idOfMenuDiv').show();
});
$('#idOfHomeButton').mouseout(function(evt) {
$('#idOfMenuDiv').hide();
});