Domanda

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

È stato utile?

Soluzione

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

Altri suggerimenti

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

Like:

<BODY onload="myfunction()">
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top