Hi everybody:
I was trying use dom:loaded, but I read in the Api of prototype that
this function load all HTML code except the images. My problem is that
all my web is an image and I want that it were full loaded before the
webpage shows it, because that I want that it seems like a video and if
it isn´t fully loaded it doesn´t seem a video. Anyone can help me?? I
tried using the following:
<script type="text/javascript">
function lastSpy() {

            var target = $('imagen');

            if (!target) return false;
      new Ajax.PeriodicalUpdater(target,
'http://localhost:3000/',{frequency:'0.25'})
}

       Event.observe(window, 'load', lastSpy, false);

Event.observe(window, 'load', function() {
  $$('imagen').invoke('hide');
})

     </script>
<div id="imagen" >
<%=image_tag("/guarrada/Debug/foto.jpg") %>
</div>


THANKS!!!!!!!!
-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to