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.
The forum of the forums
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 Fri 13 Jan 2012 - 6:30

    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 Fri 13 Jan 2012 - 7:02; edited 1 time in total
    avatar
    Guest
    Guest


    Solved Re: How to Change the Text Colour in JavaScript

    Post by Guest Fri 13 Jan 2012 - 6:38

    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 Fri 13 Jan 2012 - 7:01

    Thanks allot mate!

    /Solved
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: How to Change the Text Colour in JavaScript

    Post by SLGray Fri 13 Jan 2012 - 7:43

    sNIX wrote:Thanks allot mate!

    /Solved

    Topic Solved & Locked



      Current date/time is Mon 23 Sep 2024 - 9:21