The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How to Change the Text Colour in JavaScript

View previous topic View next topic 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



SLGray
Administrator
Administrator

Male Posts : 35622
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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