la transparencia en Ineternet Explorer

  • pclovers
  • Graduate
  • Graduate
  • Avatar de Usuario
  • Registrado: May 21, 2005
  • Mensajes: 154
  • Loc: Nagpur, India
  • Status: Offline

Nota Julio 2nd, 2007, 9:24 am

Estoy utilizando el formato *. png, con antecedentes no transpare. Imagen transpare no apareció en el firefox. Pero en el explorador de Ineternet que aparecen como:
Imagen

Para ver la imagen transpare no, por favor, abierto http://subodh.info/ en Firefox.
¿Cómo puedo solucionar este problema. Necesito ayuda ya que estoy creando tema sitio donde va a cambiar como por usuario. Por lo tanto, banner necesidad de contar con antecedentes no transpare.
Get Free Traffic | Free Facebook Fans
The Gamers Worlds
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Julio 2nd, 2007, 9:24 am

  • SB
  • Moderator
  • Genius
  • Avatar de Usuario
  • Registrado: Nov 16, 2004
  • Mensajes: 8672
  • Loc: Aberdeen, Scotland
  • Status: Offline

Nota Julio 2nd, 2007, 11:20 am

Al hacer el archivo de un archivo. Gif en lugar de que sea un archivo. Png que no tenga este problema.

Asumiendo que usted está usando Photoshop a continuación, guarde usando el "guardar para web" en el archivo y la opción de cambiar el formato de archivo. Gif, usted también tendrá que asegurarse de que es originalmente una transpare no imagen de fondo (que im seguro de que ya tienen) y elegir el que "mate" usted cree que sería más apropiado para su imagen para ofrecer un borde más definido.

Espero que esta ayuda. Por favor, hágamelo saber cómo llegar.
  • righteous_trespasser
  • Scuffle
  • Genius
  • Avatar de Usuario
  • Registrado: Mar 12, 2007
  • Mensajes: 6228
  • Loc: South-Africa
  • Status: Offline

Nota Julio 2nd, 2007, 11:51 pm

El Gif trabajará gran Im seguro, y aquí es un tutorial sobre cómo hacer la transpare no Gifs extra suave alrededor de los bordes...http://www.photoshopcafe.com/tutorials/ ... pare not.htm
Let's leave all our *plum* where it is and go live in the jungle ...
  • pclovers
  • Graduate
  • Graduate
  • Avatar de Usuario
  • Registrado: May 21, 2005
  • Mensajes: 154
  • Loc: Nagpur, India
  • Status: Offline

Nota Julio 3rd, 2007, 4:36 am

Pero. Gif de uso formato de 256 colores. Tengo la imagen con color 24bit. Quiero que gran parte del color de resolución en la imagen.
Get Free Traffic | Free Facebook Fans
The Gamers Worlds
  • righteous_trespasser
  • Scuffle
  • Genius
  • Avatar de Usuario
  • Registrado: Mar 12, 2007
  • Mensajes: 6228
  • Loc: South-Africa
  • Status: Offline

Nota Julio 3rd, 2007, 5:09 am

Ésta es cierto, pero photoshops "Guardar para Web" usa una paleta de color optimizado, que utiliza el más utilizado 256 colores en la imagen y no la norma paleta de 256 colores, por lo que no es mucho el color se pierde...por ejemplo esto es una imagen GIF a cabo mediante PSS "Guardar para Web"...
Let's leave all our *plum* where it is and go live in the jungle ...
  • cognitivedw
  • Born
  • Born
  • Avatar de Usuario
  • Registrado: Jul 11, 2007
  • Mensajes: 3
  • Loc: Barrie, Ontario
  • Status: Offline

Nota Julio 11th, 2007, 11:57 am

Hay una solución Java para este pequeño problema. Espero que te ayuda.
Código: [ Select ]
// Java Document
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
  var arVersion = navigator.appVersion.split("MSIE")
  var version = parseFloat(arVersion[1])
  if ((version >= 5.5) && (document.body.filters))
  {
   for(var i=0; i<document.images.length; i++)
   {
     var img = document.images[i]
     var imgName = img.src.toUpperCase()
     if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
     {
      var imgID = (img.id) ? "id='" + img.id + "' " : ""
      var imgClass = (img.className) ? "class='" + img.className + "' " : ""
      var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
      var imgStyle = "display:inline-block;" + img.style.cssText
      if (img.align == "left") imgStyle = "float:left;" + imgStyle
      if (img.align == "right") imgStyle = "float:right;" + imgStyle
      if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
      var strNewHTML = "<span " + imgID + imgClass + imgTitle
      + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
      + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
      + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
      img.outerHTML = strNewHTML
      i = i-1
     }
   }
  }  
}
window.attachEvent("onload", correctPNG);
  1. // Java Document
  2. function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
  3. {
  4.   var arVersion = navigator.appVersion.split("MSIE")
  5.   var version = parseFloat(arVersion[1])
  6.   if ((version >= 5.5) && (document.body.filters))
  7.   {
  8.    for(var i=0; i<document.images.length; i++)
  9.    {
  10.      var img = document.images[i]
  11.      var imgName = img.src.toUpperCase()
  12.      if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
  13.      {
  14.       var imgID = (img.id) ? "id='" + img.id + "' " : ""
  15.       var imgClass = (img.className) ? "class='" + img.className + "' " : ""
  16.       var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
  17.       var imgStyle = "display:inline-block;" + img.style.cssText
  18.       if (img.align == "left") imgStyle = "float:left;" + imgStyle
  19.       if (img.align == "right") imgStyle = "float:right;" + imgStyle
  20.       if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
  21.       var strNewHTML = "<span " + imgID + imgClass + imgTitle
  22.       + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
  23.       + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
  24.       + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
  25.       img.outerHTML = strNewHTML
  26.       i = i-1
  27.      }
  28.    }
  29.   }  
  30. }
  31. window.attachEvent("onload", correctPNG);



Aunque la. Gif trabajará no da los bordes de Niza o la sombra que son posibles con. Png así en los sitios sone uso de este js vale la pena.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • Avatar de Usuario
  • Registrado: May 28, 2003
  • Mensajes: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Nota Julio 11th, 2007, 8:04 pm

cognitivedw, al publicar el código, por favor utilice el código BBCode tags o etiquetas el php (según sea el caso) hace que sea más fácil de leer.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • Bozebo
  • Expert
  • Expert
  • Avatar de Usuario
  • Registrado: Feb 15, 2006
  • Mensajes: 709
  • Loc: 404
  • Status: Offline

Nota Octubre 25th, 2007, 3:54 pm

cognitivedw escribió:
Hay una solución Java para este pequeño problema. Espero que te ayuda.
Código: [ Select ]
// Java Document
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
  var arVersion = navigator.appVersion.split("MSIE")
  var version = parseFloat(arVersion[1])
  if ((version >= 5.5) && (document.body.filters))
  {
   for(var i=0; i<document.images.length; i++)
   {
     var img = document.images[i]
     var imgName = img.src.toUpperCase()
     if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
     {
      var imgID = (img.id) ? "id='" + img.id + "' " : ""
      var imgClass = (img.className) ? "class='" + img.className + "' " : ""
      var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
      var imgStyle = "display:inline-block;" + img.style.cssText
      if (img.align == "left") imgStyle = "float:left;" + imgStyle
... truncated
  1. // Java Document
  2. function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
  3. {
  4.   var arVersion = navigator.appVersion.split("MSIE")
  5.   var version = parseFloat(arVersion[1])
  6.   if ((version >= 5.5) && (document.body.filters))
  7.   {
  8.    for(var i=0; i<document.images.length; i++)
  9.    {
  10.      var img = document.images[i]
  11.      var imgName = img.src.toUpperCase()
  12.      if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
  13.      {
  14.       var imgID = (img.id) ? "id='" + img.id + "' " : ""
  15.       var imgClass = (img.className) ? "class='" + img.className + "' " : ""
  16.       var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
  17.       var imgStyle = "display:inline-block;" + img.style.cssText
  18.       if (img.align == "left") imgStyle = "float:left;" + imgStyle
  19. ... truncated

Aunque la. Gif trabajará no da los bordes de Niza o la sombra que son posibles con. Png así en los sitios sone uso de este js vale la pena.


Yo no veo ninguna Java no...

Publicar Información

  • Total de mensajes en este tema: 8 mensajes
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 63 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© 2011 Unmelted, LLC. Ozzu® es una marca registrada de Unmelted, LLC