This code runs fine on my computer at home (not online), but when I upload it entirely to my server (all the same code as on my home computer), the jQuery code doesn't want to work. When you hover over an image, the P element P1 is supposed to change text value to what the .txt file says. I couldn't attach the .txt file in the snippet so my example here doesn't reflect perfectly. I put in random text just to give an idea of what is supposed to happen. Normally, the P1 is blank, and when an IMG is hovered over, the text value changes to whatever the .txt states.
I feel it has to do with when I load the .txt file, it may be looking in the wrong directory
$(document).ready(function() {
$('img').mouseover(function() {
$('#p1').load('file.txt');
});
$('img').mouseout(function() {
$('#p1').html('');
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<img src="http://placehold.it/200x100" hspace="15"></img>
<img src="http://placehold.it/200x100" hspace="15"></img>
<img src="http://placehold.it/200x100" hspace="15"></img>
<p id="p1">sdfsd</p>