GumaxDD: Faster Dropdown
GumaxDD: Faster Dropdown
Hello
I don't need any roll-down-effect or similar. A simple and fast Dropdown would be nice. Is this possible? Where?
Thanks!
Bruno
I don't need any roll-down-effect or similar. A simple and fast Dropdown would be nice. Is this possible? Where?
Thanks!
Bruno
Re: GumaxDD: Faster Dropdown
The effect comes from two JavaScripts under folder js, they are popular JavaScript Library, I didn't modify anything of it, you can hack into it if you have time and JavaScript skills.
Re: GumaxDD: Faster Dropdown
Thanks for the info!
My changes in jquery.droppy.js
- Timer for hiding the menu set to 0 instead of 500
- options.speed can be replaced (milliseconds for closing, 0=Default), it's o.k. this way since very fast
- options.speed replaced by 1, since I want it very fast
Bruno
My changes in jquery.droppy.js
Code: Select all
function hide() {
var subnav = getSubnav(this);
if (!subnav) return;
$.data(subnav, 'cancelHide', false);
setTimeout(function() {
if (!$.data(subnav, 'cancelHide')) {
$(subnav).slideUp(options.speed);
}
}, 500);
}
- options.speed can be replaced (milliseconds for closing, 0=Default), it's o.k. this way since very fast
Code: Select all
function show() {
var subnav = getSubnav(this);
if (!subnav) return;
$.data(subnav, 'cancelHide', true);
$(subnav).css({zIndex: zIndex++}).slideDown(options.speed);
if (this.nodeName.toLowerCase() == 'ul') {
var li = getActuator(this);
$(li).addClass('hover');
$('> a', li).addClass('hover');
}
}
Bruno
Re: GumaxDD: Faster Dropdown
And some more settings for interested users: gumax_droppy.css
- 5e5a5a = dropdown color
- 999 / eee = color background/font when selected
- 0.9 = opacity
I set opacity = 1, since it's more clear, but: Your settings are nicer
Bruno
Code: Select all
#gumax-nav li.hover a, #gumax-nav ul li a { background-color: #5e5a5a; /* drop down background */ }
#gumax-nav a.hover, #gumax-nav ul a.hover { background-color: #999; color: #eee; }
#gumax-nav ul { border: none; opacity: 0.9; filter: alpha(opacity=90); }
- 999 / eee = color background/font when selected
- 0.9 = opacity
I set opacity = 1, since it's more clear, but: Your settings are nicer
Bruno
Re: GumaxDD: Faster Dropdown
Nice work ...
Also, in GuMax.php, there is speed that you can tweak,
The "speed:100" is the menu speed.
Also, in GuMax.php, there is speed that you can tweak,
Code: Select all
$(function() { $('#gumax-nav').droppy({speed: 100}); });
Re: GumaxDD: Faster Dropdown
Ah! Yes... perhaps it's more logical to change the speed when calling the function instead of changing the function itself
Re: GumaxDD: Faster Dropdown
I can see many users put attention on this speed, it might be a good idea to move this speed to LocalSettings.php, and this will be easy for people...
Re: GumaxDD: Faster Dropdown
What do you think about a setting.php or settings.css (don't know if possible) for each of your styles? There you can put defaultvalues and explain them.
I preferr not to overload LocalSettings ... and this way the code would easily be ignored when using another style.
Anyway: Enjoy your ideas, concept, job & hobby
Bruno
I preferr not to overload LocalSettings ... and this way the code would easily be ignored when using another style.
Anyway: Enjoy your ideas, concept, job & hobby
Bruno
Re: GumaxDD: Faster Dropdown
Your idea is good too, however users might forget the extra setting.php file, I think LocalSetting.php is OK, since it only be loaded once, but the setting.php will be loaded every page though.
I will think another way... keep it simple for now...
I will think another way... keep it simple for now...
Re: GumaxDD: Faster Dropdown
LocalSetting.php will be loaded every page too, as much as I understood from php... since there is no server side cache or similar...