Joel Posted March 28, 2008 Posted March 28, 2008 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 Quote
Tezza` Posted March 28, 2008 Posted March 28, 2008 Re: Need help quickly Please I guess you would just change the "$bgcolor = 'FFFFFF'" to i think ;) Quote
Guest Anonymous Posted March 28, 2008 Posted March 28, 2008 Re: Need help quickly Please print ""; :-P Quote
Joel Posted March 28, 2008 Author Posted March 28, 2008 Re: Need help quickly Please nah ive tried it, it dont work but thanks anyway Quote
AlabamaHit Posted March 28, 2008 Posted March 28, 2008 Re: Need help quickly Please background-image=url(here.jpg) Maybe??? Not sure. Just something you can try. Quote
Joel Posted March 28, 2008 Author Posted March 28, 2008 Re: Need help quickly Please Thanks AlabamaHit ill try it out Quote
Analog Posted March 28, 2008 Posted March 28, 2008 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>'; Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.