- Creating a CSS Style for the Timestamp Text
- Inserting a New SPAN Tag and ID Attribute to Serve as a Container for the Timestamp
- Applying the Action
- Using the Last Modified (ID) Action to Insert a Page Last Modified Timestamp
- Changing the Language for the Days of the Week
- Wrapping Your Displayed Text with Custom Tags
- About this article
ID actions allow for a lot of user control over the information displayed. With both the Clock/Date and Last Modified actions you can easily customize your displayed time/date by including or excluding lead-in text, day of the week, time, 24-hour time format, and various different date formats. The lead-in text is optional and enables you to include such information as "The current time is:" or "Page Last Modified:," and so on.
Because you can use the ID attribute to create an object anywhere on the page, you can display your time/date stamps anywhere on the page. The ID attribute can also be added to almost any HTML tag, such as <P>, <A>, <IMG>, making it a container for your timestamp. For example, you can place a button or link somewhere on the page that displays the time/date stamp elsewhere on the page, even replacing existing text. By thinking creatively, you can do a lot of cool things on the page that weren't possible with earlier browsers and static HTML.