rigla Posted July 8, 2009 Posted July 8, 2009 How do i change the color of the 'Your Gang' ? tried span, font color etc wont let me put this in php ive no ideea how to do it, please post the easiest solution :mrgreen: { print "[url='yourgang.php']Your Gang[/url] "; } Quote
Lithium Posted July 8, 2009 Posted July 8, 2009 Re: Noob question { print "<font color='someothercolor'>Your Gang</font> "; } this should work... Quote
shrek1609 Posted July 8, 2009 Posted July 8, 2009 Re: Noob question aren't the main menu link colors declared in the css, i think i had this problem and the css over rides the font color tags on the actual link... Quote
Haunted Dawg Posted July 8, 2009 Posted July 8, 2009 Re: Noob question aren't the main menu link colors declared in the css, i think i had this problem and the css over rides the font color tags on the actual link... Not if you put your colour code inside the <a*> tag Quote
rigla Posted July 8, 2009 Author Posted July 8, 2009 Re: Noob question { print "[url='yourgang.php']<font color="#00FF00">Your Gang</font>[/url] "; } tried this long time ago because i know a little html but..i get this error Parse error: syntax error, unexpected '}' in /home/streets/public_html/beta/mainmenu.php on line 53 Quote
rigla Posted July 8, 2009 Author Posted July 8, 2009 Re: Noob question hrm are you sure its a good ideea? i want to change the color of other links too..ill have to remove too many { im afraid ill screw something up :P will try thx edit: Parse error: syntax error, unexpected T_IF in /home/streets/public_html/beta/mainmenu.php on line 54 Its screwing the next if statement.. Quote
Haunted Dawg Posted July 8, 2009 Posted July 8, 2009 Re: Noob question echo '<font color="#00FF00">Your Gang</font> '; Quote
General Doom Posted July 8, 2009 Posted July 8, 2009 Re: Noob question { print "<font color="#00FF00">Your Gang</font> "; } You need to change the double quotatios to single quotations. Like so: echo "<font color='#00FF00'>Your Gang</font> "; If your using quotations within quotations you can't use the same ones. So if your surround the code in single quotations: ' ' all the code inside must use double quotations " " else the script will end prematurely. Works the same vice-versa. Quote
rigla Posted July 8, 2009 Author Posted July 8, 2009 Re: Noob question thanks guys, both worked. I have tried single quotations before and it didnt work, now it works..dunno what i did wrong last time. i think echo are more suited here thx again. Quote
General Doom Posted July 8, 2009 Posted July 8, 2009 Re: Noob question Lol, didn't even notice it was print before. I usually use echo ^.^ Quote
Lithium Posted July 8, 2009 Posted July 8, 2009 Re: Noob question ops my bad also, i mixed " without escaping them :| 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.