Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Simple JavaScript Query

  • 30-03-2004 07: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
Advertisement