Loading ...
Sorry, an error occurred while loading the content.
 

How to continuously call YAHOO.util.Scroll()???????

Expand Messages
  • tommykim07
    How can I continously call var anim = new YAHOO.util.Scroll( YahooMessengerMain , { scroll: { by: [0, -30] } }); YAHOO.util.Event.on(TopScrollBar, mouseover ,
    Message 1 of 4 , Jan 3, 2007
      How can I continously call

      var anim = new YAHOO.util.Scroll('YahooMessengerMain', { scroll: { by:
      [0, -30] } });
      YAHOO.util.Event.on(TopScrollBar, 'mouseover', anim.animate, anim,
      true);

      when the mouse is over a picture of up arrow? I noticed that it will
      only trigger once when I have the mouse over the arrow. Then in order
      to scroll further up I have to take the mouse off of the arrow then
      put it back on and it will scroll for another 30px and stop. Is there
      a way to continuously keep calling so that it will keep scrolling
      while the mouse is on the arrow???
    • dav.glass@yahoo.com
      I haven t tried this yet, but you could do something like this: var anim_running = false; var anim = new YAHOO.util.Scroll( YahooMessengerMain , { scroll: {
      Message 2 of 4 , Jan 3, 2007
        I haven't tried this yet, but you could do something like this:

        var anim_running = false;

        var anim = new YAHOO.util.Scroll('YahooMessengerMain', { scroll: { by: [0, -30] } });
        anim.onComplete.subscribe(function() {
            if (anim_running) {
                anim.animate();
            }
        });

        YAHOO.util.Event.on(TopScrollBar, 'mouseover', function() {
            anim_running = true;
            anim.animate();
        }, anim, true);

        YAHOO.util.Event.on(TopScrollBar, 'mouseout', function() {
            anim_running = false;
        });

        Hope that helps...
        Dav

         
        Dav Glass
        dav.glass@...
        davglass.com
        618.694.3476

        + Windows: n. - The most successful computer virus, ever. +
        + A computer without a Microsoft operating system is like a dog
        without bricks tied to its head +
        + A Microsoft Certified Systems Engineer is to computing what a
        McDonalds Certified Food Specialist is to fine cuisine +


        ----- Original Message ----
        From: tommykim07 <blademaster_orcs@...>
        To: ydn-javascript@yahoogroups.com
        Sent: Wednesday, January 3, 2007 11:04:59 AM
        Subject: [ydn-javascript] How to continuously call YAHOO.util.Scroll()???????

        How can I continously call

        var anim = new YAHOO.util.Scroll('YahooMessengerMain', { scroll: { by:
        [0, -30] } });
          YAHOO.util.Event.on(TopScrollBar, 'mouseover', anim.animate, anim,
        true);

        when the mouse is over a picture of up arrow? I noticed that it will
        only trigger once when I have the mouse over the arrow. Then in order
        to scroll further up I have to take the mouse off of the arrow then
        put it back on and it will scroll for another 30px and stop. Is there
        a way to continuously keep calling so that it will keep scrolling
        while the mouse is on the arrow???




        Yahoo! Groups Links

        <*> To visit your group on the web, go to:
            http://groups.yahoo.com/group/ydn-javascript/

        <*> Your email settings:
            Individual Email | Traditional

        <*> To change settings online go to:
            http://groups.yahoo.com/group/ydn-javascript/join
            (Yahoo! ID required)

        <*> To change settings via email:
            mailto:ydn-javascript-digest@yahoogroups.com
            mailto:ydn-javascript-fullfeatured@yahoogroups.com

        <*> To unsubscribe from this group, send an email to:
            ydn-javascript-unsubscribe@yahoogroups.com

        <*> Your use of Yahoo! Groups is subject to:
            http://docs.yahoo.com/info/terms/


      • tommykim07
        Tried it but it didn t work. Any other suggestions? Is there another way??
        Message 3 of 4 , Jan 3, 2007
          Tried it but it didn't work. Any other suggestions? Is there another
          way??
        • dav.glass@yahoo.com
          Here is a working example based on the code I sent earlier.. http://blog.davglass.com/files/yui/scroll/ Hope that helps.. Dav Glass dav.glass@yahoo.com
          Message 4 of 4 , Jan 3, 2007
            Here is a working example based on the code I sent earlier..

            http://blog.davglass.com/files/yui/scroll/

            Hope that helps..
             
            Dav Glass
            dav.glass@...
            davglass.com
            618.694.3476

            + Windows: n. - The most successful computer virus, ever. +
            + A computer without a Microsoft operating system is like a dog
            without bricks tied to its head +
            + A Microsoft Certified Systems Engineer is to computing what a
            McDonalds Certified Food Specialist is to fine cuisine +


            ----- Original Message ----
            From: tommykim07 <blademaster_orcs@...>
            To: ydn-javascript@yahoogroups.com
            Sent: Wednesday, January 3, 2007 12:53:05 PM
            Subject: [ydn-javascript] Re: How to continuously call YAHOO.util.Scroll()???????

            Tried it but it didn't work. Any other suggestions? Is there another
            way??





            Yahoo! Groups Links

            <*> To visit your group on the web, go to:
                http://groups.yahoo.com/group/ydn-javascript/

            <*> Your email settings:
                Individual Email | Traditional

            <*> To change settings online go to:
                http://groups.yahoo.com/group/ydn-javascript/join
                (Yahoo! ID required)

            <*> To change settings via email:
                mailto:ydn-javascript-digest@yahoogroups.com
                mailto:ydn-javascript-fullfeatured@yahoogroups.com

            <*> To unsubscribe from this group, send an email to:
                ydn-javascript-unsubscribe@yahoogroups.com

            <*> Your use of Yahoo! Groups is subject to:
                http://docs.yahoo.com/info/terms/


          Your message has been successfully submitted and would be delivered to recipients shortly.