DS928
asked on
Pre-Loading Images
I have a script that runs to show four images. Sometimes it works. Sometimes it doesn't.
I have this in the CSS
I load this...
Then I run this...
The images are in this div
The site..
http://www.davidschure.com/Template/brushed/index.html
You might have to hit the refresh button to see the images.
I have this in the CSS
#preload {
display:
none;
}
I load this...
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
Then I run this...
<script>
$(window).on('load', function(){
$('#options .option-set a:first').trigger('click');
});
</script>
The images are in this div
<div id="preload">
<img src="_include/img/Albums/Bummer-Gun.jpg" alt="Bummer Gun">
<img src="_include/img/Albums/Beyond-The-Basics.jpg" alt="Beyond The Basics">
<img src="_include/img/Albums/Lay-Low.jpg" alt="Lay Low">
<img src="_include/img/Albums/Chateu-Faux-Coupe.jpg" alt="Chateau Faux Coupe">
</div>
</body>
</html>
The site..
http://www.davidschure.com/Template/brushed/index.html
You might have to hit the refresh button to see the images.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
duplicate