jQuery酒醉单击事件不工作

jQuery酒醉单击事件不工作,jquery,internet-explorer-8,Jquery,Internet Explorer 8,我试图建立一个点击事件的图像,其中有一个醉酒的悬停标题,但点击事件是不工作的IE(8只有一个测试) $(".colour_tip_<?php echo($f['colour_id']); ?>").tipsy("show"); //also if you need to hide them on click/onfocus you can use this: //$(".colour_tip_<?php echo($f['colour_id']);

我试图建立一个点击事件的图像,其中有一个醉酒的悬停标题,但点击事件是不工作的IE(8只有一个测试)

$(".colour_tip_<?php echo($f['colour_id']); ?>").tipsy("show");
//also if you need to hide them on click/onfocus you can use this:              
//$(".colour_tip_<?php echo($f['colour_id']); ?>").attr('onclick', "hideTipsyOnMe(this);");
下面是一个PHP while循环,用于为每个颜色元素创建工具提示

$(function(){
    $('.colour_tip_<?php echo($f['colour_id']); ?>').tipsy({fallback: "<?php echo($f['colour']); ?>", gravity: 's'});
});
$(".colour_tip_<?php echo($f['colour_id']); ?>").tipsy("show");
//also if you need to hide them on click/onfocus you can use this:              
//$(".colour_tip_<?php echo($f['colour_id']); ?>").attr('onclick', "hideTipsyOnMe(this);");
$(函数(){
$('.color\u tip').tipsy({fallback:,gravity:'s');
});
这就像标题阻止了点击事件一样

$(".colour_tip_<?php echo($f['colour_id']); ?>").tipsy("show");
//also if you need to hide them on click/onfocus you can use this:              
//$(".colour_tip_<?php echo($f['colour_id']); ?>").attr('onclick', "hideTipsyOnMe(this);");
感谢您的帮助

$(".colour_tip_<?php echo($f['colour_id']); ?>").attr('title','What ever text you want');  
$(".colour_tip_<?php echo($f['colour_id']); ?>").tipsy({trigger: 'manual', gravity: 'n'});  
$(".colour_tip_<?php echo($f['colour_id']); ?>").tipsy("show");
//also if you need to hide them on click/onfocus you can use this:              
//$(".colour_tip_<?php echo($f['colour_id']); ?>").attr('onclick', "hideTipsyOnMe(this);");
另一种方法是,当你在这个元素上徘徊时,会有一种醉意(我认为这不是你想要的,但仍然是)

$(".colour_tip_<?php echo($f['colour_id']); ?>").tipsy("show");
//also if you need to hide them on click/onfocus you can use this:              
//$(".colour_tip_<?php echo($f['colour_id']); ?>").attr('onclick', "hideTipsyOnMe(this);");
只需在元素上放置一个title标签,在该元素上您需要一个醉酒悬停并使用

$(".colour_tip_<?php echo($f['colour_id']); ?>").tipsy("show");
//also if you need to hide them on click/onfocus you can use this:              
//$(".colour_tip_<?php echo($f['colour_id']); ?>").attr('onclick', "hideTipsyOnMe(this);");
$(".mark_icon a").tipsy({live:true});
//works for me in all browsers

我们不知道什么是醉酒,你得告诉我们。另外,与循环不同,只需给它们提供相同的类,并以这种方式执行。的可能重复项