Conflict with other image enlarger library (Magic Zoom Plus)

Page: 1

Author Post
Member
Registered: Apr 2009
Posts: 81
https://beta.bibismv.com/products-sample-1.htm

Click the main sofa image, Magic Zoom Plus opens the image, but so does Floatbox (apparently), since after you close one the other is still open. HTML:

<a class="MagicZoomPlus" href="/img/products-sample-1-main-1.jpg"><img src="/img/products-sample-1-main-1.jpg" alt="Olivia Bench — High Back by Taylor Scott Furniture Collection" /></a>

Does Floatbox have known conflicts with other tools of this sort? I know it is not good to have two libraries like this. I don't know if I will be able to get Floatbox to do what Magic Zoom Plus is doing (hover over the large image, a magnifier appears on the right side) and thereby get down to just one library, or find a workaround to the conflict.

Thanks.
Administrator
Registered: Aug 2008
Posts: 3374
As of version 7.2.0
Quote
New activateMedia option, which defaults to true, will automatically floatbox-ize all image and video links on a page - no need to set the 'floatbox' class for each one. Also lights up flash and pdf, but not HTML or other oddball links.

And from the Options Reference:
Quote
activateMedia ** - true | false
With 'activateMedia' left at its default of true, Floatbox will activate all links whose href refers to image, video, flash or pdf content, without the need to set the 'floatbox' class on each of those links, or on a parent element. This is a change in behaviour from earlier Floatbox versions, and upgraders can set activateMedia to false in their global options to turn it off.

Explicitly assigning a class of "nofloatbox" is another way of turning off activateMedia for individual links.
Member
Registered: Apr 2009
Posts: 81
Got it, thanks!

Page: 1