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)
2 answers
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
|
<html>
your code
</html>
your code
. I will be very grateful. - Gautama Buddha