Jump to content
GMA

Imagine cu trasparenta

Recommended Posts

Posted

png-ul nu e transparent. Dar daca ai psd-ul e preferabil sa il pui la download pentru o transparenta reusita (in caz ca e transparent in psd)

Oricum png transparent nu merge pe IE incat giff-ul e preferabil pentru browsere. Pentru calitate in alte domenii se cere tiff transparent.

Posted

Eu am facut modificarile aseara in IrfanView in graba.Merci de informatii lokipaki,am mai invatat ceva.

L.E:

png-ul nu e transparent.

In Opera se vede transparent dar in IE nu se vede transparent :(.

Posted
Eu am facut modificarile aseara in IrfanView in graba.Merci de informatii lokipaki,am mai invatat ceva.

L.E:

png-ul nu e transparent.

In Opera se vede transparent dar in IE nu se vede transparent :(.

Si in mozila e transparent. Daca vrei neaparat exista un micuts script in javascript care se ataseaza paginii. In caz ca vrei sa il pui pe un website sub forma png. Dar nu se merita decat daca vrei semitransparenta, antialias si 16 milioane de culori (poza cu efecte in toata regula). Gasesti pe google despre fix-ul asta, ti-l pot da si eu daca il gasesc in mailurile de anul trecut.

Posted

png.htc


<public:component>
<public:attach event="onpropertychange" onevent="doFix()" />

<script type="text/javascript">

// IE5.5+ PNG Alpha Fix v1.0RC4
// (c) 2004-2005 Angus Turnbull [url]http://www.twinhelix.com[/url]

// This is licensed under the CC-GNU LGPL, version 2.1 or later.
// For details, see: [url]http://creativecommons.org/licenses/LGPL/2.1/[/url]


// 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>

Asta e hack-ul pentru png pt IE6,si te rog baga doua injuratori pt IE6 si din partea ma simt si eu bine.

Posted
Asta e hack-ul pentru png pt IE6,si te rog baga doua injuratori pt IE6 si din partea ma simt si eu bine.

am vazut ca e plin netul de cereri si rugaminti la microbsoft de multa vreme sa faca ceva... cred ca si de injuraturi.

Subscriu la injurat! Anu trecut lucram la o aplicatie java de animatie si numai asta ne tragea in loc (eu lucram doar la grafica)

// Assume IE7 is OK.

sigur e ok? nu mai am IE7

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...