I have an alert box that is triggered when users mouseover a certain area.
Here is the code:
$("#contentfooter:contains(This website)").mouseover(function(){
$(".navTopItemGroup_6").slideDown("slow");
alert("You've Unlocked A Hidden Area");
});
How do I prevent this alert box from activating more than one time?
i.e., When they mouseover the area once, I don’t want the alert box to pop up if they mouseover it twice.
Use
one()http://api.jquery.com/one/.