English 中文(简体)
Jquery:我怎么能够把触发点放在已经过时的图像上?
原标题:Jquery: How can I place triggers on images already cached?

。 http://flx.me/h/0504/

资料来源:

jquery.preload-min.js:

jquery.jplayer.min.js: rel=“nofollow noreferer”> http://www.happymato.com/jquery/jplayer/0.2.4/developer-guide.htm

I m 采用jquery。 预先载荷-min.js,以预先载录图像,并发送一个游戏触发器,以打断频率。

这在首次查看该网页(或强行重载所有内容)时发挥了巨大作用。 然而,当图像已经贴出时,它就没有使用预载文字,因此没有将游戏触发器挤出。

我怎么能够让它发挥作用,哪怕形象被 ca弄?

事先感谢你,

丹 麦

最佳回答

你们可以这样做:

$("image_selector_here").each(function() {
  if(this.complete) $(this).load();
});

这触发了附卡图像的负荷活动(this.complete = 真实),因为浏览器是发射的。

问题回答

1 问题在于——如果图像贴切,那么onComplete不工作,因为没有发出服务器要求。

2 P-4, 2 P-3, 2 FS, 2 NS 我从你的法典中理解,你不需要一张<>孔孔波>的每个图像。 可否尝试onFinish?

完成这项任务的最佳方式是写上你自己的载荷:。





相关问题
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.