I am having one heck of a time with hoverIntent. I keep getting "Error: Object doesn't support this property or method" popping up. If I change .hoverIntent to .hover, it "works". I've tried the regular file and the minified file and neither work. I downloaded them from here
I only have 2 scripts on the page. (this is in the MVC masterpage that I am trying to do this)
<script src="/Scripts/jquery-1.3.2.js"></script>
<script src="/Scripts/jquery.hoverIntent.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#mailImage").hoverIntent(showMailHover, hideMailHover);
});
function showMailHover() {
alert('Hover');
}
function hideMailHover() {
alert('Leave');
}
</script>
here's what my navigation item looks like that I'm trying to attach this this to.
<ul>
<li id="mailImage">
<img style="padding-top: 10px;" align="left" height="24" width="24" src="/content/images/icons/envelope.png" />
</li>
...
</ul>
Ideally, I'm trying to create a drop down navigation. But, I can't get hoverIntent to work on my most basic tests in order to move forward with it. Any ideas on why this isn't working?