PDA

View Full Version : Scrollable content II *up* button doesn't work!



rockrockon
12-08-2005, 10:12 AM
alright, here's my test page (copy/paste please)-->
removed

why does the *up* button not work?

(please view source to see the code.)

TIA! ;)

jscheuer1
12-08-2005, 04:45 PM
First off, this is wrong:


<body onload="()">

It should be just:


<body>

I don't think that is the trouble though it may be a part of it. In any case, the red part looks like it is left over from something you only removed a part of.

Here's the real problem:


function moveup(){
if (iens6&(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout("moveup()",20)

}

I don't know how it got that way but the red line is different than on the demo where it is:


if (iens6&&parseInt(crossobj.style.top)<=0)

Change it back and up will work.

rockrockon
12-08-2005, 10:58 PM
thank you jscheuer1 for your help! that fixed it!