Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...IconsIcons
Previous
 
Next
New Post
10/24/2009 4:45 PM
 

IMO the best option is to use png 8 with alpha transparency (is supported in IE6 too)

Example and explanation in this thread:

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/109/postid/303523/scope/posts/Default.aspx

 
New Post
10/24/2009 5:52 PM
 

I found these two articles to be very good with explaining how to get good alpha transparency with PNG-8 (you have to use Fireworks).

http://www.brenelz.com/blog/2009/01/27/png-8-alpha-transparency-screencast/

http://www.sitepoint.com/blogs/2007/09/18/png8-the-clear-winner/

 
New Post
10/24/2009 6:21 PM
Accepted Answer 

>> is it possilbe to use png files instead of gif files in your solution.  According to your page, the file names have to be the same. 

Sure. You can use any image format you wish as long as you don't change the file name. Both the file name and content type sent by the server are hints for the browser...it relies on the header typically found in the first few bytes of most images to determine how to actually render the image. Therefore it is perfectly fine to rename a PNG image with a ".gif" extension. Alternately, you could modify the script to also change the file extension from .gif to .png which would be a cleaner solution.

>> Also, what is the performance impact?

It's a client-side solution and the performance impact is the time it takes the browser to execute the script and fetch+render the replacement images.

Nik

 


Nik Kalyani
Co-founder
DotNetNuke Corporation
Blog | Twitter | FaceBook
 
New Post
10/25/2009 2:17 PM
 

Nik Kalyani wrote

>> is it possilbe to use png files instead of gif files in your solution.  According to your page, the file names have to be the same. 

Sure. You can use any image format you wish as long as you don't change the file name. Both the file name and content type sent by the server are hints for the browser...it relies on the header typically found in the first few bytes of most images to determine how to actually render the image. Therefore it is perfectly fine to rename a PNG image with a ".gif" extension. Alternately, you could modify the script to also change the file extension from .gif to .png which would be a cleaner solution.

Nik, I changed a line in the script which does this quite effectively.

$(this).attr("src", replacePath + frags[frags.length-1].replace(".gif", ".png"));

Thanks!

 
New Post
10/25/2009 3:47 PM
 

Nik, I got this to work fine in your test script, but can't get it to work in my skin. DNN 5.x (latest)  I even used absolute paths, but it doesn't do anything.  I've tried it in my skin index.aspx and index.html.  Where is this suppose to go to get it to work?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...IconsIcons


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out