Hi i did some search about some function that i need , and i found it here on StackOverFlow . The problem is in all browsers i get "bug" on the script that says :
mouse_is_inside is not defined
But its defined ,and the function working perfect, and can't get rid from that message any advance?
I tryed though of that . but i dont know how to assume :
if (typeof variable === 'undefined') {
// variable is undefined
}
My function :
$(document).ready(function()
{
$('#contactbox').hover(function(){
mouse_is_inside=true;
}, function(){
mouse_is_inside=false;
});
$("body").mouseup(function(){
if(! mouse_is_inside) // the problem is here says not defined .
{
if ($.browser.msie && parseInt($.browser.version, 10) === 7) {
$("#main").css('z-index','0');
}
$('#contactb a').removeClass('cactive');
$('#contactb a').addClass('cnoactive');
$('#contactbox').hide()
}
});
});
EDIT thanks my bad , didnt know its so easy . i will tick the answer.