Mhtml
12-20-2002, 03:57 AM
Why can't you use for to "fade" an object?
Can you tell me what is happening in this, also is this the only way? (May not be exactly this..trying to remember)
function show(){
Interval = setInterval("fadeit(TheObj)", 10)
}
fadeit(){
if (TheObj.filters.alpha.opacity<100) {
TheObj.filters.alpha.opacity+=5
}else{
close.Interval //or something I can't remember
}
}
Ok I have almost no Javascript knowledge what so ever yet so don't be to heavy with the explanation.
Also a javascript tutorial would be great, not w3schools.com though the tutorial there is horrible, it teaches nothing on js and is boring.
Can you tell me what is happening in this, also is this the only way? (May not be exactly this..trying to remember)
function show(){
Interval = setInterval("fadeit(TheObj)", 10)
}
fadeit(){
if (TheObj.filters.alpha.opacity<100) {
TheObj.filters.alpha.opacity+=5
}else{
close.Interval //or something I can't remember
}
}
Ok I have almost no Javascript knowledge what so ever yet so don't be to heavy with the explanation.
Also a javascript tutorial would be great, not w3schools.com though the tutorial there is horrible, it teaches nothing on js and is boring.