Ok I have this jQuery that I have tested in a static html page and it works fine.
How would I include jQuery to work on wordpress in a plugin?
So this is the html page.
<head>
<title> Welcome to my page</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/ui-lightness/jquery-ui-1.8.17.custom.css">
</head>
<body>
<a id="word" href="#">Google</a>
<span id="hoovertext"> a powerful search engine</span>
</div>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/hide.js"></script>
<script type="text/javascript" src="js/jquery-ui.js"></script>
</body>
SO this is the jQuery file that works for this html page
$('a').mousemove(function(){
$('#hoovertext').show();
});
$('#hoovertext').mouseleave(function(){
$(this).fadeOut();
});
Basically I want this jQuery to work on specific words on my wordpress site.. in the sense that when somebody hovers mouse over text it gives a description. exactly what my code above does.
Can somebody please show me how, since I including jQuery into wordpress is the one thing that I still don't quite understand.
Thanks.