Jump to content
MakeWebGames

Recommended Posts

Posted (edited)

I have a coder but he is busy and I need help changing my home page text to white and the background black

 

require_once('globals_nonauth.php');
$login_csrf = request_csrf_code('login');
print
       <<<EOF
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$set['game_name']}</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="js/login.js"></script>
<link href="css/game.css" type="text/css" rel="stylesheet" />
</head>
<body onload="getme();">
<center>
<table width="970" border="0" cellpadding="0" cellspacing="0" class="table2">
<tr>
<td class="lgrad"></td>
<td class="center"><img src="title.jpg" alt="Mccodes Version 2" /><br />
<!-- Begin Main Content -->
EOF;
$IP = str_replace(array('/', '\\', '\0'), '', $_SERVER['REMOTE_ADDR']);
if (file_exists('ipbans/' . $IP))
{
   die(
           "<span style='font-weight: bold; color:red;'>
           Your IP has been banned, there is no way around this.
           </span></body></html>");
}
$year = date('Y');
echo "<h3>> {$set['game_name']} Log-In</h3>
<table width='80%'>
<tr>
<td width='50%'>
<fieldset>
<legend>About {$set['game_name']}</legend>
" . nl2br($set['game_description']) . "
</fieldset>
</td>
<td>";
echo <<<EOF
<fieldset>
<legend>Login</legend>
<form action='authenticate.php' method='POST' name='login' onsubmit='return saveme();'>
Username: <input type='text' name='username' /><br />
Password: <input type='password' name='password' /><br />
Remember me?<br />
<input type='radio' value='ON' name='save' /> Yes
<input type='radio' value='OFF' name='save' /> No<br />
<input type='hidden' name='verf' value='{$login_csrf}' />
<input type='submit' value='Submit'>
</form>
</fieldset>
EOF;
echo "</td></tr></table><br />
<h3><a href='register.php'>REGISTER FOR FREE!</a></h3><br />
<i><center>Powered by codes made by Dabomstew (&copy {$year}). Game Copyright ©{$year} {$set['game_owner']}.</center></i>";
print
       <<<OUT
</td>
<td class="rgrad"></td>
</tr>
<tr>
<td colspan="3">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td class="dgradl"> </td>

<td class="dgrad"> </td>
<td class="dgradr"> </td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
OUT;



body {
   background-color: #FFFFFF;
   margin-top: 0px;
   margin-bottom: 0px;
   font-family: calibri, helvetica, arial, geneva, sans-serif;
   font-size: 12px;
   color: white;
   scrollbar-base-color: #005B70;
   scrollbar-arrow-color: #F3960B;
   scrollbar-DarkShadow-Color: #000000;
}

a:visited,a:active,a:hover,a:link {
   color: white;
   text-decoration: none;
}

table,tr,td {
   font-family: helvetica, arial, geneva, sans-serif;
   font-size: 12px;
}

img {
   border: none;
}

textarea {
   font-family: helvetica, arial, geneva, sans-serif;
   font-size: 12px;
   color: white;
}

.table2 {

}

.lgrad {
   background-image: url("../lgrad.jpg");
   background-repeat: repeat-y;
   width: 19px;
}

.linegrad {
   background-image: url(../linegrad.PNG);
   background-repeat: repeat-y;
   background-align: center;
   width: 2px;
}

.rgrad {
   background-image: url(../rgrad.jpg);
   background-repeat: repeat-y;
   width: 19px;
}

.dgrad {
   background-image: url(../dgrad.jpg);
   background-repeat: repeat-x;
   height: 38px;
}

.dgradl {
   background-image: url(../dgradl.jpg);
   background-repeat: no-repeat;
   height: 38px;
   width: 38px;
}

.dgradr {
   background-image: url(../dgradr.jpg);
   background-repeat: no-repeat;
   height: 38px;
   width: 38px;
}

.center {
   width: 932px;
   background-color: #FFFFFF;
   vertical-align: top;
   text-align: center;
}

.table {
   background-color: #000000;
}

.table3 {
   background-color: #000000;
}

.table td {
   background-color: #DEDEDE;
   height: 22px;
}

.table3 td {
   background-color: #CCCCCC;
}

td .alt {
   background-color: #EEEEEE;
   height: 22px;
}

td .h {
   background-image: url(../tablehgrad.png);
   background-repeat: repeat-x;
   font-weight: bold;
   background-color: #D6D6D6;
}

.table th {
   background-image: url(../tablehgrad.png);
   background-repeat: repeat-x;
   font-weight: bold;
   background-color: #D6D6D6;
}
Edited by KyleMassacre
Added code tags
Posted

color: white;

background-color: black;

Your job is to figure out where to put it

Posted
Ah I think I know now do I need to use hex code???

How about googling and actually learning HTML & CSS, this is one of the first things you learn when learning that. No you don't need any hexcode, I gave you all the code you need

Posted (edited)

You can use hexcode or color name, works both ways. black hexcode is #000

to change font color, it's color:white or color:#fff which ever you prefer...

Edited by lucky3809
Posted

Change line 81-91 to

 

body {
   background-color: black;
   margin-top: 0px;
   margin-bottom: 0px;
   font-family: calibri, helvetica, arial, geneva, sans-serif;
   font-size: 12px;
   color: white;
   scrollbar-base-color: #005B70;
   scrollbar-arrow-color: #F3960B;
   scrollbar-DarkShadow-Color: #000000;
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...