Jump to content

Banner rotation script with PNG support for all browsers


soycharliente

Recommended Posts

Does anyone know of a banner rotation script with .png support for all browsers? I am using a script that currently shows a black background when I try and use transparent .png files. I've tried hacking the code with everything I can think of and nothing is working. I don't have a link because it's all local at work.

 

And by rotation, I don't want to rotate images in the sense of 90 degrees, just have them fade in a out with each other after a few seconds.

 

Thanks.

Link to comment
Share on other sites

if i'm not mistaken, older versions of IE do not support transparency/partial transparency in PNGs. It is therefore not an issue with the script, but with IE itself. There are workarounds though, that can be found easily online.

Link to comment
Share on other sites

Thanks for the reply.

 

Even before posting I tried to use some of the workarounds found online when dealing with transparent .png files in IE. (I'm also not interested in supporting anything past IE6 -- and even then if it wasn't perfect it would be fine. However IE7/8 need to be good.) None of them do anything. (One sort of worked in that the black background disappeared a split second after rendering, but then the images wouldn't even display in FF!)

 

Also, the transparent images work totally fine (in all versions of IE that I've tested on) when using a simple <img /> tag. The black background only appears when I render them inside the JavaScript "slideshow" to try and fade multiple images in and out. The wrapping tag that the JavaScript uses just inserts a black background, regardless of any amount of CSS and/or further JavaScript calls to change it.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.