jQuery滑块在https URL中不起作用 [英] jQuery slider not working in https URL

查看:78
本文介绍了jQuery滑块在https URL中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个jquery照片滑块,可以在常规的http://URL中很好地工作:

I have a jquery photo slider that is working great in a regular http:// URL like this:

http://tinyurl.com/cswdpbc

当我尝试使用https://访问页面时,我的问题开始了,滑块不再出现.我尝试使用Chrome工具,但看不到任何异常...有人可以偷看一下,让我知道您的想法吗?

My problem starts when I try to access the page with https:// the slider no longer appears. I have tried to Use the Chrome tools but can't see anything out of the ordinary...can somebody take a peek and let me know what you think it could be?

HTTPS网址: http://tinyurl.com/c29585s

推荐答案

您正在调用此代码:https:/wp-includes/js/comment-reply.js?ver=20090102,它给出了SSL证书错误,请尝试调用没有定义协议的脚本,如下所示:

you are calling this: https: /wp-includes/js/comment-reply.js?ver=20090102 and it gives an SSL certificate error, try calling scripts without defining a protocol, like this:

<script type='text/javascript' src='//wp-includes/js/jquery/jquery.js?ver=1.7.1'></script>

另外,您也可以使用Google的CDN为您托管该文件;)

also, you could use google's cdn to host that file for you ;)

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>

这篇关于jQuery滑块在https URL中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆