HTML-Code:if(aepfel == hoechstZahl) alert('Du hast nun das Maximum von ' + hoechstzahl + ' Aepfeln bestellt!'); else { if(aepfel>hoechstZahl)alert('Du darfst maximal '+hoechstZahl+ ' Apfel bestellen!'); else{ uebrig=hoechstZahl-aepfel; frm.gesamt.value=uebrig; alert('Du darfst noch '+uebrig+' Äpfel bestellen!'); } }


LinkBack URL
About LinkBacks
Zitieren