開発サイトhttp://www.new.ianroyal.coのメイン サイト ロゴのホバー効果に onmouseover を使用しています。
onmouseover はサイトのロゴ画像を瞬時に変更します。jQuery を使用せずにトランジション効果 (フェードイン、または一般的にトランジション速度を遅くする) を適用できるかどうか疑問に思っていました。
これが私のコードです:
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" ONMOUSEOVER='ian.src="http://new.ianroyal.co/wp-content/themes/twentytwelve/images/IN-Logo.png" ' ONMOUSEOUT='ian.src="http://new.ianroyal.co/wp-content/themes/twentytwelve/images/IN-Logo1.png"'>
<img src="http://new.ianroyal.co/wp-content/themes/twentytwelve/images/IN-Logo1.png" NAME="ian" class="header-image" alt="Ian Nelson" />
</a>
私は検索して検索しましたが、まだ十分に把握していないjQueryだけが解決策のようです。
ありがとうございました