Hi,
wenn ich ein Interval mit clearInterval() gestoppt habe, kann ich scheinbar die Interval-Variable nicht mehr nutzen.
Du solltest lernen, Probleme vernünftig zu analysieren und sinnvolles Debugging zu betreiben. „Scheinbar“-Aussagen sind dabei fehl am Platze.
opacity = opacity +0.05;
if ( opacity == 1.0 ) {
Vermutlich liegt das Problem schlicht darin, dass du versuchst einen Float-Wert auf exakte Gleichheit zu prüfen. Recherchiere bitte, warum das problematisch ist.
MfG ChrisB
--
Autocomplete has spoiled me to a point where it happens every so often that I encounter a CAPTCHA, and I just type in the first character … and then wait for the rest of the code to be automatically suggested :/
Autocomplete has spoiled me to a point where it happens every so often that I encounter a CAPTCHA, and I just type in the first character … and then wait for the rest of the code to be automatically suggested :/