Click to See Complete Forum and Search --> : fade script help


xataku_nakusute
08-15-2003, 04:31 AM
whats wrong with this?

function clean(elmnt)
{
interval=setInterval("makeclean()",10)
}

function foggy(elmnt)
{
clearInterval(interval);
document.all(elmnt).filters.alpha.opacity="0";
}
function makeclean()
{
if (document.all(elmnt).filters.alpha.opacity<100)
{
document.all(elmnt).filters.alpha.opacity+=5
}
else if (window.interval)
{
clearInterval(interval)
}
}


the scripts intensions are to fade the element as specified between the ()'s, however, such is not working correctly....

please help

Fang
08-15-2003, 07:09 AM
It's document.all[elmnt].filters.alpha.opacity="0";

xataku_nakusute
08-15-2003, 12:30 PM
thank you, i shall test it out