Ik heb de playing file van SAM zo aan gepast dat hij alleen nog maar aan geeft welk nummer er draait en welke 2 nummers er komen. Ook heb de achtergrond kleuren aangepast naar m'n eigen site. Daar ik eigenlijk altijd Firefox gebruik had ik de achtergrond kleur als transparant ingesteld, dit werkt samen met joomla goed. Ik kreeg keurig de kleuren die ik wou.
Ik had even iemand gevraagd om m'n site te testen en die zei ik krijg alleen een wit vakje te zien. Bleek dat ie Internet Explorer te gebruiken. Hierop heb ik de achtergrond kleuren benoemd. In IE geeft ie nu de goede kleuren aan maar Firefox zit ie er een paar tinten naast. Terwijl hij wel een klein balkje (bij zo meteen) wel goed aan geeft.
Wie weet wat hier aan de hand is?
Hieronder volgt de code die ik gebruik:
Code: Selecteer alles
<?
require("config.php");
$db->open("SELECT songlist.*, historylist.listeners as listeners, historylist.requestID as requestID, historylist.date_played as starttime FROM historylist,songlist WHERE (historylist.songID = songlist.ID)
AND (songlist.songtype='S') ORDER BY historylist.date_played DESC",6);
$history = $db->rows();
reset($history);
$db->open("SELECT songlist.*, queuelist.requestID as requestID FROM queuelist, songlist WHERE (queuelist.songID = songlist.ID) AND (songlist.songtype='S') AND (songlist.artist <> '') ORDER BY
queuelist.sortID ASC",2);
$queue = $db->rows();
reset($queue);
//### Calculate the bezt time to refresh the webpage in order to show new updated song information
//==================================================================================================
list($key, $song) = each($history);
$listeners = $song["listeners"];
$starttime = strtotime($song["date_played"]);
$curtime = time();
$timeleft = $starttime+round($song["duration"]/1000)-$curtime;
//Set refesh interval
if($timeleft>0) # 30 second minimum wait
{ $timeout = $timeleft;} # if timeleft is valid, refresh on timeleft (should be end of song)
else
{ $timeout = 90; } # otherwise, fall back on 90 second refresh
if(($timeout>180) or ($timeout==0)) $timeout = 180;
if($timeout<30) $timeout = 30;
$refreshURL = "playing.php?buster=".date('dhis').rand(1,1000);
//==================================================================================================
$pic_cnt = 0;
function PicName()
{
global $pic_cnt;
echo "Picture".$pic_cnt;
}
function NextPicName()
{
global $pic_cnt;
$pic_cnt += 1;
PicName();
}
function PutSongRow(&$song)
{
global $rc, $showpic, $darkrow, $lightrow;
PrepareSong($song);
echo "<body bgcolor="#151515">"
?>
<tr bgcolor="#151515">
<?if($showpic){?>
<td valign="middle" width="1%">
<? if($song["haspicture"]) {?>
<?};?>
</td>
<?}?>
<td <?if(!$showpic) echo "colspan=2"?>><font size="2" color="#FFFFFF"><b><?
echo $song["artist"];
echo "<br>";
echo $song["title"];
if($song["requestid"]!=0) { echo " ~requested~ "; }
?></small></font></td>
<td nowrap width="1%">
<p align="center"><font size="2" color="#003366"><a href="<? echo $song["klote"]; ?>" target="_blank"> </a></font>
</td>
<td nowrap width="1%">
</td>
<td nowrap align="center" nowrap width="1%">
</td>
</td>
</tr>
<?
}//PutSongRow
/* ## ===================================================================== ## */
?>
<SCRIPT LANGUAGE="JavaScript">
<!---
var refreshID = "";
refreshID = setTimeout("DoRefresh()", <? echo ($timeout*1000); ?>);
function DoRefresh()
{
document.location.href = '<? echo $refreshURL; ?>';
}
//--->
</SCRIPT>
<table border="0" width="98%" cellspacing="0" cellpadding="4">
<tr bgcolor="#151515">
</tr>
<?
$rc=0;
PutSongRow($song);
$mainsong = $song;
?>
<?
if(count($queue)>0){?>
<tr bgcolor="#151515"><td colspan="7">
<b><font size="2" color="#777777">Zo meteen:</font></b>
<font size="2" color="FFFFFF"><b>
<?
$i=0;
while(list($key, $song) = each($queue))
{
if(empty($song["artist"]))
$song["artist"] = 'Unknown';
if($i>0) echo ", ";
echo $song["artist"];
if($song["requestid"]!=0)
{ echo " ~requested~"; }
$i++;
}
?>
</b></font></td></tr>
<?}?>
</td> http://progrockradio.nl
Remko

