PDA

View Full Version : Set load order?



Jack!
12-05-2011, 08:56 PM
Basically, on my page I have 3 flash elements loading at the same time, Is there anyway I can make one load first, then the other, then the last one?

You can view what I mean here: http://www.top.musicfm.co.uk

Aidonia
13-05-2011, 09:10 AM
You could do it with javascript/jQuery and hide your flash elements in divs and show them when you want, or if you just want to load one after each other after X seconds, you could just use jQuery Timers (http://plugins.jquery.com/project/timers).

A quick example:


<div id="asset1" style="display: none;">
...
insert flash here
...
</div>

<div id="asset2" style="display: none;">
...
insert flash here
...
</div>

<div id="asset3" style="display: none;">
...
insert flash here
...
</div>


...then you can use jQuery timers to load one after each other, by fading it in or sliding it in - or any other effect you may want to use.

Want to hide these adverts? Register an account for free!