// Add the title attribute to an image. Alt text will be used as the title tag. 
// If the image doesn't have a alt attribute but has a title attribute, the title text will be used as the alt attribute.

$(document).ready(function() {
 	$("img:not([title])").each(function() {
  		if($(this).attr("alt") != '') $(this).attr("title", $(this).attr("alt"))
  		else $(this).attr("title", $(this).attr("src"))
  	})
});

// This will add title attribute to a link
// if a title already appears nothing will happen
// if there is not title attribute the script will add the text that is linked as the title attribute.

	$(document).ready(function() {
			$('a').each(function() {
				if($(this).attr("title") != '')	$(this).attr("title")
				else $(this).attr("title", $(this).text());
           });
        });      // JavaScript Document




/* Add title to linked text
       $(document).ready(function() {
           $('a').each(function() {
               $(this).attr("title", $(this).text());
           });
        });   */