I have a site with a rotating header image (you've all seen them). I want to do the following:
I haven't really need an example that truly does this.
you can try
$(function()
{
$(window).bind('load', function()
{
// INSERT YOUR CODE THAT WILL BE EXECUTED AFTER THE PAGE COMPLETELY LOADED...
});
});
i had the same problem and this code worked for me. how it works for you too!
Well the first can be achieved with the document.ready function in jquery
$(document).ready(function(){...});
The changing image can be achieved with any number of plugins
If you wish you can check if images are loaded with the complete property. I know that at least the malsup jquery cycle slideshow makes use of this function internally.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With