Hello. I put common(for all my content pages) js to head section at my masterpage.
<head runat="server">
<script type="text/javascript" src="../Scripts/jquery-1.4.1.js"></script>
<script type="text/javascript" src="../Scripts/jquery.corner.js?v2.11"></script>
<script type="text/javascript" src="../Scripts/jquery.timers.js"></script>
<script type="text/javascript" language="javascript">
var mouseOver = false;
$('.right_menu_links').hover(
function () {
var visible = $(this).parent().children(".right_menu_hint").css("display");
mouseOver = true;
if (visible == 'none') {
$(this).oneTime("1s", function () {
if (mouseOver)
$(this).parent().children(".right_menu_hint").show("slow");
});
}
},
function () {
mouseOver = false;
$(this).parent().children(".right_menu_hint").hide("slow");
}
);
</scipt>
AS I expect, at all my content pages script should attach hover event to all to all right_menu_links. But it doesn't work.
When I place the same script at my content pages all is work! What's wrong?