how do i add background to this script?

how can i add a background to this script please help.

[php]

<?php $sc_url_ip = "173.212.236.164"; $sc_url_port = "8002"; function getNowPlaying($sc_url_ip,$sc_url_port) { $open = fsockopen($sc_url_ip,$sc_url_port,$errno,$errstr,'.5'); if ($open) { fputs($open,"GET /7.html HTTP/1.1\nUser-Agent:Mozilla\n\n"); stream_set_timeout($open,'1'); $read = fread($open,200); $text = explode(",",$read); if($text[6] == '' || $text[6] == ''){ $msg = ' live stream '; } else { $msg = $text[6]; } $text = $msg; } else { return false; } fclose($open); return $text; } $csong = getNowPlaying($sc_url_ip,$sc_url_port); print ''.$csong.''; print "
"; if ($csong == "Song Title Here") print "True"; ?> [/php]

Hi,

how do you add a background to any webpage? It’s completely loose from whatever script you run. All you do is add a stylesheet to the page.

So in the HTML header that gets sent to the browser you add in the HEAD section:

<LINK HREF="main.css" REL="stylesheet" TYPE="text/css"/>

and then you write a CSS file named ‘main.css’ and in it you put the following:

body
{   background-color: #ffffff; // WHITE!
}

And that’s all there is to it. ;D

Good luck,
O.

or in your body tag:
[php]

[/php]

thanks Ojoshiro worked perfect.

Sponsor our Newsletter | Privacy Policy | Terms of Service