Autor Zpráva
hugo999
Profil *
Mam jeden PNG obrazok a zahadne v IE6 ma taky cudny sedy pozadi namiesto
transparetneho...stretlui ste sa s tym niekedy? Ako to osetrit?

Dakujem.
Str4wberry
Profil
hugo999
Zrovna před pár hodinama — http://diskuse.jakpsatweb.cz/index.php?action=vthread&forum=17&topic=6 1093

Zkus trochu hledat.
hugo999
Profil *
fiiha :)

ale to iepngfix.htc mi nic nepovedalo, neporadis slovne viac?

prosiim
Bubák
Profil
hugo999
Pokud ti stačí indexované barvy (nejvíc 256 barev) a úplná průhlednost, jde správného zobrazení v IE dosáhnout správným uložením souboru. Jestli to tak jde, bych ti mohl napsat, pokud bys dal odkaz na obrázek.
hugo999
Profil *
hej to je pekne ze mi to mozes ulozit, diky ale tych obrazkov bude mozno aj viac a chcem to vedeit sam...

nepovies mi ako to ulozit?
mam photoshop CS2
hugo999
Profil *
halo, prosim poradte mi....:( prosim
habendorf
Profil
Prostě jednu barvu nastavíš jako průhlednou. Pokud chceš průsvitné png, viz link výše.
hugo999
Profil *
ano mam iepngfix.htc konkretne


// This is licensed under the CC-GNU LGPL, version 2.1 or later.

// For details, see: http://creativecommons.org/licenses/LGPL/2.1/


// This must be a path to a blank image. That's all the configuration you need.
if (typeof blankImg == 'undefined') var blankImg = 'blank.gif';


var f = 'DXImageTransform.Microsoft.AlphaImageLoader';

function filt(s, m)
{
if (filters[f])
{
filters[f].enabled = s ? true : false;
if (s) with (filters[f]) { src = s; sizingMethod = m }
}
else if (s) style.filter = 'progid:'+f+'(src="'+s+'",sizingMethod="'+m+'")';
}

function doFix()
{
// Assume IE7 is OK.
if (!/MSIE (5.5|6.)/.test(navigator.userAgent) ||
(event && !/(background|src)/.test(event.propertyName))) return;

var bgImg = currentStyle.backgroundImage || style.backgroundImage;

if (tagName == 'IMG')
{
if ((/.png$/i).test(src))
{
if (currentStyle.width == 'auto' && currentStyle.height == 'auto')
style.width = offsetWidth + 'px';
filt(src, 'scale');
src = blankImg;
}
else if (src.indexOf(blankImg) < 0) filt();
}
else if (bgImg && bgImg != 'none')
{
if (bgImg.match(/^url[("']+(.*.png)[)"']+$/i))
{
var s = RegExp.$1;
if (currentStyle.width == 'auto' && currentStyle.height == 'auto')
style.width = offsetWidth + 'px';
style.backgroundImage = 'none';
filt(s, 'crop');
// IE link fix.
for (var n = 0; n < childNodes.length; n++)
if (childNodes[n].style) childNodes[n].style.position = 'relative';
}
else filt();
}
}

doFix();

</script>
</public:component>




Ale ako to poizt v praxi?

Prosim, prosim porad, som uz zufaly...diiky moc
habendorf
Profil
Nemáš náhodou IE6 Standalone?
hugo999
Profil *
neviem co to je...mam normalne IE6 cez taky program kde mam vsetky IE-cka (normalne mam IE7)...

tak co mam robit??
habendorf
Profil
No tak to ti fungovat nebude. Musíš to odladit v nativním IE6.
hugo999
Profil *
tak kuknem v bratovom compe, on ma normalne IE6...ale tak ako to mam osetrit aby to slo v normalnom IE6?
hugo999
Profil *
haaalo poradte mi prosiiiim

Vaše odpověď

Mohlo by se hodit

Nezapomeňte na odkaz na živou ukázku problému.

Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0