Hi Arsen,
There seems to have been a misunderstaniding that must be clarified.
1. My script works by click.
2. My dropdowns bind to any link on the page.
3. The position of my dropdowns can be customized (I used css for that, but there's a javascript option, see below).
4. My js isn't that heavy.
5. It is true that my script doesn't work with Internet Explorer (it works with Edge), but that's because of a requirement that was not met by the old DD-script ('hide all opened dropdowns in one click').
6. My own version of the DD-code you mention has been in my script(s) all the time.
Anyhow, this thing is beginning to interest me. I made a new script that produces what you showed in your PNG, see this.
Usage:
onclick="open_element('dropdown ID', 'right_of_link_bottom')"
onclick="open_element('dropdown ID', 'left_of_link_bottom')"
onclick="open_element('dropdown ID', 'right_of_link_top')"
onclick="open_element('dropdown ID', 'left_of_link_top')"
The only (important!) thing that must be achieved yet is to make it so that the dropdowns will not be partially cut off when small mobile devices are used. I can easily do it with CSS3 media queries, but you probably want to do it with javascript.
Bookmarks