これが私のコードです:-
function myFunction1()
{
current && aus[current].animate({fill: "#fff", stroke: "#999"}, 200) && (document.getElementById(current).style.display = "");
st.animate({fill: "#ccc", stroke: "#000"}, 200);
R.safari();
document.getElementById(state).style.display = "block";
current = state;
}
function myFunction2()
{
st.animate({fill: "#fff", stroke: "#999"}, 200);
R.safari();
document.getElementById(state).style.display = "";
}
setInterval(function() {
myFunction1();
alert("MOVE");
myFunction2();
}, 2000);
私がやっていることは、時間に関して2つの関数を段階的に実行することでした...だから、setIntervalイベントを使用しました.raphaeljsコードmyFunction1()
のパスの色とストロークの外観を表示する関数であり、パスの色とストロークの外観を非表示...myFunction2()
しかし、これらの関数をそのように呼び出すと、どのように機能します...関数間の警告で結果が表示される場合がありますが、私が望んでいたように、これを修正する方法???