Thank you very much Bob, it works!
Dear Bob, thanks for your reply.
Unfortunately, the website I’m working on is currently under construction and not visible.
Anyway, in the main menu, I put a link with this code:
<a onclick="wptbbar_show1()">Open topbar 1</a>
which is working great and displays the topbar 1.
In the close button of this topbar, by default, there is this code:
<img onclick="wptbbar_hide1()" src="..."></img>
I would like to join the show and hide JS functions in a single “toggle” one, that could both show or hide the bar depending on its status.
Thanks in advance