hoverintent jQuery を自分のサイトに統合する作業を行っています。コードにプラグインしましたが、Chrome デバッガーからエラーが発生します。エラーは読み取りますUncaught TypeError: Cannot use in operator to search for display in undefined
。何が悪いのかわかりません。これが私のコードです。
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js">
<script type="text/javascript" src="http://cherne.net/brian/resources
/jquery.hoverIntent.js"></script>
</script>
<script type="text/javascript" >
$(document).ready(function() {
var config = {
sensitivity: 3,
interval: 200,
over: $(this).animate({opacity: 1}, 500),
timeout: 500,
out: $(this).animate({opacity: 0}, 500)
};
var config_1 = {
sensitivity: 3,
interval: 200,
over: $(this).animate({opacity: 1}, 500),
timeout: 500,
out: $(this).animate({opacity: 0}, 500)
};
$('#form1').hoverIntent(config);
$('#form2').hoverIntent(config_1);
});
</script>
これがhtmlコードです
<div id="div1">
<form action="" id="form1" method="post">
<textarea id="inputbox1" name="what_i_do" maxlength="160" value=""><?php echo
$profile_data['what_i_do']; ?></textarea>
<input type="submit" id="button1" value="Edit">
</form>
</div>
<div id="div2">
<form action="" id="form2" method="post">
<textarea id="inputbox2" name="fait_accompli" maxlength="160" value=""><?php echo
$profile_data['fait_accompli']; ?></textarea>
<input type="submit" id="button2" value="Edit">
</form>
</div>