echo '<img src="artwork.png" height="150" width="150" border="0" alt="Album Cover">';
$section = file_get_contents('nowplaying.txt');
echo $section;
DavenLC said:I did a little bit of coding for you. I dont know what your are running. Asp, php, dhtml. You didnt specify so i was generic
<meta http-equiv="refresh" content="60">
<span style="color:#15d2ef">
<?php $section = file_get_contents('nowplaying.txt'); //This assumes you have nowplaying.txt in root
echo $section;
echo"
";
echo"
";
echo '<img src="artwork.png" height="150" width="150" border="0" alt="Album Cover" title="Album ArtWork">';//This assumes you have artwork.png in root
//actual coding written by Todd at www.spfldmo.com - please leave coders name in script
?>
<script type="text/javascript">
<!--
var vUri = "song.php" ;
var vRequest;
function getRequest() { vRequest = null; if (window.XMLHttpRequest) { vRequest = new XMLHttpRequest(); } else if (window.ActiveXObject) { try { vRequest = new ActiveXObject('Msxml2.XMLHTTP'); }
catch (err) { try { vRequest = new ActiveXObject('Microsoft.XMLHTTP'); } catch (err) { return (false); } } } vRenew = new Date(); vTest = /?/;
vNewUri = vUri + (vTest.test(vUri)?'&':'?') + 'renew=' + vRenew.getTime(); vRequest.onreadystatechange = catchChange; vRequest.open('GET', vNewUri, true); vRequest.send(null); }
function catchChange() { if (vRequest.readyState == 4 && vRequest.status == 200) { document.getElementById('i_reload').innerHTML = vRequest.responseText;
setTimeout('getRequest()', 5000); } } getRequest();
//-->
//actual coding written by Todd at www.spfldmo.com - please leave coders name in script
</script>
<iframe class="name" name="name" id="mod" src="./song.php" scrolling="auto" frameborder="0"width="256" height="250"></iframe>
DavenLC said:sending pm
DavenLC said:Probably a "Margin left auto margin right auto will center a div"
HTH
echo '<img src="artwork.png" align="center" height="150" width="150" border="0" alt="Album Cover" title="Album ArtWork">';
echo '<center><img src="artwork.png" height="150" width="150" border="0" alt="Album Cover" title="Album ArtWork"></center>';
DavenLC said:Code:echo '<img src="artwork.png" align="center" height="150" width="150" border="0" alt="Album Cover" title="Album ArtWork">';
see if that works or..
Code:echo '<center><img src="artwork.png" height="150" width="150" border="0" alt="Album Cover" title="Album ArtWork"></center>';
I think.. also, adjust your height width, your images seem scrunched... you can remove height and width to see what it looks like then make adjustments