当我转到我网站的游戏部分时,这些按钮可以正常工作:http: //sharepanel.net/games/
当我使用安全 SSL 连接访问页面时,按钮不执行任何操作:https ://sharepanel.net/games/
我错过了什么吗?
这是按钮的 Javascript 代码:
<script>
function getPage(el,page){
$(el).load(page, function(response, status, xhr) {
if (status == "error") {
var msg = "Error While Loading Page: ";
$(el).html(msg + xhr.status + " - " + xhr.statusText);
}
});
}
$(function(){
$("#top10").on("click",function(){
getPage("#main","/games/top10.php");
});
$("#action").on("click",function(){
getPage("#main","action.php");
});
$("#adventure").on("click",function(){
getPage("#main","adventure.php");
});
$("#timemanage").on("click",function(){
getPage("#main","timemanage.php");
});
$("#fungames").on("click",function(){
getPage("#main","fungames.php");
});
$("#newgames").on("click",function(){
getPage("#main","newgames.php");
});
$("#randomgames").on("click",function(){
getPage("#main","randomgames.php");
});
});
</script>