0

我使用了从这个位置获取的线索提示http://plugins.learningjquery.com/cluetip/。我需要在页面加载时打开提示提示,并在单击关闭按钮时关闭提示提示。

html代码:

    <a href="#"  class="load-local" title="Test" id="sticky" rel="#loadme">load</a>
     <div id="loadme">test content
<a href="#" class="cluetip-close">close</a>
</div>

现在线索提示仅在鼠标悬停时打开。我需要在页面加载时打开提示提示,并在单击关闭按钮时关闭提示提示。

4

2 回答 2

1

是的,您的线索提示仅在鼠标悬停时打开,让我们调用此事件!

$(document).ready(function() {
   $('.load-local').trigger('mouseover');
});
于 2012-11-23T07:56:22.917 回答
0

您可以使用以下 html 和 jquery

<div class="open">
<p>This the content show on after the page loaded.</p>
<button>close</button>
</div>

$(document).ready(function() {
   $("button").click(function () {
$(".open").css("display", "none");
});
});

这里是演示

于 2012-11-23T08:21:56.653 回答