| 82 | | // This is not working well with IE. See notes bellow. |
| 83 | | // <img class="TB_Button_Image" src="smiley.gif"> |
| 84 | | // eIcon = document.createElement( 'IMG' ) ; |
| 85 | | // eIcon.src = this.Path ? this.Path : FCK_SPACER_PATH ; |
| | 82 | if ( FCKBrowserInfo.IsIE ) |
| | 83 | { |
| | 84 | // IE makes the button 1px higher if using the <img> directly, so we |
| | 85 | // are changing to the <div> system to clip the image correctly. |
| | 86 | eIcon = document.createElement( 'DIV' ) ; |
| 87 | | // IE makes the button 1px higher if using the <img> directly, so we |
| 88 | | // are changing to the <div> system to clip the image correctly. |
| 89 | | eIcon = document.createElement( 'DIV' ) ; |
| 90 | | |
| 91 | | eIconImage = eIcon.appendChild( document.createElement( 'IMG' ) ) ; |
| 92 | | eIconImage.src = this.Path ? this.Path : FCK_SPACER_PATH ; |
| | 88 | eIconImage = eIcon.appendChild( document.createElement( 'IMG' ) ) ; |
| | 89 | eIconImage.src = this.Path ? this.Path : FCK_SPACER_PATH ; |
| | 90 | } |
| | 91 | else |
| | 92 | { |
| | 93 | // This is not working well with IE. See notes above. |
| | 94 | // <img class="TB_Button_Image" src="smiley.gif"> |
| | 95 | eIcon = document.createElement( 'IMG' ) ; |
| | 96 | eIcon.src = this.Path ? this.Path : FCK_SPACER_PATH ; |
| | 97 | } |