hi
i want to change the font size to 4 and color to red for the following
i tried using <font size=4></font> inside the document.write but did not got the result
smile alwaysCode:<script type = "text/javascript"> var myDate = new Date(); var today = new Date(); var dd = today.getDate(); var dy = today.getDay(); var offset = Math.abs(2 - dy); dd = dd - offset; myDate.setDate(today.getDate() - offset) var dateToDisplay = ""; if (myDate < today) { dateToDisplay = myDate; } else { dateToDisplay = today; } var a=dateToDisplay.getDate(); var b=dateToDisplay.getMonth(); document.write(a + "/" + b); </script>
anand



Reply With Quote

Bookmarks