rigla Posted July 8, 2009 Share 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 Link to comment Share on other sites More sharing options...
Lithium Posted July 8, 2009 Share Posted July 8, 2009 Re: Noob question { print "<font color='someothercolor'>Your Gang</font> "; } this should work... Quote Link to comment Share on other sites More sharing options...
Jerry Posted July 8, 2009 Share Posted July 8, 2009 Re: Noob question what he said :) Quote Link to comment Share on other sites More sharing options...
shrek1609 Posted July 8, 2009 Share 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 Link to comment Share on other sites More sharing options...
Haunted Dawg Posted July 8, 2009 Share 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 Link to comment Share on other sites More sharing options...
rigla Posted July 8, 2009 Author Share 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 Link to comment Share on other sites More sharing options...
Lithium Posted July 8, 2009 Share Posted July 8, 2009 Re: Noob question remove the } on line 53 Quote Link to comment Share on other sites More sharing options...
rigla Posted July 8, 2009 Author Share 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 Link to comment Share on other sites More sharing options...
Haunted Dawg Posted July 8, 2009 Share Posted July 8, 2009 Re: Noob question echo '<font color="#00FF00">Your Gang</font> '; Quote Link to comment Share on other sites More sharing options...
General Doom Posted July 8, 2009 Share 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 Link to comment Share on other sites More sharing options...
rigla Posted July 8, 2009 Author Share 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 Link to comment Share on other sites More sharing options...
General Doom Posted July 8, 2009 Share Posted July 8, 2009 Re: Noob question Lol, didn't even notice it was print before. I usually use echo ^.^ Quote Link to comment Share on other sites More sharing options...
Lithium Posted July 8, 2009 Share Posted July 8, 2009 Re: Noob question ops my bad also, i mixed " without escaping them :| Quote Link to comment Share on other sites More sharing options...
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.