woothemes の Swatch テンプレートを使用しています。ロゴ コンポーネントを変更したので、次のスクリプトをロゴに追加したいと考えています。このスクリプトを header.php にコピーしました。
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(function coba() {
// set opacity to nill on page load
$("#logo a span").css("opacity","0");
// on mouse over
$("#logo a span").hover(function () {
// animate opacity to full
$(this).stop().animate({
opacity: 1
}, 'slow');
},
// on mouse out
function coba() {
// animate opacity to nill
$(this).stop().animate({
opacity: 0
}, 'slow');
});
});
</script>
しかし、実行すると、他のスクリプトが無効になりました。それらのすべて、スライダー、prettyphoto、コメントなどの js。それらすべてを一度にアクティブ化するにはどうすればよいですか? ありがとう