IFRAME/Layer problems

He has: 1,380 posts

Joined: Feb 2002

hey guys, its post day for me! lol. basically, i got the iframe/layer to work, it just won't scroll right. it will scroll down once, but not up. heres the code to access the iframe and for the buttons:

<iframe id="newstext" src="/newstext.html" width="600" height="200" marginwidth="0" marginheight="0" hspace="1" vspace="1" frameborder="0" scrolling="no"></iframe>

<layer visibility="hide">
<div align="right">
<a href="#" onmouseover="scrollspeed=2" onmouseout="scrollspeed=0"><img src="/img/upscroll.gif" width="20" height="15" alt="[Scroll Up]" /></a>&nbsp;&nbsp;&nbsp;<a href="#" onmouseover="scrollspeed=2" onmouseout="scrollspeed=0"><img src="/img/downscroll.gif" width="20" height="15" alt="[Scroll Down]" /></a>
</div>
</layer>
'

i dont think it would have anything to do with the file it accesses, so... i tried messing with the speed of the scroll, that didn't help. any ideas would be great. thanks

He has: 1,380 posts

Joined: Feb 2002

i figured this one out on my own, stupid me.

to go up: negative interger
to go down: positive interger

DUH

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.