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
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