English 中文(简体)
J Query Middle Overlay - Customs Button
原标题:JQuery Close Overlay - Custom Button

我正在使用Player的JQuery Overlay。

下面是我所说的话。

<a rel="#overlay1" class="miniOpenBtn">Open</a>
$("a[rel]").overlay({mask:  #EFEFEF });

我了解标准接近的纽顿,并想加上我自己的纽伦,在我接手的任何地方派驻:

<a id="closeOverlay" class="miniCloseBtn">x</a>

我如何能够把这一联系与结束拖延联系起来?

我看着文件,它们只举一个例子,用“cl”类取代过去位于超支角的近海纽顿。 我希望完全摆脱原先的近海纽州,并在超支中增加。

我在StackOverflow这里审视了一些老的回答,但上周才开始学习JQuery,至少说一点点令人困惑。

感激地收到任何帮助。

最佳回答

我在论坛进行了长时间的艰苦探索之后,尝试了这项工作。 通过应用(包括:“a.closeOverlayBtn”),允许我使用不同的纽子来结束超支。

The JQuery

$("a[rel]").overlay({
mask:  #EFEFEF ,
close: "a.closeOverlayBtn"
});

The Overlay Close Button

<a class="closeOverlayBtn" onclick="flashElement(<%=rsPhotoData.Fields("photoID")%>)">
x
</a>

你可以看到,我能够利用我的近海纽州来指定联合工作组的职能,而最初的斜线很容易允许这样做。

问题回答

你们只能消除拖延是:

$( .miniCloseBtn ).click(function(){
  $( .overlay_div ).remove();
});

如果你能够接手从接手,选择(例如,它有超时的证明),你可以这样做:

$( #overlay ).find( .close ).replaceWith( <a href="#" class="close miniCloseBtn">x</a> );

In general, I think anything you create with a class of close will close the overlay.





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签