So - I really need some help on this guys (and girls?) :) I have a Image gallery which, by it''s nature, requires to load a lot of images at the same time. Instead of just showing an empty place, and some text while the images is loading it would be really nice with a "now loading" image which later gets replaced by the real image. If you don''t understand me i think that deviantart have a feature like this. How do you do anything like this - the rails way? thanks in advance Henrik -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
You could use the CSS feature to put a "placeholder" image as the background, and then when it loads the real image it will be on the top of it so to speak. the CSS Code looks something like this .imagebox{ background-image: url ("somestockimage.jpg"); background-repeat: no-repeat; width: 100px; height: 100px;} Hope that helps, Jessica --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Sassy8877 wrote:> You could use the CSS feature to put a "placeholder" image as the > background, and then when it loads the real image it will be on the top > of it so to speak. > > the CSS Code looks something like this > > .imagebox{ > background-image: url ("somestockimage.jpg"); > background-repeat: no-repeat; > width: 100px; > height: 100px;} > > Hope that helps, > JessicaThat works. For my site, I don''t have a fixed width and height, so I use javascript for that. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---