jQuery Image Source Swap with attr() function

Last updated on
Categories Under // ideasA Template Review by . No Comments

I have made a small jQuery snippet to demo the image swapping with attr() funciton.  The demo uses 2 images with classes img1 and img2 respectively.  On a click of a button, the images are swapped.

Basically the script stores “src” value into a variable and then it is  used to swap 2 image sources.

Demo : Demo Page For jQuery Image Source Swap with attr() function

Latest WordPress Templates

Leave a comment


× 6 = six

 

Search

Recent Templates

  • cf7-installation
  • featured-image
  • Prestashop Fashion Bag Store - Parallax
  • Metroshop - Responsive Prestashop Theme
  • Leo Milk Prestashop Theme
  • Biker Prestashop Template 50747
  • Shopping WooCommerce Responsive WordPress Theme

WordPress Expert at $14/hour

Hi, I am the webmaster who run this website. I am a WordPress Integrator. If you are need of

-- Adding content to WordPress blog
-- Help in managing plugins and upgrading them.
-- Backing up WordPress Blogs.
-- Modifying theme to suit new ideas and designs.
-- Converting a PSD/JPG/PNG into WordPress

Please contact me at vr@pixelthemes.com or through contact form.

Become Our Fan in Facebook