jquery start function on page load -


i want effect start when page loaded. starts when click on layer.

$(document).ready(function() {     $("div").click(function () {         $(this).effect("pulsate", { times:3 }, 2000);     }); }); 

i used .load(function), didn't help.

$(function(){   $('div').effect("pulsate", { times:3 }, 2000); }); 

Comments