Thanks for all the suggestions.

However in my page i wanted to have the .src of the image dynamically change
to other png images.

The pngfix.js only fixes the images when the page had loaded, after that it
changed my images into a <span>

To make it possible to dynamically change your images, you should add the
following javascript code:
(Did not test it like this, but i am sure u get the point)

function getText(pNewSrc){
 // Get the image which was made like:  <img id='ExampleImage' ...
 var lPreview = document.getElementById('ExampleImage');

// Test of we are in IE
if(lPreview.style.filter){
  var lFilter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='";
  lFilter += pNewSrc;
  lFilter +="', sizingMethod='image')";
  lPreview.style.filter=lFilter;
 }
 else{
    //This is a FireFox type of browser
  lPreview.src=pNewSrc;
 }
}

Further in the pngfix.js i stated at the end:

if(window.attachEvent)
 window.attachEvent("onload", correctPNG);

In this case it is one less error on FireFox Browsers...

Greetings,
Marcel

busy developing: http://www.online-image-editor.com

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to