Use Image Alt Tag as Title Tag

For a mouseover tooltip for images, duplicate the alt tag as the title tag by adding this to the website head:


<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js" type="text/javascript"> </script>

<script type="text/javascript">
/* Use image alt tag as title tag */
    $(function() {
        $("img:not([title])").each(function() {
            if ($(this).attr("alt") != '') $(this).parent().attr("title", $(this).attr("alt"))
            else $(this).parent().attr("title", $(this).attr("src"));
        });
    });
</script>