SSL安装后幻灯片无法正常工作

我最近通过 Lets Encrypt 获得了 SSL。我有一个完美运行的幻灯片脚本,但现在我遇到了问题。加载https://URLimg/slideimg1.png而不是加载https://URL/img/slideimg1.png!


document.getElementById("left").style.opacity =1;


var currentSlide = 2;


var refreshSlideInterval = setInterval(changeSlide, 5000);


function changeSlide() {

    if (currentSlide == 1) {

      currentSlide++;

      document.getElementById("slide1IMG").src = 'https://theskindealer.com/img/slideimg1.png';


      document.getElementById("left").style.opacity =1;

      document.getElementById("right").style.opacity =.5;


     } else if (currentSlide == 2) {

      currentSlide++;

      document.getElementById("slide1IMG").src = 'https://theskindealer.com/img/slideimg2.png';


      document.getElementById("middle").style.opacity =1;

      document.getElementById("left").style.opacity =.5;


     } else {

      --currentSlide;

      --currentSlide;

      document.getElementById("slide1IMG").src = 'https://theskindealer.com/img/slideimg3.png';


      document.getElementById("right").style.opacity =1;

      document.getElementById("middle").style.opacity =.5;


    }

}


function firstSlide() {

  currentSlide = 1;

  changeSlide();


  // Reset the interval

  clearInterval(refreshSlideInterval);

  refreshSlideInterval = setInterval(changeSlide, 5000);

}

function secondSlide() {

  currentSlide = 2;

  changeSlide();


  // Reset the interval

  clearInterval(refreshSlideInterval);

  refreshSlideInterval = setInterval(changeSlide, 5000);

}

function thirdSlide() {

  currentSlide = 3;

  changeSlide();


  // Reset the interval

  clearInterval(refreshSlideInterval);

  refreshSlideInterval = setInterval(changeSlide, 5000);

}

不确定我是否可以提供帮助链接,但网站是 theskindealer.com 你会在那里看到错误!在此先感谢所有帮助和建议!


当年话下
浏览 155回答 2
2回答

翻过高山走不出你

不太确定它做了什么。但似乎它自己修复了?奇怪的...
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript