Is there a way to make sure that the cursor has rested on the LINK for at least 1.5 seconds, then perform the HOVER script? Can a few lines be added to my CODE to cause a DELAY to happen? To be ultra clear, if I hover on a link for LESS THEN 1.5 seconds and move off, I do not want the dialog to trigger.
Appreciate any help. Here is my code to call the dialog:
- $(".bio_link").hover(
- function()
- {
-
- $("body").prepend('<div id="biodialog"></div>');
- // Define the you tube modal dialog properties
- $("#biodialog").dialog({
- modal: true,
- width: 530,
- height: 457,
- autoOpen: false,
- position: { my: "center top", at: "center top+50", of: window }
- });
- $('#biodialog').dialog({
- buttons:{
- "Close": function(){
- $(this).dialog("close");
- }
- }
- });
- $("#biodialog").dialog({ title: $(this).attr("title") });
- $("#biodialog").html($('#divB'+ $(this).attr("data")).html());
- $("#biodialog").dialog("open");
- $("body").remove("#biodialog");
- return false;
- }
- );