inserting a live date in your dreamweaver document
Learn how to easily place a live date in your Dreamweaver document using Javascript code.
- Open your Dreamweaver document and switch to code view and place the following CSS Style and Javascript code in between the <head> </head> tags at the top of your document:
- Switch back to Design view and place your cursor over the location where you wish to insert your live date.
- Again select 'Code View'. With cursor at the position, copy and paste the following final code:
- You can align the date left, right or center by replacing the code '<div align="right" (code view).
- You can change the color of the font, typeface or size by adjusting the CSS at the top of your document (code view):
<style type="text/css">
.date { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #06297B}
</style>