English 中文(简体)
页: 1 在装满之前,每台umb子都装满碎条。
原标题:jQuery show loading div for each thumbnail until loaded

我有一页,有50台umb子,一旦用户进入该网站就装上。

我正在研究建立一个<代码>载荷...... div,或有可能利用一个动画片显示,th星图像仍在装上,然后在装满后转向图像。

什么是最佳选择,什么是纯联合提交文件,什么是ery?

预 收

最佳回答

th子是固定的宽度和高度吗?

这里还有如何这样做的想法。

var loading = $( <img src="loading.gif" alt="loading" /> );
$( #thumbnail ).each(function(){
   var loadIMG = loading.clone();
   $(this).after(loadIMG).load(function(){
      $(this).show();
      loadIMG.hide();
   }).hide();
});

资源

问题回答

你可以使用纯javascript,以避免支离破碎图书馆的间接费用。 但是,如果你在你的网站上重新使用,那么为什么不使用。

你们可以参加图像负荷活动。

var img = new Image(640, 480); 
img.src =  ... ;
$(img).bind( load , function() { 
  // Has loaded
});

每一图像可在<代码>li内查阅。 页: 1 采用CSS,以便检查你为何想要装货。 改为 图像和背书中的内容,从括号

  • >上删除<代码> 载等。

  • You can use $(window).ready() instead of $(document).ready(). If document fires when DOM is ready, window will fire when all elements are ready. The only thing is that if you have any external files and the server is not available, your script will not fire.





    相关问题
    getGridParam is not a function

    The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

    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.

    jQuery cycle page with links

    I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

    jquery ui dialog opens only once

    I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

    jConfirm with this existing code

    I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

    Wrap text after particular symbol with jQuery

    What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

    热门标签