darrenterhune / droplicious Goto Github PK
View Code? Open in Web Editor NEWA drop down menu system built on prototype and script.aculo.us
A drop down menu system built on prototype and script.aculo.us
If the element which raises the dropdown menu has inside an image or other element it raises the mouseout event and the dropdown menu hides
This can be easily fixed changing the events mouseout/mouseover to mouseleave/mouseenter in the droplicious.js
Before
$$("a.drops").invoke('observe', 'mousemove', this.linkMouseOver.bind(this));
$$("a.drops").invoke('observe', 'mouseout', this.linkMouseOut.bind(this));
$$("ul.licious").invoke('observe', 'mousemove', this.submenuMouseOver.bind(this));
$$("ul.licious").invoke('observe', 'mouseout', this.submenuMouseOut.bind(this));
After
$$("a.drops").invoke('observe', 'mouseenter', this.linkMouseOver.bind(this));
$$("a.drops").invoke('observe', 'mouseleave', this.linkMouseOut.bind(this));
$$("ul.licious").invoke('observe', 'mouseenter', this.submenuMouseOver.bind(this));
$$("ul.licious").invoke('observe', 'mouseleave', this.submenuMouseOut.bind(this));
hi i found problems when the cursor leaves a drop button while submenu showup : submenu stays for the hiding effect time (instead od disapearing smoothly) and then disappear suddenly (even when the cursor returns during this time)
i tried to cancel the queued effect when mouse leaves a drop but i found some other scriptaculous (?) bugs (it seems to me it changed the submenu height) and then submenus act bad
maybe it would be possible not to queue effects and see if this bug still occure (so that effects would be cancelable)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.