悬停不再起作用了 [英] Hovers don't work anymore

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

问题描述

老实说,我现在试着用这个来修复大约12个小时..我不能让我的徘徊工作。我将我的网站切换到另一个主机,他们根本不再工作.. idk为什么



主持人之前:www.youbetterrun.de (如你所见仍然在那里工作,尝试将鼠标悬停在导航栏和左侧的投票图像上)



主持人:www.l2xenoth.com - 我之前在/ site2上的这个主机上有我的网站(在这个目录中他们工作.. idk为什么)然后我将它们切换到默认的directoy,他们现在不工作..



任何人都知道为什么会这样吗?



我尝试过:



在stackoverflow上,他们说我的jQuery脚本和Javascript没有加载。所以我在我的索引页面和我的ftp上查看了路径,文件就在那里,路径也正确。甚至我的浏览器控制台也说不同。



控制台错误:

I honestly trying this to fix now for literally about 12 hours.. I can't get my hovers to work. I switched my website to another host, and they simply doesnt work anymore.. idk why

Host before: www.youbetterrun.de (as you see they still work there, try to hover over the navbar and on the Vote Images on the left)

Host after: www.l2xenoth.com - i had my site before on this host in /site2 (in this directory they worked.. idk why) then i switched them to the default directoy and they dont work now..

Anyone know why this happens?

What I have tried:

On stackoverflow they said that my jQuery script and Javascript doesn't load. So i looked the paths up on my index page and on my ftp, and the files are there and the path is also correct. Even tho my browser console says it different.

Console Errors:

Failed to load resource: the server responded with a status of 404 ()
jquery.js:3 Uncaught SyntaxError: Invalid or unexpected token
scripts.js:1 Uncaught ReferenceError: $ is not defined
    at scripts.js:1
jquery.dotdotdot.js:666 Uncaught ReferenceError: jQuery is not defined
    at jquery.dotdotdot.js:666
(index):20 Uncaught ReferenceError: $ is not defined
    at (index):20
browser.js:60 Opera has modified script or content on staticxx.facebook.com (PATCH-1195, Facebook - block first character in the comment field from triggering a single key keyboard shortcut). See browser.js for details
countdown.css:1 Failed to load resource: the server responded with a status of 404 ()





Index.php





Index.php

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Lineage II Xenoth - Interlude</title>
<meta name="description" content="Lineage II Xenoth">
<meta name="keywords" content="l2, lineage, lineage2">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" href="css/hover.css">
<link rel="stylesheet" href="css/countdown.css">
<link href='https://fonts.googleapis.com/css?family=Oswald:400,300' rel='stylesheet' type='text/css'>
<script src="js/jquery.js"></script>
<script src="js/scripts.js"></script>
<script src="js/smoothscroll.js"></script>
<script src="js/jquery.dotdotdot.js"></script>





js文件夹

http://prntscr.com/kekhd7 在script.js中没有定义$ div $>



js folder
http://prntscr.com/kekhd7

推荐答案

:$
jquery.dotdotdot.js:666未捕获的ReferenceError:jQuery未定义
at jquery.dotdotdot.js:666
(index):20 Uncaught ReferenceError:
is not defined at scripts.js:1 jquery.dotdotdot.js:666 Uncaught ReferenceError: jQuery is not defined at jquery.dotdotdot.js:666 (index):20 Uncaught ReferenceError:


不是defi ned
at(index):20
browser.js:60 Opera修改了staticxx.facebook.com上的脚本或内容(PATCH-1195,Facebook - 阻止注释字段中的第一个字符触发单个键盘快捷键)。有关详细信息,请参阅browser.js
countdown.css:1无法加载资源:服务器响应状态为404()
is not defined at (index):20 browser.js:60 Opera has modified script or content on staticxx.facebook.com (PATCH-1195, Facebook - block first character in the comment field from triggering a single key keyboard shortcut). See browser.js for details countdown.css:1 Failed to load resource: the server responded with a status of 404 ()





Index.php





Index.php

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Lineage II Xenoth - Interlude</title>
<meta name="description" content="Lineage II Xenoth">
<meta name="keywords" content="l2, lineage, lineage2">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" href="css/hover.css">
<link rel="stylesheet" href="css/countdown.css">
<link href='https://fonts.googleapis.com/css?family=Oswald:400,300' rel='stylesheet' type='text/css'>
<script src="js/jquery.js"></script>
<script src="js/scripts.js"></script>
<script src="js/smoothscroll.js"></script>
<script src="js/jquery.dotdotdot.js"></script>





js文件夹

http://prntscr.com/kekhd7


看起来你试图通过从CDN加载jQuery来修复错误。但是,有两个问题:

  • 您的站点是通过HTTPS加载的,但您正在尝试通过HTTP加载jQuery。这会导致控制台中出现阻止加载混合活动内容警告。将CDN URL更改为 http s ://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js 相反。
     
  • jQuery的CDN链接在指向其他脚本的链接后出现。如果他们尝试使用jQuery,您将获得
It looks like you've tried to fix the error by loading jQuery from a CDN. However, there are two problems:
  • Your site is loaded over HTTPS, but you're trying to load jQuery over HTTP. This results in a "Blocked loading mixed active content" warning in the console. Change the CDN URL to https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js instead.
     
  • The CDN link for jQuery appears after the links to the other scripts. If they attempt to use jQuery, you will get the "


这篇关于悬停不再起作用了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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