0
我fårexpected身份或字符串的「如果(vContains(gMouseoverBox)==真)(」到 ,這是什麼原因預期的身份或字符串jQuery的 -
var pProjectID = "static";
var gMouseoverBox = pProjectID + "_IF";
var arrBoxesNotMouseOvered = [];
function vContains(pName) {
for (var i = 0; i < arrBoxesNotMouseOvered.length; i++) {
if (arrBoxesNotMouseOvered[i] == pName) {
arrBoxesNotMouseOvered[i] = null;
return true;
}
}
return false;
}
function PopulateTooltipSuccess(pResponse) {
$('#' + gMouseoverBox).tooltip({
if(vContains(gMouseoverBox) == true) {
var elem = document.getElementById(gMouseoverBox);
var coord = { clientX: getElementLeft(gMouseoverBox)+1, clientY: getElementTop(gMouseoverBox)+1 }; //coordinates doesn't work perfecly in IE but does in Firefox
$('#' + gMouseoverBox).simulate("mouseover", coord);
$(this).oneTime(2000, function() {
$('#' + gMouseoverBox).simulate("mouseout", coord);
});
}
})
}
你能更清楚一點,你期望什麼,結果如何? – 2010-01-21 07:57:47