Apple Website Developer

Load Function of Jquery

Monday, November 15th, 2010 | Tags: ,
Comments Off | Print This Article | Email This Article

I have encountered a bug on ie8, a css navigation to fadein once the flash was loaded. I have used the geturl function, the css navigation second level wasnt properly working.

Then, I google the on load function and other possibilities to load the navigation. Jquery have already load function that very useful. The load method is the simplest way to fetch data from the server.

Example 1: Load once the flash element was loaded or the whole html loaded.

$(document).ready(function(){
$(window).load( function () {
$(‘#myLoad’).fadeTo(0, 1);
})
.end();
});

Example 2: As preloader

$(document).ready(function(){
$(window).load( function () {
$(“#preloader”).fadeOut(2000); THE PRELOADER
$(“#image_container”).fadeIn(3000); THE IMAGES
});
})
.end();
});

Popularity: 12% [?]

The information above is personal thoughts, opinions and some are fertile imagination of the the site owner. For more information and suggestion about this posted article kindly send this to Apple and please read the AppleByte Disclaimer. While this entry was posted on Monday, November 15th, 2010 at 2:07 pm and is filed under Apple Website Developer. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed. .

Comments

Code Stuff JavaMidlet Ortigas

Comments are closed.


Go Up