A client asked today if I could display the "New!" icon in a data view web part I had created for an Announcements list on their intranet's home page. Thanks to the excellent Share the Learning blog, I found the code snippet to add, and wanted to go a step further and share where it needs to be added.
Here's the code, courtesy of Share the Learning:
<img src="/_layouts/1033/images/new.gif" alt="New" />
When you open the page in SharePoint Designer, and select the data view web part where you want to add the code, you need to find the link to the list that is being displayed. If you want the "New!" icon to display after each title (which is how it is displayed by default in lists and libraries), paste the code snippet immediately after the link (i.e. after the </a> tag), as shown in the image below.