Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-11 17:23:43

zenigy
Archived Plugin Author
From: San Diego, Ca
Registered: 2007-07-09
Posts: 4

[archived] zen_ie_png: IE Transparent PNG Replacer

Notice: This thread is archived, this plugin is no longer available.

**********************************************************

IE Transparent PNG Replacer

Plugin and help file adapted from Justin Koivisto’s script at http://koivi.com/ie-png-transparency/

DESCRIPTION

Modifies IMG and INPUT tags for MSIE5+ browsers to ensure that PNG-24 transparencies are displayed correctly. Replaces original SRC attribute with a binary transparent PNG file (spacer.png) that is located in the same directory as the original image, and adds the STYLE attribute needed to for the browser. (Matching is case-insensitive. However, the width attribute should come before height.)

Also replaces code for PNG images specified as backgrounds via: background-image: url(image.png); or background-image: url(‘image.png’); When using PNG images in the background, there is no need to use a spacer.png image. (Only supports inline CSS at this point.)

ATTRIBUTES

img_path=”“
The path to the directory with the spacer image relative to the DOCUMENT_ROOT. If none is supplied, the spacer.png image should be in the same directory as PNG-24 image. default:”/images”

size_meth=“crop”,“image”, or “scale”
String containing the sizingMethod to be used in the Microsoft.AlphaImageLoader call. default:“scale”

Possible values are:

  • crop – Clips the image to fit the dimensions of the object.
  • image – Enlarges or reduces the border of the object to fit the dimensions of the image.
  • scale – Default. Stretches or shrinks the image to fill the borders of the object.

in_script=“0” or “1”
Attribute as to whether or not to replace IMG tags that appear within SCRIPT tags in the passed content. If used, may cause javascript parse errors when the IMG tags is defined in a javascript string. default:“0”

EXAMPLE

<txp:zen_ie_png>
	<txp:image id="14" class="left" />
	<div id=header2 style="background-image: url(image.png);">
	</div>
</txp:zen_ie_png>

LINK

v0.2link

Last edited by zenigy (2007-07-12 12:53:44)

Offline

#2 2007-08-02 04:18:51

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: [archived] zen_ie_png: IE Transparent PNG Replacer

thanks! works perfectly as far as i can tell

Offline

#3 2007-08-12 01:09:03

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: [archived] zen_ie_png: IE Transparent PNG Replacer

hey hey. any plans to support background png images in a separate stylesheet?

Offline

#4 2008-03-11 07:10:19

Niconemo
Member
From: Rhône-Alpes, France
Registered: 2005-04-18
Posts: 557

Re: [archived] zen_ie_png: IE Transparent PNG Replacer

Hi !

The link is broken (in textpattern.org too).

I’ll contact the author from his website but does anyone has this plugin archived ?

Edit : well… the contact form at the author’s site isn’t working… No way to contact him.

Last edited by Niconemo (2008-03-11 07:15:58)


Nico

Offline

Board footer

Powered by FluxBB