Results 1 to 4 of 4

Thread: IFRAME scroller reverse direction

  1. #1
    Join Date
    Nov 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default IFRAME scroller reverse direction

    1) Script Title:
    IFRAME Scroller script

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...e-scroller.htm

    Script URL (my suggestion)
    http://www.escolaviva.com.br/external_arrow.htm

    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

  2. #2
    Join Date
    Nov 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?

  3. #3
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    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.

  4. #4
    Join Date
    Nov 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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:
    http://www.escolaviva.com.br/external_arrow_nice.htm

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •