Jump to content
MakeWebGames

Recommended Posts

Posted

Ive been trying to do this for ages, I want to change this code so i can have a background Image:

 

{
include "mainmenu.php";
global $ir,$c;
$bgcolor = 'FFFFFF';
print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%"  bgcolor="#'.$bgcolor.'" valign="top">
<center>';
if($ir['hospital'])
{

 

Where it Says: $bgcolor = 'FFFFFF';

I want to change that to a Image

Please Help Me

Guest Anonymous
Posted

Re: Need help quickly Please

print "image.jpg"; :-P

Posted

Re: Need help quickly Please

Find:

print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%"  bgcolor="#'.$bgcolor.'" valign="top">
<center>';

 

Replace With: (replace filename.ext with your background file info)

print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%"  style="background-image:url(filename.ext);" valign="top">
<center>';

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...