How to Change the Text Colour in JavaScript Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
2 posters

    How to Change the Text Colour in JavaScript

    avatar
    sNIX
    New Member


    Posts : 13
    Reputation : 1
    Language : English

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


    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
    sNIX
    New Member


    Posts : 13
    Reputation : 1
    Language : English

    Solved Re: How to Change the Text Colour in JavaScript

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

    Thanks allot mate!

    /Solved
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    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