Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts

Saturday, November 13, 2010

Javascript date updated alert

Paste this into the browser address bar to see the last time a webpage was updated:
javascript:alert(document.lastModified)

It will show a pop-up message with the date and time that the page was last updated. This only works for static .HTM and .HTML files. It will display the current date and time for .PHP and .ASP pages since these are dynamically generated by the server at the moment you visit the page.

Sunday, October 25, 2009

Anti-spam protected mailto links



I used this javascript encoder to create a secure mailto link on my website. The only problem with the script is that it cannot show the email address as text, so I replaced the text "email us" with the image tag. Now visitors can both see my email address, and click on it to compose a message in their email client.

I didn't have to escape any characters in the script to put in the image tag.

Before:


After:

Tuesday, September 29, 2009

Javascript slideshows

Dynamic Drive DHTML Scripts- Ultimate Fade-in slideshow (v2.0)
- there are several options for the slideshow
- Fade effect works well
- slides can be hyperlinked
- slideshow pauses on mouseover