Hi, I'm affraid the url for alphaimageloader needs to be absolute. IE can't handle relative urls for filters. That is a problem because in wicket all you get are relative URLs. And you probably don't want to tie your application to a specific context anyway.
<rant> I've personally have resigned to try to force IE6 to show transparent pictures. I usually use two variants of each transparent picture - one with alpha map for sane browsers and one with transparent color for IE6. Hopefully won't be too long before IE6 share drops so low it won't be worth supporting anymore. </rant> -Matej On Feb 6, 2008 7:37 PM, Philip A. Chapman <[EMAIL PROTECTED]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Guys, > > Under the source dir that contains my page and html, I have two dirs, > css and images. Inside css, I have two files, main.css and ie.css. > These css files reference images, such as: > > main.css: > > a.download-but{ > float:right; > width:111px; > height:26px; > margin:0; > background:url(../images/download-audio.png) no-repeat 0 0; > text-indent:-9999px; > } > > ie.css: > > * html a.download-but{ > background:url(none.gif); > > filter:progid:dximagetransform.microsoft.alphaimageloader(src='images/download-audio.png', > sizingmethod='crop'); > cursor:pointer; > } > > I have two links in the header. mainCSS and ieCSS. I have the > following code in the page: > > WebClientInfo info = > (WebClientInfo)((WebSession)Session.get()).getClientInfo(); > add(new StyleSheetReference("mainCSS", getClass(), "css/main.css")); > StyleSheetReference ssref = new StyleSheetReference("ieCSS", getClass(), > "css/ie.css"); > add(ssref); > if > (!info.getProperties().getNavigatorAppName().equalsIgnoreCase("Microsoft > Internet Explorer")) { > ssref.setVisible(false); > } > > My problem is that under IE, the images are not loaded. I've tried > changing the image url it ../images/download-audio.png, but that didn't > work. > > Any suggestions? > - -- > Philip A. Chapman > > Desktop and Web Application Development: > Java, .NET, PostgreSQL, MySQL, MSSQL > Linux, Windows 2000, Windows XP > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFHqf5MAdpynRSGw3URAu+RAJ987XEjNuRFCpVHg8OWya99IsLlOQCfXQkI > leINHwBSkP9cKtF2VFWiOMQ= > =xUt9 > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Resizable and reorderable grid components. http://www.inmethod.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]