IEFixes - / IE fixes javascript var isMSIE55 =...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
// IE fixes javascript var isMSIE55 = (window.showModalDialog && window.clipboardData && window.createPopup); var doneIETransform; var doneIEAlphaFix; if (document.attachEvent) document.attachEvent('onreadystatechange', hookit); function hookit() { if (!doneIETransform && document.getElementById && document.getElementById('bodyContent')) { doneIETransform = true; relativeforfloats(); fixalpha(); } } // png alpha transparency fixes function fixalpha() { // bg { var plogo = document.getElementById('p-logo'); if (!plogo) return; var logoa = plogo.getElementsByTagName('a')[0]; if (!logoa) return; var bg = logoa.currentStyle.backgroundImage; var imageUrl = bg.substring(5, bg.length-2); doneIEAlphaFix = true; if (imageUrl.substr(imageUrl.length-4).toLowerCase() == '.png') { var logospan = logoa.appendChild(document.createElement('span')); logoa.style.backgroundImage = 'none'; logospan.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=' + imageUrl + ')';
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/26/2011 for the course ECE 3337 taught by Professor Staff during the Spring '08 term at University of Houston.

Page1 / 3

IEFixes - / IE fixes javascript var isMSIE55 =...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online