- Timestamp:
- Jul 15, 2006, 4:34:17 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_5/include/pngfix.js
r939 r1474 2 2 // Correctly handle PNG transparency in Win IE 5.5 or higher. 3 3 // http://homepage.ntlworld.com/bobosola. Updated 02-March-2004 4 // 15-Jully-2006 : chrisaga use \" instead of ' in imgTitle 5 // : to fix ' display in tooltips 6 // : keep the alt attribute 4 7 5 8 function correctPNG() … … 15 18 var imgID = (img.id) ? "id='" + img.id + "' " : "" 16 19 var imgClass = (img.className) ? "class='" + img.className + "' " : "" 17 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " 20 //var imgTitle = (img.title) ? "title=\"" + img.title + "\" " : "alt=\"" + img.alt + "\" " 21 var imgTitle = (img.title) ? "title=\"" + img.title + "\" " : ""; 22 imgTitle = imgTitle + (img.alt) ? "title=\"" + img.alt + "\" " : ""; 18 23 var imgStyle = "display:inline-block;" + img.style.cssText 19 24 if (img.align == "left") imgStyle = "float:left;" + imgStyle
Note: See TracChangeset
for help on using the changeset viewer.