Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Simple JavaScript Query

  • 30-03-2004 08:31AM
    #1
    Closed Accounts Posts: 28


    I'm looking to change the default output of the following code.
    <script langauge="JavaScript">


    document.write("Today: " + new Date());


    </script>

    i want to change for example the text to red and font to tahoma.
    can anybody shed some light on this, thanks,


Comments

  • Closed Accounts Posts: 304 ✭✭Zaltais


    [PHP]
    <script langauge="JavaScript">


    document.write("<span style=\"color:red; font-face: Tahoma;\">Today: " + new Date() +"</span>");


    </script>
    [/PHP]


  • Closed Accounts Posts: 28 syngin


    Thanks for that.


Advertisement