The event handler "onmousewheel" is not defined in the W3C HTML
standard for <input type="text" ...>. This page lists what is standard
for the <input> tag:
http://www.w3.org/TR/REC-html40/interact/forms.html#adef-type-INPUT
FireFox deals with standards much better than IE. The fact that your
code works on IE but not FireFox proves this.
--Tim Sabin
> The following works in IE, but not in FireFox. I don't actually need
it
> to work in IE...only in FireFox.
>
> Basically scrolling up should increase the number in the text field
and
> scrolling down should reduce it.
>
> What would be the FireFox version of this?
>
> Thanks!
> Cait
>
> ---------------
>
> <script>
>
> function incQuantity(amt){
> var quant = document.getElementById("size").value;
> if( !isNaN(quant)){
> quant = Number(quant) + amt;
> if(quant<1)
> quant=1;
> document.getElementById("size").value = quant;
> }
> }
>
> function wheelIncQuantity(){
> var amt=0;
> if (event.wheelDelta >= 120)
> incQuantity(1);
> else if (event.wheelDelta <= -120)
> incQuantity(-1);
>
> return false;
> }
>
> </script>
>
>
>
> size <input onmousewheel="return wheelIncQuantity();" type="text"
> name="size2" id="size"/>
>
>
>
>
> ------------------------------------
>
> Visit http://aiaiai.com for more groups to joinYahoo! Groups Links
>
>
>
>
.