Lucy Posted April 8, 2015 Share Posted April 8, 2015 This (part of a function) does not work in IE8: fTiming = setTimeout( function() { fTiming = setInterval( function() { fadeEffect(tLayer); }, step); },fadeTime); 'fadeEffect' does work, and it works if I use setTimeout with it, but the above code literally does nothing, and I don't even get any error messages. It works in Firefox, Opera and Chrome. Does anyone know why? Link to comment Share on other sites More sharing options...
justsomeguy Posted April 8, 2015 Share Posted April 8, 2015 IE might have some problem using the same interval again. Link to comment Share on other sites More sharing options...
Lucy Posted April 9, 2015 Author Share Posted April 9, 2015 Hm.. it doesn't even run once, though? Also, I'm clearing the interval each time this function runs. Link to comment Share on other sites More sharing options...
Lucy Posted April 9, 2015 Author Share Posted April 9, 2015 Turns out it has a problem with using a variable as the number of milliseconds. Link to comment Share on other sites More sharing options...
dsonesuk Posted April 9, 2015 Share Posted April 9, 2015 If opacity: is used older versions of IE used a different method of applying transparency with filter: alpha(opacity=x); but with IE9 it finally (5 years+ later) followed the method used by other better browsers. Link to comment Share on other sites More sharing options...
Lucy Posted April 9, 2015 Author Share Posted April 9, 2015 Yeah, I spent ages figuring that one out, lol. This still isn't quite fixed, as it turns out - but now the IE developer tools window has gone and won't come back so I can't use console.log statements to figure out what's going on. Fun. Link to comment Share on other sites More sharing options...
justsomeguy Posted April 9, 2015 Share Posted April 9, 2015 Turns out it has a problem with using a variable as the number of milliseconds.That's not a problem, maybe the variable wasn't set when that code ran. If you're still having problems you should probably post more code. The code you posted above should be fine in general. Link to comment Share on other sites More sharing options...
Lucy Posted April 10, 2015 Author Share Posted April 10, 2015 You're right - I think the problem was actually that the variable was (accidently) a negative number. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now