いくつかの機能を追加setTimeout
しました.1つは正常に実行されていますが、別の機能はまったく実行されていないようです. 全く同じなのでなんとも言えません。私のコードの下に見つけてください。
これは、私が見ている setTimeout 行です。これは正常に動作します。
var fctyhov = function (z) {
$(deptmts[i]).hover(
function(){
$(fcultys[z]).stop(true).animate({color: col1});
setTimeout(function(){$(z).css("text-shadow", tsh1);},100);},
function(){
$(fcultys[z]).stop(true).animate({color: col3});
setTimeout(function(){$(z).css("text-shadow", tsh2);},100);}
);
};
しかし、これはそうではありません
var facdth = function (y,x,w) {
$(y).hover(
function(){
$(x).stop(true).fadeTo("fast", 1);
$(w).stop(true).delay().animate({color:col1});
$(y).stop(true).animate({color: col1});
setTimeout(function(){$(y).css("text-shadow", tsh1);},100);},
function(){
$(x).stop(true).fadeTo("slow", 0);
$(w).stop(true).delay().animate({color:col2});
$(y).stop(true).animate({color: col3});
setTimeout(function(){$(y).css("text-shadow", tsh2);},100);}
);
};
編集 .animate({color}) を機能させるプラグインを追加しました。これらの行は正常に機能しています。