No, its working, I just wanted to make sense of it.
So for non-IE browsers, it needs to be between those tags but not a comment for the non-IE browsers to read it and IE to skip over it...
...and for IE browsers it needs to be inside comments to stop other browsers reading it?
That's how I now understand it.![]()
Yes
---------- Post added at 12:52 ---------- Previous post was at 12:47 ----------
How would I add a transition to that to slow its appearance down?![]()
Use a javascript timer to slowly turn up the opacity.
Code:
function fadeMeIn(id) {
var el = document.getElementById(id);
el.cssText = "opacity: 0;visibility:visible;";
var counter = 0;
var interval = setInterval(function() {
counter += 10;
el.cssText = "opacity: " + (counter/100);
if(counter == 100) {
clearInterval(interval);
el = null;
}
}, 100);
}
off the top of my head and untested, but something to that effect. Some browsers support css animations, which you can look into and some browsers (pre IE 9/10) do not support opacity, so will have to use filter :roll:
Alternatively use jQuery.