Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Manual Scroller onMousever not on click

  1. #1
    Join Date
    Apr 2007
    Posts
    26
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Manual Scroller onMousever not on click

    1) Script Title: Manual Scroller

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

    3) Describe problem: Installed script and works fine, but want to have layer scroll when you mouseover the Down or Up text instead of clicking on the text. Additionally, it should stop scrolling on mouseOut.

    Please advise. Greatly appreicated.

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Then create an onmouseover attribute instead of the onclick:
    Code:
    <a href="#" onmouseover="movedown()">Down</a>  <a href="#" onmouseover="moveup()">Up</a> 
    <a href="#" onmouseover="stopscroll()">Stop</a>  <a href="#" onmouseover="movetop()">Top</a>
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. #3
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Or you can even do this:
    Code:
    <a href="javascript:void(0);" onmouseover="movedown()" onmouseout="stopscroll()">Down</a><
    a href="javascript:void(0);" onmouseover="moveup()">Up</a> 
    <a href="javascript:void(0);" onmouseover="movetop()">Top</a>
    Also be sure to include void(0).
    Jeremy | jfein.net

  4. #4
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Quote Originally Posted by Nile View Post
    Or you can even do this:
    Also be sure to include void(0).
    Why?..what if I'll have a link to fire as normal ones.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  5. #5
    Join Date
    Apr 2007
    Posts
    26
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thank you!!! These are great. Worked perfectly.

  6. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Quote Originally Posted by rangana View Post
    Why?..what if I'll have a link to fire as normal ones.
    Can you rephrase that? I didn't quite get "fire" and the "normal ones".
    Quote Originally Posted by bellbell View Post
    Thank you!!! These are great. Worked perfectly.
    Who are you talking to?
    Jeremy | jfein.net

  7. #7
    Join Date
    Apr 2007
    Posts
    26
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    What's the purpose of the void(0). I just did it this way:
    <a href="#" onmouseover="movedown()" onmouseout="stopscroll()">, etc...

  8. #8
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Thats fine, void(0) doesn't do anything, so if that thing was at the bottom of the page, and you had # as the href it'd take you to the top, but it you have javascript:void(0), it wouldn't do anything. So did you use my script or rangana's script?
    Jeremy | jfein.net

  9. #9
    Join Date
    Apr 2007
    Posts
    26
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Yours minus the void element....where the two functions are combined.
    Thx.

  10. #10
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Anytime. I'm just suggesting using it but then again, Its your choice.
    Jeremy | jfein.net

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
  •