URL replacement with ephect
-
There's a picture, when you press the button, the picture changes URL. It all falls, but hunting a smooth change of pictures one to another. The decisions are full, but they all go down to the tag leaf.
<li>
<img>
♪Can we change the URL at the picture, so the change screen is smooth?
Js:
$("#main_foto").attr("src",newurl);
-
We're doing an extinction, altering URL images, making an impact:
$('#someButton').click(function() { $('#main_foto') .fadeOut('slow') .delay(1000, function() { $("#main_foto").attr("src",newurl) .fadeIn(600); }); });