ボタンをクリックして展開される非表示の連絡先フォームがあります。そのフィールドは CSS 背景画像として設定され、切り替えられた div よりも少し遅れて表示されます。
このセクションでこのスニペットを使用していました<head>
が、運がありませんでした(キャッシュをクリアした後):
<script>
$(document).ready(function() {
pic = new Image();
pic2 = new Image();
pic3 = new Image();
pic.src="<?php bloginfo('template_directory'); ?>/images/inputs/input1.png";
pic2.src="<?php bloginfo('template_directory'); ?>/images/inputs/input2.png";
pic3.src="<?php bloginfo('template_directory'); ?>/images/inputs/input3.png";
});
</script>
私はライブラリとして jQuery を使用していますが、この号の整理にも jQuery を使用できればすばらしいと思います。
ご意見ありがとうございます。