Automatic Link File-Size Generation | JavaScriptSource

Automatic Link File-Size Generation

Natalie Downe Sep 12, 2008

General

This script displays the size and type of a document next to the link targeting it. This distinguishes the 'attachment' link from a normal Web link, and provides the user with helpful information. Easy to implement. Includes the necessary jQuery script.


Notes

Additional information can be found on the Web site.

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: addSizes.js


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Leave a Response

(0 comments)