سؤال

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

هل كانت مفيدة؟

المحلول

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

نصائح أخرى

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

Like:

<BODY onload="myfunction()">
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top