Posted - 06/19/2018 : 22:50:42
It's quite easy to exceed that with javascript. In the custom field enter this <div id=" someuniqueID"></div> Then, in the product description <script> document.getElementById("someuniqueID").innerHTML = 'whatever you want to say that is longer than the limit'; </script> If it's used over and over in lots of products, then put it in your proddetail.asp page like this <script> if (document.getElementById("someuniqueID") !== null) { document.getElementById("someuniqueID").innerHTML = 'whatever you want to say that is longer than the limit'; } </script> If you have a good bit of text or html to enter, and you don't want to write it out in javascript, then just write it out in html in a div and hide it like this <div id="yourcontent" style="display:none;"><a class="some class" href="somelink.htm" title="sometitle"><img src="/images/someimage.jpg"/></a></div> <script> if (document.getElementById("someuniqueID") !== null) { document.getElementById("someuniqueID").innerHTML = document.getElementById("yourcontent").innerHTML; } </script>
Edited by - dbdave on 06/19/2018 22:55:10
|