Menu

Text page appears after login attempt.

Mon, 03/17/2014 - 8:43am - Trexx
Site: 

'; return html; } function cleanCSSDimension(dimension, unit) { if ( (dimension.indexOf('%') === -1) && (dimension.indexOf('px') === -1) ) { return dimension + unit; } } function buildAd(ad) { var elementId = ad.elementId; var type = ad.type; var url = ad.url; var html = ''; if ( (elementId) && (type) && (type !== 'none') && (url) ) { var containerStyle = ''; var iframeStyle = ''; // avoid needing base-tag in the head-tag if (url === '../../default/images/logo.gif') { url = '/static/brand/default/images/logo.gif'; } // if browser is greater than ie6, then use png-format logo if (url === '/static/brand/default/images/logo.gif') { var msieVerIndexStart = navigator.userAgent.indexOf('MSIE '); if (msieVerIndexStart > -1) { // user-agent is msie var msieVerIndexStop = navigator.userAgent.indexOf('.', msieVerIndexStart); var msieVer = navigator.userAgent.substring(msieVerIndexStart + 5, msieVerIndexStop); if (parseInt(msieVer) > 6) { url = '/static/brand/default/images/logo.png'; } } else { // user-agent is not msie url = '/static/brand/default/images/logo.png'; } } if (ad.left) { containerStyle += 'left:' + ad.left + '; '; } var adWidth = ad.width; if ( (adWidth) && (adWidth !== '-1px') ) { containerStyle += 'width:' + adWidth + '; '; iframeStyle += 'width:' + ( ( (adWidth.indexOf('%') !== -1) && (elementId !== 'footerAdRight') ) ? '100%' : adWidth ) + '; '; } var adHeight = ad.height; if (adHeight) { adHeight = cleanCSSDimension(adHeight, 'px'); containerStyle += 'height:' + adHeight + '; '; iframeStyle += 'height:' + ((adHeight.indexOf('%') === -1) ? adHeight : 'auto') + '; '; } html += '

'; switch (type) { case 'clickableImage': html += ''; break; case 'iframeTag': html += '<!-- -->'; break; } html += '

'; } return html; } //]]>

Add new comment