jQuery(
function
($){
varindex=0;
varmaximg=5;
$(
"#myjQueryNavli"
).hover(
function
(){
if
(MyTime){
clearInterval(MyTime);
}
index=$(
"#myjQueryNavli"
).index(
this
);
MyTime=setTimeout(
function
(){
ShowjQueryFlash(index);
$(
'#myjQueryContent'
).stop();
},400);
},
function
(){
clearInterval(MyTime);
MyTime=setInterval(
function
(){
ShowjQueryFlash(index);
index++;
if
(index==maximg){index=0;}
},3000);
});
$(
'#myjQueryContent'
).hover(
function
(){
if
(MyTime){
clearInterval(MyTime);
}
},
function
(){
MyTime=setInterval(
function
(){
ShowjQueryFlash(index);
index++;
if
(index==maximg){index=0;}
},3000);
});
varMyTime=setInterval(
function
(){
ShowjQueryFlash(index);
index++;
if
(index==maximg){index=0;}
},3000);
});
functionShowjQueryFlash(i){
$(
"#myjQueryContentdiv"
).eq(i).animate({opacity:1},1000).css({
"z-index"
:
"1"
}).siblings().animate({opacity:0},1000).css({
"z-index"
:
"0"
});
$(
"#myjQueryNavli"
).eq(i).addClass(
"current"
).siblings().removeClass(
"current"
);
}