Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Simple JavaScript Query

Options
  • 30-03-2004 8: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