Click here to Skip to main content
15,927,344 members
Home / Discussions / Web Development
   

Web Development

 
Generalmore information Pin
a_yosef18-Jan-05 21:52
a_yosef18-Jan-05 21:52 
GeneralRe: more information Pin
johnhebert19-Jan-05 3:29
johnhebert19-Jan-05 3:29 
GeneralRe: more information Pin
a_yosef19-Jan-05 6:09
a_yosef19-Jan-05 6:09 
GeneralRe: more information Pin
johnhebert19-Jan-05 6:22
johnhebert19-Jan-05 6:22 
GeneralRe: more information Pin
a_yosef19-Jan-05 6:38
a_yosef19-Jan-05 6:38 
GeneralRe: more information Pin
johnhebert19-Jan-05 6:45
johnhebert19-Jan-05 6:45 
GeneralBackground-image and PNG Transparency Pin
thomas jakubowski15-Jan-05 8:05
thomas jakubowski15-Jan-05 8:05 
GeneralRe: Background-image and PNG Transparency Pin
Shog917-Jan-05 13:28
sitebuilderShog917-Jan-05 13:28 
If your goal is to have this working with scripting turned off, then you really only have one option. Actually, since the whole trick of making PNGs display correctly on IE depends on an ActiveX behavior, i'm suspicious that if you had a machine that was really locked down, there'd be no way of making it work, period. But for everything short of that, you should be able to do the following:

#layer2 a:link, #layer2 a:active, #layer2 a:visited 
{
   background-color:transparent; 
   background-image:url("Button-InternetExplorer.png");
   background-image:expression("none");
   text-align:center; 
   width:120px; 
   height:41px;
   filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='Button-InternetExplorer.png',sizingMethod='scale');
   display:block;
}


We're using two IE-specific "features" here, the first to disable the regular background image on IE (using the expression() function), and the other to display the alpha-blended png (using the filter: attribute). This way, the image is displayed correctly on other PNG-friendly browsers, while still working in IE.

Shog9

I'm not the Jack of Diamonds... I'm not the six of spades.
I don't know what you thought; I'm not your astronaut...

GeneralRe: Background-image and PNG Transparency Pin
thomas jakubowski18-Jan-05 6:07
thomas jakubowski18-Jan-05 6:07 
Generalphp question about headers Pin
keegan15-Jan-05 7:28
keegan15-Jan-05 7:28 
Generalbstr, wchar_t, and code pages Pin
Samsung15-Jan-05 7:07
Samsung15-Jan-05 7:07 
Questiondo you know good web-trackers? Pin
includeh1015-Jan-05 3:22
includeh1015-Jan-05 3:22 
AnswerRe: do you know good web-trackers? Pin
Michael P Butler15-Jan-05 4:06
Michael P Butler15-Jan-05 4:06 
GeneralRe: do you know good web-trackers? Pin
includeh1015-Jan-05 5:30
includeh1015-Jan-05 5:30 
GeneralRe: do you know good web-trackers? Pin
Michael P Butler15-Jan-05 5:53
Michael P Butler15-Jan-05 5:53 
GeneralRe: i need a good web-tracker Pin
Brad Bruce15-Jan-05 3:06
Brad Bruce15-Jan-05 3:06 
GeneralRe: i need a good web-tracker Pin
includeh1015-Jan-05 3:20
includeh1015-Jan-05 3:20 
GeneralRe: i need a good web-tracker Pin
Brad Bruce15-Jan-05 3:45
Brad Bruce15-Jan-05 3:45 
Generalmenu from database JAVAScript Pin
amit__813-Jan-05 23:49
amit__813-Jan-05 23:49 
GeneralRe: menu from database JAVAScript Pin
JKroschel14-Jan-05 4:42
JKroschel14-Jan-05 4:42 
GeneralJava Mail API Pin
Member 157626913-Jan-05 8:26
Member 157626913-Jan-05 8:26 
GeneralApache Web Server Pin
13-Jan-05 7:13
suss13-Jan-05 7:13 
GeneralDate field Pin
Yulianto.12-Jan-05 13:57
Yulianto.12-Jan-05 13:57 
GeneralRe: Date field Pin
alex.barylski13-Jan-05 20:27
alex.barylski13-Jan-05 20:27 
GeneralRe: Date field Pin
Yulianto.13-Jan-05 21:43
Yulianto.13-Jan-05 21:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.