ReferenceError: desktop is not defined
Hi everyone,
I've just started to implement jQuery into a website I'm working on, but I'm getting an error showing up in the Firebug console.
"ReferenceError: desktop is not defined
$(desktop).ready(function(){"
I've been searching Google for ages, trying to find a solution. However it seems that no one has had this problem. There have been lots of "ReferenceError: $ is not defined" but nothing to do with "desktop".
The site I'm working on is on localhost and consists of php pages with the header, sidebar and footer included into them and a separate css and js file.
The js file just has...
$(document).ready(function() {
$('#text').mouseenter(function() {
$('#text').fadeTo('fast', 1);
});
$('#text').mouseleave(function() {
$('#text').fadeTo('fast', 0.5);
});
});
and the header.php file links to it and jquery.min.js with...
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script type="text/javascript" src="script.js"></script>
So all-in-all a very simple site.
But I have absolutely no clue how to fix this error. Any help would be greatly appreciated.