Does anyone know why ...?
-
Does anyone know why when I run this script on my page for a "TD" tag:
BackgroundImage = document.getElementById('SomeTD').style.backgroundImage; if(BackgroundImage.toLowerCase().indexOf('.png',0) != -1){ ImageAddress = BackgroundImage.substr(BackgroundImage.toLowerCase().indexOf('(',0) + 1, BackgroundImage.toLowerCase().indexOf(')',0) - 2); document.getElementById('SomeTD').style.backgroundImage = 'none'; document.getElementById('SomeTD').style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + ImageAddress + '\', sizingMethod=\'scale\');'; }
It does the job perfectly, but it makes all the element(like button and textbox) in this table cell ("TD"), disabled and they are not click able or even the flashing cursor in textbox is not shown and you can not type in it?! :omg::wtf: Sojaner! -
Does anyone know why when I run this script on my page for a "TD" tag:
BackgroundImage = document.getElementById('SomeTD').style.backgroundImage; if(BackgroundImage.toLowerCase().indexOf('.png',0) != -1){ ImageAddress = BackgroundImage.substr(BackgroundImage.toLowerCase().indexOf('(',0) + 1, BackgroundImage.toLowerCase().indexOf(')',0) - 2); document.getElementById('SomeTD').style.backgroundImage = 'none'; document.getElementById('SomeTD').style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + ImageAddress + '\', sizingMethod=\'scale\');'; }
It does the job perfectly, but it makes all the element(like button and textbox) in this table cell ("TD"), disabled and they are not click able or even the flashing cursor in textbox is not shown and you can not type in it?! :omg::wtf: Sojaner! -
Because basically the filter creates an image of what the element looks when it's rendered with the filter effect, and shows that instead of the element.
--- single minded; short sighted; long gone;