The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to Change the Text Colour in JavaScript

2 posters

Go down

Solved How to Change the Text Colour in JavaScript

Post by sNIX January 13th 2012, 6:30 am

As the Title says.

How do i Change the Text Colour in Javascript?

Here is the current script code i use for the text itself:
$(function(){
$('#page-footer .navbar').append('<p>2011-2012 ©️ Copyright by Me, All Rights Reserved</p>');
});

The colour im lookin for is black, But i dont know how to code in Java anyways, So yeah a little help would be appreciated

Kindly Regards. Very Happy


Last edited by sNIX on January 13th 2012, 7:02 am; edited 1 time in total
avatar
sNIX
New Member

Posts : 13
Reputation : 1
Language : English

Back to top Go down

Solved Re: How to Change the Text Colour in JavaScript

Post by Guest January 13th 2012, 6:38 am

Use this:
Code:
$(function(){
$('#page-footer .navbar').append('<p style="color: #COLOR">2011-2012 © Copyright by Me, All Rights Reserved</p>');
});
Replace #COLOR by your own color code/name: http://www.w3schools.com/html/html_colors.asp
avatar
Guest
Guest


Back to top Go down

Solved Re: How to Change the Text Colour in JavaScript

Post by sNIX January 13th 2012, 7:01 am

Thanks allot mate!

/Solved
avatar
sNIX
New Member

Posts : 13
Reputation : 1
Language : English

Back to top Go down

Solved Re: How to Change the Text Colour in JavaScript

Post by SLGray January 13th 2012, 7:43 am

sNIX wrote:Thanks allot mate!

/Solved

Topic Solved & Locked


SLGray
SLGray
Administrator
Administrator

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum