Lightbox, Fancybox In Product Description

Have anyone impletemented the use of Lightbox or fancybox within the product description. We use lots of phots in some of our product descriptions and I have been using the old school javascript popup method to popup larger images.

<a href="<a data-ipb='nomediaparse' href='https://www.your-link.com'>https://www.your-link.com"onClick="openwin(this.href,'567','567'); return false"><img src="https://www.your-link.com.png" title="your title">

There is also an inline version of the same code.

This all works fine but is not as clean as lightbox or fancybox.

I started playing around with both and found lightbox easier so I created downloaded lightbox and installed it in a folder on my server.

At the top product description I added:

<link href="<a data-ipb='nomediaparse' href='https://www.yoururl.com/lightbox/css/lightbox.css'>https://www.yoururl.com/lightbox/css/lightbox.css"rel="stylesheet" >

at the bottom I added:



The first script code is only necessary for testing outside of CSCart and can be removed when you upload the desciption.

The third script code modifies the functionality of lightbox so it is not require.

For each <a href you need to add "data-lightbox=" and this calls lightbox to do its magic.</p> <p> </p> <p>I am currently working in V4.4.1 and it works here but is finicky and CSC chokes a little on it when I manually input the code into the product description. It completely chokes whne I try to import it.</p> <p> </p> <p>I tried it on a demo site I have running V4.4.3 and it imports fine. Not sure why it works better there than in V4.4.1.</p> <p> </p> <p>Anyhow, I am thinking we should be able to use the built-in previewers.</p> <p>I have found the path to the previewers.</p> <p> </p> <p>js/lib/lightbox/jquery/js/jquery.lightbox-.05.js</p> <p>js/lib/lightbox/css/jquery.lightbox-.05.css</p> <p> </p> <p>but i can't seem to invoke those to work. There needs to be a "data" statement like data-lightbox= for the standard use of lightbox but I thnk CSC has it configured differently.

Anyhow, just curious if anyone else has played around with this stuff. I have only played around with it and have not impletmented it. Looks like I can implement it in V4.4.3 when I get there (Store import preventing me now). Also curious if it is a bad practice to implement a second use of lightbox when it is already there. I do not see a conflict yet.

Thanks

Ken