Question

What code should I add jquery to create an animation that is activated when a user visits the page.

Était-ce utile?

La solution

$(document).ready(function(){
  $("#ID").animate();
});

Autres conseils

Could you not add the function into the <BODY> tag using onload?

Like:

<BODY onload="myfunction()">
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top