Hello! The task is this: it is necessary that the image on the html page gradually increased in size, and then decreased and so on. Who is not difficult, share the code)

  • Threat javascript should time or just when you hover? - h0le
  • In general, or when you hover or when you open the page. - Gautama Buddha
  • Thanks for the answer, only I didn’t understand anything) If it’s not difficult and not lazy, you can completely <html> your code </html> your code . I will be very grateful. - Gautama Buddha

2 answers 2

Use jQuery:

 var shrink = function () { $(this).effect("scale", {percent: 40}, 1000, grow); }; var grow = function () { $(this).effect("scale", {percent: 250}, 1000, shrink); }; $("img").click(shrink); 
     <script type="text/javascript" src="jQuery.js"> </script> <script src="jquery.tooltip.js" type="text/javascript"></script> <script type="text/javascript"> $('#tonus').tooltip({ delay: 0, showURL: false, bodyHandler: function() { return $("<img/>").attr("src", this.src); } }); </script> 

    Well, that's when you hover (taken from Google).

    • Thank! I understand jquery need to download? Honestly, I do not prosharёn in html ... - Gautama Buddha