View Full Version : IFRAME scroller reverse direction

10-19-2006, 02:45 PM
1) Script Title:
IFRAME Scroller script

2) Script URL (on DD):

Script URL (my suggestion)

3) Describe problem:

I think "IFRAME Scroller" is a very nice script, but it lacks the possibility to reverse the scrolling direction. I added a very simple code that can be seen in the URL http://www.escolaviva.com.br/external_arrow.htm, and it works nicely, but only in IE, not in Firefox or Opera, though the script itself continues to work. It can be seen after the <!-- Begin modification --> tag in the code. Can anyone fix this?

Thanks in advance,

Marcelo Mig

10-20-2006, 12:59 AM
Just complementing my post, to reverse the direction of the scroller is very useful to read a missed topic without having to wait the whole scroll again.

The piece of code that works only in IE is simply this:
<img src="images/arrow_updown89.gif" onMouseOver="javascript:scrollspeed=-scrollspeed">

Why not in Opera or Firefox?

10-20-2006, 01:09 AM
Well, if you change onmouseOver="scrollspeed=0" to onmouseOver="scrollspeed=-1" it works in Opera(only browser I tested). As for the why only IE question. IE is a complete idiot. That code should not do that. It should just pause the scroller.

10-20-2006, 01:27 AM
Hi blm126,

I didn't change onmouseOver="scrollspeed=0" to onmouseOver="scrollspeed=-1. I added a small fixed image so that when I put the mouse over the scroll, it pauses, as usual, and when I put the mouse over the image, the scroll reverses.

I have just discovered the problem: it is about the <div width=100%> tag I used: IE rendered it in a manner that it didn't overlap the image (but that was nice!), and Firefox and Opera in a different way.

If you want to see it working nicely in all browsers, please check this URL:

I think it is an easy and good improvement for the script.