Support » Plugin: PB SEO Friendly Images » PB Seo Friendly Images is killing my this javascript code

  • Resolved kakaleite34

    (@kakaleite34)


    Hello everyone,

    I am using this plugin but it’s killing my script. How can solve this problem?

    <script data-wpfc-render=”false” type=”text/javascript”>
    document.write(‘<div style=”box-sizing:border-box;text-align:center;width:100%;padding:5px;font-size:16px;color:#fff;font-weight:bold;background:#fff;border-radius:6px;box-shadow: 0 1px 2px rgba(0,0,0,.4);” id=”counter-images-wrapper-id” >’);
    document.write(‘<div style=”box-sizing:border-box;background:red;padding:10px” id=”counter-images-desc”>’);
    document.write(‘Loading… <span id=”counter-images-time” >120</span> ‘);
    document.write(‘</div></div>’);
    function counter_image_gallery(){
    var counter_image_id=document.getElementById(“counter-images-time”);
    var counter_image_time=120;
    var counter_image_interval=setInterval(function()
    {
    counter_image_time–;
    counter_image_id.innerHTML=counter_image_time;
    if(counter_image_time===0) {
    document.getElementById(“counter-images-wrapper-id”).style.display=”none”;
    clearInterval(counter_image_interval);
    }
    }, 1000);
    }
    window.onload = counter_image_gallery;
    </script>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.