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

Thread: Stop on mouseover on the content

  1. #1
    Join Date
    Jul 2008
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Stop on mouseover on the content

    1) Script Title: Featured Content Slider

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

    3) Describe problem:

    It is not a problem, it's more like a feature request.

    Can this be done: when you move your mouse over the content then the sliding stops and when you move your mouse off the content then it starts sliding again (maybe with a delay)?

    Also when you click on the pageination link the content shows and the sliding stops, and you have to restart it, I saw how it can be changed but if you could have a timer to restart sliding so when you move your mouse off the pageination link it would restart the sliding after some time so sliding would not stop would be so much better. Can this be done?

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

    Default

    In contentslider.js find the following(in black), and put in the red.
    Code:
    		/*
    		pdiv[setting.revealtype]=function(){
    			featuredcontentslider.cleartimer(setting, window["fcsautorun"+setting.id])
    		}
    		sliderdiv["onclick"]=function(){ //stop content slider when slides themselves are clicked on
    			featuredcontentslider.cleartimer(setting, window["fcsautorun"+setting.id])
    		}
    
    		*/
    		sliderdiv["onmouseover"]=function(){ //stop content slider when slides themselves are clicked on
    			featuredcontentslider.cleartimer(setting, window["fcsautorun"+setting.id])
    		}
    		sliderdiv["onmouseout"]=function(){ //stop content slider when slides themselves are clicked on
    			featuredcontentslider.jumpTo(setting.currentpage, window["fcsautorun"+setting.id])
    		}
    Last edited by Nile; 07-14-2008 at 12:38 AM.
    Jeremy | jfein.net

  3. The Following User Says Thank You to Nile For This Useful Post:

    felyx (07-14-2008)

  4. #3
    Join Date
    Jul 2008
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Now it stops when I move my mouse over thanks, but I would like the script to start sliding again when I move my mouse cursor outside the content div and I want this for the pagination links aswell. Can you pelase help me with that aswell?

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

    Default

    It will work for the pagination, now I have to get it to start again.
    Edit: Sorry, I cant seem to figure it out
    Last edited by Nile; 07-14-2008 at 12:33 AM.
    Jeremy | jfein.net

  6. #5
    Join Date
    Jul 2008
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thank you for your help Nile I am looking for this so long I can't even remember how long exactly.

    Btw I did not saw how it will work for the pagination I only saw this sentence in your post:

    And to make it continue even when you've clicked on the pagination:

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

    Default

    Ok, sorry. That was my mistake. Delete all the changes I made to your script(if you applied them). Then find this line in your code(black), and add the lines in red.
    Code:
    		/*
    		pdiv[setting.revealtype]=function(){
    			featuredcontentslider.cleartimer(setting, window["fcsautorun"+setting.id])
    		}
    		sliderdiv["onclick"]=function(){ //stop content slider when slides themselves are clicked on
    			featuredcontentslider.cleartimer(setting, window["fcsautorun"+setting.id])
    		}
    
    		*/
    This will only make it keep going. I will still look into making it pause. But I've tried everything I've got.
    Jeremy | jfein.net

  8. #7
    Join Date
    Jul 2008
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Don't apologise, you don't have to. Thank you for even trying to help me! Hope someone can figure it out.

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

    Default

    Did you try the script I just gave you? This one will stop if from stopping when you click on the pagination.
    Jeremy | jfein.net

  10. #9
    Join Date
    Jul 2008
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    The problem is that I need that delay with both methods. I don't ever want it to constantly stop sliding just for a predefined time interval. When I move my mouse over the content I want it to stop until I move my mouse outside of the content div then it should restart and when I click a pagination link I want it to stop but start again with a delay, lets say 10 sec so I can either move my mouse over the content div to stop sliding and start it again when moving my mouse out of the div or wait 10 seconds read what I want and let it start sliding again.

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

    Default

    I know what you mean, but I can't solve that as I said above.
    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
  •