Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////////////////////////////////////////////////////
- // INSERT SHADOW UNDER IMAGES HAVING
- //////////////////////////////////////////////////////////////////////////
- $('img.with-shadow-1').each(function() {
- $(this).wrap('<div class="block-img-shadow" />');
- $('<div class="under-shadow"><img src="php-includes/img.php?src=../images/image_shadows/shadow01.png&w='+$(this).width()+'" alt="" /></div>').insertAfter(this);
- });
- $('img.with-shadow-2').each(function() {
- $(this).wrap('<div class="block-img-shadow" />');
- $('<div class="under-shadow"><img src="php-includes/img.php?src=../images/image_shadows/shadow02.png&w='+$(this).width()+'" alt="" /></div>').insertAfter(this);
- });
- $('img.with-shadow-3').each(function() {
- $(this).wrap('<div class="block-img-shadow" />');
- $('<div class="under-shadow"><img src="php-includes/img.php?src=../images/image_shadows/shadow03.png&w='+$(this).width()+'" alt="" /></div>').insertAfter(this);
- });
- $('img.with-shadow-4').each(function() {
- $(this).wrap('<div class="block-img-shadow" />');
- $('<div class="under-shadow"><img src="php-includes/img.php?src=../images/image_shadows/shadow04.png&w='+$(this).width()+'" alt="" /></div>').insertAfter(this);
- });
- $('.head-image').each(function() {
- $(this).parent().append('<span class="zoom-overlay"></span>');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement