I created a menu in my website, this menu have 4 submenu.
But there is a problem on page reload / page load.
This is my page: http://www.substellar.it/nepsrl/
if you try to refresh the page, you'll notice that the 4 sub menus for one second are still visible.
Why?
This is the script that manages the submen:
http://www.substellar.it/nepsrl/js/menu.js
I can not solve this annoying problem graph.
This happens because you hide your menu after page is loaded. Instead of use $( ".nep-submenu1" ).hide();
, you should hidde your menu on your html or css like this:
html:
<div class="nep-submenu1" style="display: none;">
css:
.nep-submenu1{
display:none;
}
Firebase Cloud Functions: PubSub, "res.on is not a function"
TypeError: Cannot read properties of undefined (reading 'createMessageComponentCollector')
I've read here that background-position is no longer allowed to be modified for a:visited links in CSS due to a security vulnerability. (MSDN info) I've seen a few items that suggest there is a workaround with jQuery or javascript, but I'm not fluent...
I would like to open all links on a given webpage in new tabs at once using JavaScript. Lets take the Stack Overflow question list as an example.
Im having trouble with my bootstrap dropdown. it is not working when I append it with div.