Added a Zoom Plugin jQuery and needing help to add attributes to the evolution of the poplet images.

Hey BC community, I looking for a little help with some jQuery / javascript. Overall, I have a plugin to zoom like forcing me to add a data attribute to the image I want to add the zoom effect on. This isn't a problem, but I poplet images that I've adjusted to fill again the big picture. html() rather than the default light box.  The Zoom plugin I use requires a data attribute to be added to all the images I want to have the ability to zoom attached to. I wrote jQuery that adds the attribute data on the original image which is to fill the big image container, but whenever I change the following poplet image, I lose the zoom effect. I hope that makes sense... lol I'm still a javascript / jquery newby.

Here is the work currently underway. Figure which may help understand the situation better. Here is the site

I just want to add zoom to any poplet effect is enabled by adding the attribute data and the new file extension required for the expansion of the resolution. Again, please excuse the bad jQuery / javascript, I'm still learning!

Here's my jQuery / Javascript.

New features of Poplet

/*===================================================*/

function poplet (e) {}

e.preventDefault ();

var imgURL = $(this) .attr ('href');

$('#largeimage').html ("< img src ="' + imgURL + ' "> '");

}

/*=======================================

MAGNIFY

=======================================*/

$(document) .ready (function () {}

var addedAttr = "data-magnify-src";

var addedExtension = '-large.jpg ";

var originalExtension is $('.productLarge #largeimage > img') .attr ('src').slice(0,-4);.

var combinedExtension = originalExtension + addedExtension;

$('.productLarge_#largeimage_>_img').attr (addedAttr, combinedExtension);

});

$(function() {})

Poplets

$('.productPopletsItem_a').removeAttr ('onclick release);

$('body').on (' click on ', '.productPopletsItem a', poplet);

});

Yes I fixed it, got help from some other forums. Thank you!

Tags: Business Catalyst

Similar Questions

Maybe you are looking for

  • connection security

    Apple have run a virus scan on my laptop after a hacking my computer. Wondering if I need to change my password now this virus scan was made?

  • Question about the connection of the laptop to stereo to get a good sound

    I'm trying to get an output good phono from my laptop to a stereo. The s-video output a sound, when it is so I could divide the s-video cable in two phono which can then be connected to my sound system.

  • Bootcamp Windows 7 cannot run by VMWare Fusion 8.1.0

    I use MBP (13 "mid-2010) 2.4 GHz Intel Core 2 Duo 8 GB 1067 MHz DDR3 Nvidia 320 M 256 MB That's what I did in chronological order (1) improved my MBP to El Capitan 10.11.1 (2) my VMWare Fusion Pro 7 did not work - asked me to upgrade to version 8 to

  • Can I disable the Terminal Services if I don't use remote assistance/remote desktop?

    I use can I have Vista 32 bit home premium I thought that Vista have no remote desktop? Is not Terminal identical remote desktop services? When I go MyComputer > right click > properties > remote adjustment the box for "Allow remote Assisnatnce" is N

  • Pavilion dv8120ca questions

    I have a Pavilion dv8120ca laptop PC that I've upgraded to Windows 7 (32 bit).  It all went pretty well, except to install a webcam logitech 200.  Once the webcam is installed, it will go through the 3-4 and then sleep/wake cycle later, it will crash