This plugin is written with the develpment of PageTalks, accidently. As PageTalks is based on jQuery Libary, jQuery code is required.
This plugin will automatically take title attribute in IMG tag as the description of the image. If IMG is not wrapped by a Anchor tag, the plugin will wrap it with one. This plugin currently support two parameters, all of which are optional.
Load jQuery Libary
You can directly add the following code in <head> tag:<script type="text/javascript" src="jquery..js"></script>
Load imgDesc Plugin
<script type="text/javascript" src="jquery.imgdesc.js"></script>
Assing the target object
follow the jQuery code style:$("img").imgDesc();You can, of course , apply some change, customizing the way it show up and the value of description:$("img").imgDesc({autohide: "yes", text : "This is a sample text!"});