I have a dropdown CSS menu with a bit of Javascript. I need to add a delay to it so that the menu does not disappear immediately when the mouse is moved away. I found in the forums that it should be done using setTimeout function. However it does not work for my menu, it closes without any delay. I don't know Javascript, so I can't figure out where the mistake is. Below I paste two pieces of code, the original one and the one with setTimeout. Can anybody explain me what is wrong and how to correct it?
Bookmarks