1
XOOPS Version XOOPS 2.5.9-Beta2
PHP Version 7.0.21
mySQL Version 5.5.52-MariaDB
Server API cgi-fcgi
OS Linux
I want to install some java script and it says to place the code in the tags
This is the code
$(document).ready( function() {
$('#auto').load('display.php');
refresh();
});
function refresh() {
setTimeout( function() {
$('#auto').load('display.php');
refresh();
}, 1000);
}
I also have to insert in the tag
<script type="text/java script" src="http://code.jquery.com/jquery-1.7.2.min.js">script>
And then in a block on my home page i will put
<div id="auto">div>
This will put a "now playing" block on the home page showing album art, song name, artist, album name and release date
The question is, where do I put the code for the body tag? index.php or another page? I don't want to screw up any existing code so I need some advice where to put that code