I'm not sure about the yesprevnext global which I used to alternate to get the effect of moving up once in the search history. For some reason each up/down wheelroll results in two onmousewheel events. Is a global the best way to take care of it?
Thad
Change: * Navigate previous searches with ctrl-P and ctrl-N, the Up/Down arrows, or the Mouse wheel.
REMOVE: Type <nobr>"!<em>prefix</em>"</nobr> to see only matching entries.
It doesn't seem to work anymore and launches a google ifl search.
var yesprevnext = false;
function mousewheel()
{
if (event.wheelDelta >= 120 && yesprevnext) {
prevnext(-1);
yesprevnext = false;
}
else if (event.wheelDelta <= -120 && yesprevnext) {
prevnext(1);
yesprevnext = false;
}
else
yesprevnext = true;
return false;
}
<!--
document.write(
(multiline ? '<textarea ' : '<input ')
+ 'name=q '
+ 'type=text '
+ ' '
+ 'class=txtfld '
+ 'onfocus=clr() '
+ 'ondragstart="selfdrag=true;" '
+ 'ondragend="selfdrag=false;" '
+ 'ondragover=dodragover() '
+ 'ondrop=dodrop() '
+ 'onblur=rst() '
+ 'onhelp=showpop() '
+ (calStart ? 'ondblclick' : 'oncontextmenu') + '="return showcal();" '
+ 'onmousewheel=mousewheel() '
+ ' '
+ ' '
+ 'value="" '
+ 'cols=20 '
+ 'rows=1 '
+ 'maxlength=256 '
+ 'tabindex=0 '
+ 'autocomplete=' + (autocomplete ? 'on' : 'off')
+ (multiline ? "></textarea>" : ">"));
New Preference: dragdropautosearch = true
// Don't invoke the default search if they are holding down the shift key
// when they drop the selection. Invert this if dragdropautosearch is false.
if ( !window.event.shiftKey && dragdropautosearch)
mnu( "", "");
else if(window.event.shiftKey && !dragdropautosearch)
mnu( "", "");
