Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////////////////////////////////////////////////////
- // INSERT SHADOW UNDER IMAGES HAVING
- //////////////////////////////////////////////////////////////////////////
- $(window).load(function() {
- $('img.with-shadow-1').each(function() {
- var $this = $(this);
- var style = $this.attr('style');
- $this.attr('style','');
- $this.wrap('<div class="block-img-shadow" style="'+style+'" />');
- $('<div class="under-shadow"><img src="http://1000in2days.com/ss/templates/ammon/php/img.php?src=http://1000in2days.com/ss/templates/ammon/images/image_shadows/shadow01.png&w='+$(this).width()+'" alt="" /></div>').insertAfter(this);
- });
- $('img.with-shadow-2').each(function() {
- var $this = $(this);
- var style = $this.attr('style');
- $this.attr('style','');
- $this.wrap('<div class="block-img-shadow" style="'+style+'" />');
- $('<div class="under-shadow"><img src="http://1000in2days.com/ss/templates/ammon/php/img.php?src=http://1000in2days.com/ss/templates/ammon/images/image_shadows/shadow02.png&w='+$(this).width()+'" alt="" /></div>').insertAfter(this);
- });
- $('img.with-shadow-3').each(function() {
- var $this = $(this);
- var style = $this.attr('style');
- $this.attr('style','');
- $this.wrap('<div class="block-img-shadow" style="'+style+'" />');
- $('<div class="under-shadow"><img src="http://1000in2days.com/ss/templates/ammon/php/img.php?src=http://1000in2days.com/ss/templates/ammon/images/image_shadows/shadow03.png&w='+$(this).width()+'" alt="" /></div>').insertAfter(this);
- });
- $('img.with-shadow-4').each(function() {
- var $this = $(this);
- var style = $this.attr('style');
- $this.attr('style','');
- $this.wrap('<div class="block-img-shadow" style="'+style+'" />');
- $('<div class="under-shadow"><img src="http://1000in2days.com/ss/templates/ammon/php/img.php?src=http://1000in2days.com/ss/templates/ammon/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