I have got a problem.
In my forum software the DOCTYPE is for some reason set to XHTML
Now I have implemented a scroller using setInterval. This scroller works fine if there is no DOCTYPE specified or even if I specify it as HTML 4.01
The scroller does not work if the Doctype is XHTML.
Is there any reason for that? Why is that so? Which script do I have to use to make 'setInterval' work as it is supposed to?
here the script:
try it out under:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
bb = 0;
aa = document.body.scrollTop + 17;
//cc = window.event.x ;
bb -= aa;
bb *= 0.8;
bb += aa;
name1.style.top = bb+9;
'name1' is the name of a <DIV> tag I am using for an image.
Any ideas, suggestions?