[jQuery] stop function by mouseOver
Hello, i m real desperate about this. with my function i displayed the content of my 3 DIV elements in a interval. it works fine. since a long time im trying to prog a feature wich make a displayStop by a mouseover. i need this to listen the long content in a div. after i moved out of the div the function should be run again. but how? here is my code: http://www.w3.org/1999/xhtml";> http://code.jquery.com/jquery-latest.js";> function fadeEngine(x) { var total_divs=3; var y=x; if(x==total_divs) {y=1;} else {y++; } $("#fade"+x).css("display","none"); $("#fade"+y).fadeIn("slow"); setTimeout('fadeEngine('+y+')',3000); } fadeEngine(0); Content one Content two Content three can someone help me please i dont know how to fineshed the code in jQ thanks a lot
[jQuery] stop by mouseover and run by mouseout
hi, i have a function who displayed alternate content from 3 DIVs with a fadeIn Now i want to try, that the display rotation stoped if my mousepointer goes in the DIV but i doesnt work. whats my misstake? http://www.w3.org/1999/xhtml";> http://code.jquery.com/jquery-latest.js";> function fadeEngine(x) { var total_divs=3; var y=x; if ( !over ) { if(x==total_divs) y=1; else y++; $("#fade"+x).css("display","none"); $("#fade"+y).fadeIn("slow"); $("#container").hover( function() { over = this.id; }, function() { over = false; }); } setTimeout('fadeEngine('+y+')',3000); } fadeEngine(0); Content one Content two Content three