How to Change the Text Colour in JavaScript

Go down

Solved How to Change the Text Colour in JavaScript

Post by sNIX on 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

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

Guest
Guest


Back to top Go down

Solved Re: How to Change the Text Colour in JavaScript

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

Thanks allot mate!

/Solved

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 on January 13th 2012, 7:43 am

@sNIX wrote:Thanks allot mate!

/Solved

Topic Solved & Locked


avatar
SLGray
Administrator
Administrator

Male Posts : 43161
Reputation : 3060
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Back to top


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